Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __stm8siwdginc ; avoid multiple inclusion |
2 | __stm8siwdginc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File IWDG.INC * |
||
10 | ;* * |
||
11 | ;* contains SFR and Bit Definitions for STM8S Independent Watchdog * |
||
12 | ;* * |
||
13 | ;**************************************************************************** |
||
14 | |||
15 | __defiwdg macro Base |
||
16 | IWDG_KR label Base+$00 ; IWDG key register |
||
17 | IWDG_KEY bfield IWDG_KR,0,8 ; Key value |
||
18 | IWDG_PR label Base+$01 ; IWDG prescaler register |
||
19 | IWDG__PR bfield IWDG_PR,0,3 ; Prescaler divider |
||
20 | IWDG_RLR label Base+$02 ; IWDG reload register |
||
21 | IWDG_RL bfield IWDG_RLR,0,8 ; Watchdog counter reload value |
||
22 | endm |
||
23 | |||
24 | restore |
||
25 | endif ; __stm8siwdginc |