comparison src/wait.inc @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents ca4556fb60b9
children 4050675965ea
comparison
equal deleted inserted replaced
622:02d1386429a6 623:c40025d8e750
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File wait.asm V2.98b 3 ; File wait.asm combined next generation V3.0.1
4 ; 4 ;
5 ; Wait routines 5 ; Wait routines
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
9 ; HISTORY 9 ; HISTORY
10 ; 2004-01-31 : [chsw] Initial version. 10 ; 2004-01-31 : [chsw] Initial version
11 ; 2007-05-11 : Updated (OSTC code). 11 ; 2007-05-11 : Updated (OSTC code)
12 ; 2011-06-24 : [MH] Added clock speeds. 12 ; 2011-06-24 : [MH] Added clock speeds
13 13
14 ;============================================================================= 14 ;=============================================================================
15 15
16 WAITMS macro ms_to_wait 16 WAITMS macro ms_to_wait
17 movlw ms_to_wait 17 movlw ms_to_wait
18 extern WAITMSX 18 extern WAITMSX
19 call WAITMSX 19 call WAITMSX
20 endm 20 endm
21 21
22 extern wait_1s
22 23
23 ; asm routines in hwos.asm 24 ; asm routines in hwos.asm
24 extern speed_eco ; SPEED_ECO: 4MHz 25 extern request_speed_eco ; SPEED_ECO: 1 MHz
25 extern speed_normal ; SPEED_NORMAL: 16MHz 26 extern request_speed_normal ; SPEED_NORMAL: 16 MHz
26 extern speed_fastest ; SPEED_FASTEST: 64MHz 27 extern request_speed_fastest ; SPEED_FASTEST: 64 MHz on high voltage cores
27 extern wait_1s 28 ; 32 MHz on low voltage core
29