0
|
1 ;=============================================================================
|
|
2 ;
|
623
|
3 ; File wait.asm combined next generation V3.0.1
|
0
|
4 ;
|
582
|
5 ; Wait routines
|
0
|
6 ;
|
|
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
8 ;=============================================================================
|
|
9 ; HISTORY
|
623
|
10 ; 2004-01-31 : [chsw] Initial version
|
|
11 ; 2007-05-11 : Updated (OSTC code)
|
|
12 ; 2011-06-24 : [MH] Added clock speeds
|
582
|
13
|
0
|
14 ;=============================================================================
|
|
15
|
634
|
16
|
|
17 extern wait_1s
|
|
18
|
|
19
|
|
20 WAITS macro s_to_wait
|
|
21 movlw s_to_wait+1
|
|
22 extern WAITSX
|
|
23 call WAITSX
|
|
24 endm
|
|
25
|
|
26
|
582
|
27 WAITMS macro ms_to_wait
|
|
28 movlw ms_to_wait
|
|
29 extern WAITMSX
|
|
30 call WAITMSX
|
|
31 endm
|
|
32
|
0
|
33
|
275
|
34 ; asm routines in hwos.asm
|
623
|
35 extern request_speed_eco ; SPEED_ECO: 1 MHz
|
|
36 extern request_speed_normal ; SPEED_NORMAL: 16 MHz
|
|
37 extern request_speed_fastest ; SPEED_FASTEST: 64 MHz on high voltage cores
|
|
38 ; 32 MHz on low voltage core
|
|
39
|