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
|
582
|
16 WAITMS macro ms_to_wait
|
|
17 movlw ms_to_wait
|
|
18 extern WAITMSX
|
|
19 call WAITMSX
|
|
20 endm
|
|
21
|
623
|
22 extern wait_1s
|
0
|
23
|
275
|
24 ; asm routines in hwos.asm
|
623
|
25 extern request_speed_eco ; SPEED_ECO: 1 MHz
|
|
26 extern request_speed_normal ; SPEED_NORMAL: 16 MHz
|
|
27 extern request_speed_fastest ; SPEED_FASTEST: 64 MHz on high voltage cores
|
|
28 ; 32 MHz on low voltage core
|
|
29
|