Subversion Repositories pentevo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1186 savelij 1
		ifndef	__stm8lbeepinc	; avoid multiple inclusion
2
__stm8lbeepinc	equ	1
3
 
4
		save
5
		listing	off		; no listing over this file
6
 
7
;****************************************************************************
8
;*                                                                          *
9
;*   AS 1.42 - File BEEP.INC                                                *
10
;*                                                                          *
11
;*   contains SFR and Bit Definitions for STM8L Beeper                      *
12
;*                                                                          *
13
;****************************************************************************
14
 
15
__defbeep	macro	Base
16
BEEP_CSR1	label	Base+$00	; Beeper control/status register 1
17
BEEP_MSR	bit	BEEP_CSR1,0	;  Measurement Enable
18
BEEP_CSR2	label	Base+$03	; Beeper control/status register 2
19
BEEPSEL		bfield	BEEP_CSR2,6,2	;  Beep selection
20
BEEPEN		bit	BEEP_CSR2,5	;  Beep enable
21
BEEPDIV		bfield	BEEP_CSR2,0,5	;  Beep prescaler divider
22
		endm
23
 
24
		restore
25
		endif			; __stm8lbeepinc