Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

                ifndef  __stm8lwfe01inc ; avoid multiple inclusion
__stm8lwfe01inc equ     1

                save
                listing off             ; no listing over this file

;****************************************************************************
;*                                                                          *
;*   AS 1.42 - File WFE01.INC                                               *
;*                                                                          *
;*   contains SFR and Bit Definitions for STM8Lx01 Wait for Events          *
;*                                                                          *
;****************************************************************************

__defwfe        macro   Base,Has4
WFE_CR1         label   Base+$00        ; WFE control register 1
EXTI_EV3        bit     WFE_CR1,7       ;  External interrupt event 3
EXTI_EV2        bit     WFE_CR1,6       ;  External interrupt event 2
EXTI_EV1        bit     WFE_CR1,5       ;  External interrupt event 1
EXTI_EV0        bit     WFE_CR1,4       ;  External interrupt event 0
PXS_EV          bit     WFE_CR1,3       ;  
TIM2_EV1        bit     WFE_CR1,1       ;  TIM2 interrupt event 1
TIM2_EV0        bit     WFE_CR1,0       ;  TIM2 interrupt event 0
WFE_CR2         label   Base+$01        ; WFE control register 2
EXTI_EVD        bit     WFE_CR2,5       ;  External inxterrupt event on Port D or Port H
EXTI_EVB        bit     WFE_CR2,4       ;  External interrupt event on Port B or Port G
EXTI_EV7        bit     WFE_CR2,3       ;  External interrupt event 7
EXTI_EV6        bit     WFE_CR2,2       ;  External interrupt event 6
EXTI_EV5        bit     WFE_CR2,1       ;  External interrupt event 5
EXTI_EV4        bit     WFE_CR2,0       ;  External interrupt event 4
                endm
                
                restore
                endif                   ; __stm8lwfe01inc