12 #ifndef __GPIO_SFRS_H__
13 #define __GPIO_SFRS_H__
72 #define GPIO_SFRS ((__IO GPIO_SFRS_t *) (ASIC_7B_BASE + 0x60))
85 uint8_t RESERVED3[98193];
94 #define GPIOA_SFRS ((__IO GPIOA_SFRS_t *)(ASIC_7B_BASE + 0x60))
183 static __INLINE
void GPIOA_Set(uint8_t pos, uint8_t bit)
305 uint8_t RESERVED0[4];
307 uint8_t RESERVED1[8];
309 uint8_t RESERVED2[98195];
318 #define GPIOB_SFRS ((__IO GPIOB_SFRS_t *) (ASIC_7B_BASE + 0x61))
407 static __INLINE
void GPIOB_Set(uint8_t pos, uint8_t bit)
529 uint8_t RESERVED0[4];
531 uint8_t RESERVED1[5];
533 uint8_t RESERVED2[98200];
542 #define GPIOC_SFRS ((__IO GPIOC_SFRS_t *) (ASIC_7B_BASE + 0x62))
617 static __INLINE
void GPIOC_Set(uint8_t pos, uint8_t bit)
724 uint8_t RESERVED0[4];
726 uint8_t RESERVED1[8];
728 uint8_t RESERVED2[98199];
737 #define GPIOD_SFRS ((__IO GPIOD_SFRS_t *) (ASIC_7B_BASE + 0x63))
826 static __INLINE
void GPIOD_Set(uint8_t pos, uint8_t bit)
948 uint8_t RESERVED0[4];
952 uint8_t RESERVED2[98208];
961 #define GPIOE_SFRS ((__IO GPIOE_SFRS_t *) (ASIC_7B_BASE + 0x64))
1138 #define E_GPIO_I2C_PULLIP_OPEN 0
1139 #define E_GPIO_I2C_PULLIP_1K 1
1140 #define E_GPIO_I2C_PULLIP_10K 2
1141 #define E_GPIO_I2C_PULLIP_100K 3
1143 #define E_GPIO_PIN_MODE_OFF 0
1144 #define E_GPIO_PIN_MODE_ON 1
1146 #define E_GPIO_PIN_NOINVERT 0
1147 #define E_GPIO_PIN_INVERT 1
1149 #define E_GPIO_PIN_NOSWAP 0
1150 #define E_GPIO_PIN_SWAP 1
static __INLINE void GPIOD_EnablePortPullUp(bool bit, uint8_t mask)
Enable/disable pull up bits on GPIOD.
Definition: gpio_sfrs.h:846
uint8_t PORTB_PullUp
Definition: gpio_sfrs.h:54
static __INLINE void GPIOA_EnablePortPullDown(bool bit, uint8_t mask)
Enable/disable pull down on GPIOA.
Definition: gpio_sfrs.h:218
static __INLINE void GPIOB_EnablePortPullDown(bool bit, uint8_t mask)
Enable/disable pull down enable bits on GPIOB.
Definition: gpio_sfrs.h:442
A structure to represent Special Function Registers for all GPIO block.
Definition: gpio_sfrs.h:20
static __INLINE void GPIOD_EnableInterrupt(uint8_t pos, bool bit)
Enable/disable interrupt on GPIOD.
Definition: gpio_sfrs.h:801
static __INLINE void GPIOB_EnableOutput(uint8_t pos, bool bit)
Enable/disable output on GPIOB.
Definition: gpio_sfrs.h:354
uint8_t MDIR
Definition: gpio_sfrs.h:33
#define GPIOA_SFRS
The starting address of GPIOA block.
Definition: gpio_sfrs.h:94
uint8_t PORTB_ReadEn
Definition: gpio_sfrs.h:56
static __INLINE void GPIOC_EnablePortInput(bool bit, uint8_t mask)
Enable/disable input enable bits on GPIOC.
Definition: gpio_sfrs.h:682
static __INLINE uint8_t GPIOA_Read(uint8_t pos)
Read pin state on GPIOA.
Definition: gpio_sfrs.h:172
static __INLINE void GPIO_ConfigClrModePWM2(uint8_t pos)
Set PWM2 back to GPIO mode.
Definition: gpio_sfrs.h:1223
static __INLINE uint8_t GPIOC_PortRead(uint8_t mask)
Read port value from GPIOC.
Definition: gpio_sfrs.h:714
static __INLINE uint8_t GPIOE_Read(uint8_t pos)
Read pin state on GPIOE.
Definition: gpio_sfrs.h:1025
static __INLINE void GPIOC_EnablePortPullUp(bool bit, uint8_t mask)
Enable/disable pull up bits on GPIOC.
Definition: gpio_sfrs.h:637
uint8_t PULLUP
Definition: gpio_sfrs.h:310
uint8_t OUTPUTEN
Definition: gpio_sfrs.h:306
static __INLINE void GPIOC_PortSet(uint8_t val, uint8_t mask)
Set port value on GPIOC.
Definition: gpio_sfrs.h:697
uint8_t READEN
Definition: gpio_sfrs.h:88
static __INLINE void GPIOA_EnablePortPullUp(bool bit, uint8_t mask)
Enable/disable pull up bits on GPIOA.
Definition: gpio_sfrs.h:203
static __INLINE void GPIOE_EnablePortPullUp(bool bit, uint8_t mask)
Enable/disable pull up bits on GPIOE.
Definition: gpio_sfrs.h:1056
static __INLINE void GPIOB_EnablePortInterrupt(bool bit, uint8_t mask)
Enable/disable interrupt enable bits on GPIOB.
Definition: gpio_sfrs.h:487
uint8_t PORTD_ReadEn
Definition: gpio_sfrs.h:62
uint8_t MDUART
Definition: gpio_sfrs.h:34
static __INLINE void GPIOB_EnablePullDown(uint8_t pos, bool bit)
Enable/disable pull down on GPIOB.
Definition: gpio_sfrs.h:340
uint8_t PULLDOWN
Definition: gpio_sfrs.h:311
static __INLINE void GPIO_ConfigUART(uint8_t mode, uint8_t swap, uint8_t invert)
Config GPIO pin to UART mode.
Definition: gpio_sfrs.h:1171
uint8_t PORT
Definition: gpio_sfrs.h:78
uint8_t INTEN
Definition: gpio_sfrs.h:84
uint8_t BYTE
Definition: gpio_sfrs.h:41
uint8_t PORTA_OutputEn
Definition: gpio_sfrs.h:26
A structure to represent Special Function Registers for GPIOD.
Definition: gpio_sfrs.h:722
uint8_t OUTPUTEN
Definition: gpio_sfrs.h:725
static __INLINE void GPIOA_PortSet(uint8_t val, uint8_t mask)
Set port value on GPIOA.
Definition: gpio_sfrs.h:278
uint8_t READEN
Definition: gpio_sfrs.h:536
uint8_t UPSWAP
Definition: gpio_sfrs.h:38
#define GPIO_SFRS
The starting address of all GPIO block.
Definition: gpio_sfrs.h:72
static __INLINE void GPIO_ConfigSetModeLED(uint8_t pos)
Set GPIO to LED pin.
Definition: gpio_sfrs.h:1233
uint8_t RESERVED1
Definition: gpio_sfrs.h:950
uint8_t PWMMODE
Definition: gpio_sfrs.h:532
uint8_t MDI2C
Definition: gpio_sfrs.h:35
#define GPIOB_SFRS
The starting address of GPIOB block.
Definition: gpio_sfrs.h:318
static __INLINE void GPIOA_Set(uint8_t pos, uint8_t bit)
Set pin state on GPIOA.
Definition: gpio_sfrs.h:183
uint8_t PORT
Definition: gpio_sfrs.h:528
A structure to represent Special Function Registers for GPIOC.
Definition: gpio_sfrs.h:527
static __INLINE void GPIOE_EnablePortOutput(bool bit, uint8_t mask)
Enable/disable output enable bits on GPIOE.
Definition: gpio_sfrs.h:1086
static __INLINE void GPIOE_EnablePullUp(uint8_t pos, bool bit)
Enable/disable pull up on GPIOE.
Definition: gpio_sfrs.h:969
static __INLINE void GPIOC_EnableOutput(uint8_t pos, bool bit)
Enable/disable output on GPIOC.
Definition: gpio_sfrs.h:578
static __INLINE void GPIOE_PortSet(uint8_t val, uint8_t mask)
Set port value on GPIOE.
Definition: gpio_sfrs.h:1116
uint8_t PORTC_PullDn
Definition: gpio_sfrs.h:58
static __INLINE void GPIOC_EnableInput(uint8_t pos, bool bit)
Enable/disable Input on GPIOC.
Definition: gpio_sfrs.h:592
uint8_t PORT
Definition: gpio_sfrs.h:723
static __INLINE void GPIO_ConfigClrModePWM1(uint8_t pos)
Set PWM1 back to GPIO mode.
Definition: gpio_sfrs.h:1203
static __INLINE uint8_t GPIOD_Read(uint8_t pos)
Read pin state on GPIOD.
Definition: gpio_sfrs.h:815
static __INLINE uint8_t GPIOB_Read(uint8_t pos)
Read pin state on GPIOB.
Definition: gpio_sfrs.h:396
uint8_t UTXPOL
Definition: gpio_sfrs.h:37
uint8_t PULLDOWN
Definition: gpio_sfrs.h:954
uint8_t PORTE_PullDn
Definition: gpio_sfrs.h:64
uint8_t PWMMODE
Definition: gpio_sfrs.h:82
uint8_t PORTA
Definition: gpio_sfrs.h:21
#define GPIOD_SFRS
The starting address of GPIOD block.
Definition: gpio_sfrs.h:737
static __INLINE void GPIOD_EnablePortInput(bool bit, uint8_t mask)
Enable/disable input enable bits on GPIOD.
Definition: gpio_sfrs.h:891
A structure to represent Special Function Registers for GPIOA block.
Definition: gpio_sfrs.h:77
uint8_t PORTD_PullDn
Definition: gpio_sfrs.h:61
uint8_t READEN
Definition: gpio_sfrs.h:731
static __INLINE void GPIOD_EnableInput(uint8_t pos, bool bit)
Enable/disable Input on GPIOD.
Definition: gpio_sfrs.h:787
uint8_t PULLUP
Definition: gpio_sfrs.h:729
uint8_t PORTA_PullUp
Definition: gpio_sfrs.h:51
static __INLINE void GPIOD_EnablePortOutput(bool bit, uint8_t mask)
Enable/disable output enable bits on GPIOD.
Definition: gpio_sfrs.h:876
uint8_t PORTB_IntEn
Definition: gpio_sfrs.h:47
uint8_t PORTB_PullDn
Definition: gpio_sfrs.h:55
uint8_t Reserved2
Definition: gpio_sfrs.h:48
static __INLINE void GPIOB_EnablePortOutput(bool bit, uint8_t mask)
Enable/disable output enable bits on GPIOB.
Definition: gpio_sfrs.h:457
static __INLINE void GPIOE_Set(uint8_t pos, uint8_t bit)
Set pin state on GPIOE.
Definition: gpio_sfrs.h:1036
static __INLINE void GPIOD_Set(uint8_t pos, uint8_t bit)
Set pin state on GPIOD.
Definition: gpio_sfrs.h:826
uint8_t OUTPUTEN
Definition: gpio_sfrs.h:80
uint8_t PORTD_OutputEn
Definition: gpio_sfrs.h:29
uint8_t Reserved3[98190]
Definition: gpio_sfrs.h:50
uint8_t PORTD_PullUp
Definition: gpio_sfrs.h:60
uint8_t PORTE_LEDMode
Definition: gpio_sfrs.h:43
uint8_t PORTD
Definition: gpio_sfrs.h:24
static __INLINE void GPIOC_EnablePortPullDown(bool bit, uint8_t mask)
Enable/disable pull down on GPIOC.
Definition: gpio_sfrs.h:652
static __INLINE void GPIOD_EnablePullUp(uint8_t pos, bool bit)
Enable/disable pull up on GPIOD.
Definition: gpio_sfrs.h:745
static __INLINE void GPIOD_PortSet(uint8_t val, uint8_t mask)
Set port value on GPIOD.
Definition: gpio_sfrs.h:921
uint8_t PULLDOWN
Definition: gpio_sfrs.h:87
uint8_t INTEN
Definition: gpio_sfrs.h:727
static __INLINE uint8_t GPIOB_PortRead(uint8_t mask)
Read port value from GPIOB.
Definition: gpio_sfrs.h:519
uint8_t PORTC_PullUp
Definition: gpio_sfrs.h:57
uint8_t PULLUP
Definition: gpio_sfrs.h:534
uint8_t OUTPUTEN
Definition: gpio_sfrs.h:530
A structure to represent Special Function Registers for GPIOE.
Definition: gpio_sfrs.h:946
uint8_t PORTE_OutputEn
Definition: gpio_sfrs.h:30
static __INLINE void GPIO_ConfigClrModeLED(uint8_t pos)
Set LED pin back to GPIO.
Definition: gpio_sfrs.h:1243
uint8_t PORTE_LEDTrim
Definition: gpio_sfrs.h:66
static __INLINE void GPIO_ConfigSetModePWM2(uint8_t pos)
Config GPIO pin to PWM2.
Definition: gpio_sfrs.h:1213
static __INLINE void GPIOB_EnablePortInput(bool bit, uint8_t mask)
Enable/disable input enable bits on GPIOB.
Definition: gpio_sfrs.h:472
uint8_t PULLDOWN
Definition: gpio_sfrs.h:535
static __INLINE void GPIOD_EnablePortInterrupt(bool bit, uint8_t mask)
Enable/disable interrupt enable bits on GPIOD.
Definition: gpio_sfrs.h:906
uint8_t PORTA_ReadEn
Definition: gpio_sfrs.h:53
uint8_t PULLUP
Definition: gpio_sfrs.h:86
static __INLINE void GPIO_ConfigSetModePWM1(uint8_t pos)
Config GPIO pin to PWM1.
Definition: gpio_sfrs.h:1193
uint8_t OUTPUTEN
Definition: gpio_sfrs.h:949
static __INLINE void GPIOA_EnableOutput(uint8_t pos, bool bit)
Enable/disable output on GPIOA.
Definition: gpio_sfrs.h:130
static __INLINE void GPIOA_EnablePullUp(uint8_t pos, bool bit)
Enable/disable pull up on GPIOA.
Definition: gpio_sfrs.h:102
uint8_t READEN
Definition: gpio_sfrs.h:312
static __INLINE void GPIOB_EnablePortPullUp(bool bit, uint8_t mask)
Enable/disable pull up bits on GPIOB.
Definition: gpio_sfrs.h:427
static __INLINE void GPIOD_EnableOutput(uint8_t pos, bool bit)
Enable/disable output on GPIOD.
Definition: gpio_sfrs.h:773
static __INLINE void GPIOC_EnablePullUp(uint8_t pos, bool bit)
Enable/disable pull up on GPIOC.
Definition: gpio_sfrs.h:550
uint8_t PORTA_PullDn
Definition: gpio_sfrs.h:52
union GPIO_SFRS_t::@43 PIN_CONFIG
static __INLINE uint8_t GPIOE_PortRead(uint8_t mask)
Read port value from GPIOE.
Definition: gpio_sfrs.h:1133
static __INLINE void GPIOE_EnablePortPullDown(bool bit, uint8_t mask)
Enable/disable pull down bits on GPIOE.
Definition: gpio_sfrs.h:1071
uint8_t PORTC
Definition: gpio_sfrs.h:23
static __INLINE void GPIOB_PortSet(uint8_t val, uint8_t mask)
Set port value on GPIOB.
Definition: gpio_sfrs.h:502
uint8_t PORT
Definition: gpio_sfrs.h:947
static __INLINE void GPIO_ConfigI2C(uint8_t mode, uint8_t pu)
Config GPIO pin to I2C mode.
Definition: gpio_sfrs.h:1158
uint8_t PORTE_PullUp
Definition: gpio_sfrs.h:63
static __INLINE void GPIOB_EnableInterrupt(uint8_t pos, bool bit)
Enable/disable interrupt on GPIOA.
Definition: gpio_sfrs.h:382
static __INLINE void GPIOD_EnablePortPullDown(bool bit, uint8_t mask)
Enable/disable pull down on GPIOD.
Definition: gpio_sfrs.h:861
uint8_t PORTA_PWMMode
Definition: gpio_sfrs.h:44
uint8_t MDSPI
Definition: gpio_sfrs.h:36
static __INLINE void GPIOA_EnablePortInterrupt(bool bit, uint8_t mask)
Enable/disable interrupt enable bits on GPIOA.
Definition: gpio_sfrs.h:263
uint8_t PORTA_IntEn
Definition: gpio_sfrs.h:46
static __INLINE void GPIOB_Set(uint8_t pos, uint8_t bit)
Set pin state on GPIOB.
Definition: gpio_sfrs.h:407
struct GPIO_SFRS_t GPIO_SFRS_t
A structure to represent Special Function Registers for all GPIO block.
uint8_t PORT
Definition: gpio_sfrs.h:304
uint8_t INTEN
Definition: gpio_sfrs.h:308
static __INLINE uint8_t GPIOD_PortRead(uint8_t mask)
Read port value from GPIOD.
Definition: gpio_sfrs.h:938
uint8_t I2CRT
Definition: gpio_sfrs.h:39
static __INLINE void GPIOA_EnablePullDown(uint8_t pos, bool bit)
Enable/disable pull down on GPIOA.
Definition: gpio_sfrs.h:116
static __INLINE void GPIOC_Set(uint8_t pos, uint8_t bit)
Set pin state on GPIOC.
Definition: gpio_sfrs.h:617
static __INLINE void GPIOB_EnableInput(uint8_t pos, bool bit)
Enable/disable Input on GPIOB.
Definition: gpio_sfrs.h:368
static __INLINE void GPIOB_EnablePullUp(uint8_t pos, bool bit)
Enable/disable pull up on GPIOB.
Definition: gpio_sfrs.h:326
uint8_t PULLUP
Definition: gpio_sfrs.h:953
static __INLINE void GPIOC_EnablePullDown(uint8_t pos, bool bit)
Enable/disable pull down on GPIOC.
Definition: gpio_sfrs.h:564
uint8_t PORTC_PWMMode
Definition: gpio_sfrs.h:45
static __INLINE void GPIOA_EnableInput(uint8_t pos, bool bit)
Enable/disable input on GPIOA.
Definition: gpio_sfrs.h:144
uint8_t PULLDOWN
Definition: gpio_sfrs.h:730
static __INLINE uint8_t GPIOA_PortRead(uint8_t mask)
Read port value from GPIOA.
Definition: gpio_sfrs.h:295
static __INLINE void GPIOD_EnablePullDown(uint8_t pos, bool bit)
Enable/disable pull down on GPIOD.
Definition: gpio_sfrs.h:759
static __INLINE void GPIO_ConfigSPI(uint8_t mode)
Config GPIO pin to SPI mode.
Definition: gpio_sfrs.h:1183
uint8_t RESERVED2
Definition: gpio_sfrs.h:83
uint8_t PORTC_OutputEn
Definition: gpio_sfrs.h:28
static __INLINE void GPIOA_EnablePortInput(bool bit, uint8_t mask)
Enable/disable input enable bits on GPIOA.
Definition: gpio_sfrs.h:248
static __INLINE void GPIOA_EnableInterrupt(uint8_t pos, bool bit)
Enable/disable interrupt on GPIOA.
Definition: gpio_sfrs.h:158
A structure to represent Special Function Registers for GPIOB.
Definition: gpio_sfrs.h:303
static __INLINE void GPIOC_EnablePortOutput(bool bit, uint8_t mask)
Enable/disable output enable bits on GPIOC.
Definition: gpio_sfrs.h:667
uint8_t LEDMODE
Definition: gpio_sfrs.h:951
uint8_t READEN
Definition: gpio_sfrs.h:955
static __INLINE void GPIOE_EnablePortInput(bool bit, uint8_t mask)
Enable/disable input enable bits on GPIOE.
Definition: gpio_sfrs.h:1101
#define GPIOC_SFRS
The starting address of GPIOC block.
Definition: gpio_sfrs.h:542
uint8_t PORTC_ReadEn
Definition: gpio_sfrs.h:59
static __INLINE uint8_t GPIOC_Read(uint8_t pos)
Read pin state on GPIOC.
Definition: gpio_sfrs.h:606
static __INLINE void GPIOE_EnableOutput(uint8_t pos, bool bit)
Enable/disable output on GPIOE.
Definition: gpio_sfrs.h:997
uint8_t PORTB
Definition: gpio_sfrs.h:22
uint8_t PORTE_ReadEn
Definition: gpio_sfrs.h:65
static __INLINE void GPIOA_EnablePortOutput(bool bit, uint8_t mask)
Enable/disable output enable bits on GPIOA.
Definition: gpio_sfrs.h:233
uint8_t PORTD_IntEn
Definition: gpio_sfrs.h:49
uint8_t PORTE
Definition: gpio_sfrs.h:25
static __INLINE void GPIOE_EnablePullDown(uint8_t pos, bool bit)
Enable/disable pull down on GPIOE.
Definition: gpio_sfrs.h:983
static __INLINE void GPIOE_EnableInput(uint8_t pos, bool bit)
Enable/disable Input on GPIOE.
Definition: gpio_sfrs.h:1011
#define GPIOE_SFRS
The starting address of GPIOE block.
Definition: gpio_sfrs.h:961
uint8_t PORTB_OutputEn
Definition: gpio_sfrs.h:27