Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __stm8sgpioinc ; avoid multiple inclusion |
2 | __stm8sgpioinc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File GPIO.INC * |
||
10 | ;* * |
||
11 | ;* contains SFR and Bit Definitions for STM8S GPIO * |
||
12 | ;* * |
||
13 | ;**************************************************************************** |
||
14 | |||
15 | __defgpio macro NAME,Base |
||
16 | __NS set "\{NAME}_" |
||
17 | {__NS}ODR label Base+$00 ; Data Output Latch Register |
||
18 | {__NS}IDR label Base+$01 ; Input Pin Value Register |
||
19 | {__NS}DDR label Base+$02 ; Data Direction Register |
||
20 | {__NS}CR1 label Base+$03 ; Control Register 1 |
||
21 | {__NS}CR2 label Base+$04 ; Control Register 2 |
||
22 | endm |
||
23 | |||
24 | restore |
||
25 | endif ; __stm8sgpioinc |