cc26xx_cc13xx_gpio.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Leon George
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
19 #ifndef CC26XX_CC13XX_GPIO_H
20 #define CC26XX_CC13XX_GPIO_H
21 
22 #include "cc26xx_cc13xx.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 #define GPIO_BASE (0x40022000)
37 typedef struct {
38  reg32_t DOUT_FRAG[8];
39  reg32_t __reserved1[24];
40  reg32_t DOUT;
41  reg32_t __reserved2[3];
42  reg32_t DOUTSET;
43  reg32_t __reserved3[3];
44  reg32_t DOUTCLR;
45  reg32_t __reserved4[3];
46  reg32_t DOUTTGL;
47  reg32_t __reserved5[3];
48  reg32_t DIN;
49  reg32_t __reserved6[3];
50  reg32_t DOE;
51  reg32_t __reserved7[3];
52  reg32_t EVFLAGS;
53 } gpio_regs_t;
54 
55 #define GPIO ((gpio_regs_t *) (GPIO_BASE))
57 #ifdef __cplusplus
58 } /* end extern "C" */
59 #endif
60 
61 #endif /* CC26XX_CC13XX_GPIO_H */
62 
gpio_regs_t::EVFLAGS
reg32_t EVFLAGS
r/w1c indicates an input event
Definition: cc26xx_cc13xx_gpio.h:52
gpio_regs_t
GPIO registers.
Definition: cc26xx_cc13xx_gpio.h:37
gpio_regs_t::DOUTSET
reg32_t DOUTSET
w1s set output
Definition: cc26xx_cc13xx_gpio.h:42
gpio_regs_t::DOUTCLR
reg32_t DOUTCLR
w1c clear output
Definition: cc26xx_cc13xx_gpio.h:44
gpio_regs_t::DOUT
reg32_t DOUT
r/w state of the output
Definition: cc26xx_cc13xx_gpio.h:40
gpio_regs_t::DOE
reg32_t DOE
r/w enable output
Definition: cc26xx_cc13xx_gpio.h:50
cc26xx_cc13xx.h
CC26xx, CC13xx definitions.
gpio_regs_t::DIN
reg32_t DIN
r input status
Definition: cc26xx_cc13xx_gpio.h:48
gpio_regs_t::DOUTTGL
reg32_t DOUTTGL
r/w toggle output
Definition: cc26xx_cc13xx_gpio.h:46