Subversion Repositories pentevo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1186 savelij 1
		ifndef	__stm8srstinc	; avoid multiple inclusion
2
__stm8srstinc	equ	1
3
 
4
		save
5
		listing	off		; no listing over this file
6
 
7
;****************************************************************************
8
;*                                                                          *
9
;*   AS 1.42 - File RST.INC                                                 *
10
;*                                                                          *
11
;*   contains SFR and Bit Definitions for STM8S Reset Controller            *
12
;*                                                                          *
13
;****************************************************************************
14
 
15
__defrst	macro	Base
16
RST_SR		label	Base+$00	; Reset status register
17
EMCF		bit	RST_SR,4	;  EMC reset flag
18
SWIMF		bit	RST_SR,3	;  SWIM reset flag
19
ILLOPF		bit	RST_SR,2	;  Illegal opcode reset flag
20
IWDGF		bit	RST_SR,1	;  Independent Watchdog reset flag
21
WWDGF		bit	RST_SR,0	;  Window Watchdog reset flag
22
		endm
23
 
24
		restore
25
		endif			; __stm8srstinc