view src/wait.inc @ 655:c7b7b8a358cd default tip

hwOS tech 3.22 release
author heinrichsweikamp
date Mon, 29 Apr 2024 13:05:18 +0200
parents 75e90cd0c2c3
children
line wrap: on
line source

;=============================================================================
;
;   File wait.asm                              combined next generation V3.0.1
;
;   Wait routines
;
;   Copyright (c) 2011, JD Gascuel, heinrichs weikamp gmbh, all right reserved.
;=============================================================================
; HISTORY
;   2004-01-31 : [chsw] Initial version
;   2007-05-11 : Updated (OSTC code)
;   2011-06-24 : [MH]  Added clock speeds

;=============================================================================


	extern	wait_1s


WAITS	macro	s_to_wait
	movlw	s_to_wait+1
	extern	WAITSX
	call	WAITSX
	endm


WAITMS	macro	ms_to_wait
	movlw	ms_to_wait
	extern	WAITMSX
	call	WAITMSX
	endm


; asm routines in hwos.asm
	extern	request_speed_eco			; SPEED_ECO:      1 MHz
	extern	request_speed_normal		; SPEED_NORMAL:  16 MHz
	extern	request_speed_fastest		; SPEED_FASTEST: 64 MHz on high voltage cores
										;                32 MHz on low  voltage core