The friendly Operating System for the Internet of Things
cc26x0/include/periph_cpu.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
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef PERIPH_CPU_H
20 #define PERIPH_CPU_H
21 
22 #include "cpu.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 #define CPUID_LEN (16U)
32 
33 #ifndef DOXYGEN
34 
37 #define HAVE_GPIO_MODE_T
38 typedef enum {
39  GPIO_IN = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_OFF),
40  GPIO_IN_PD = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_DOWN),
41  GPIO_IN_PU = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_UP),
45 } gpio_mode_t;
46 
50 #define HAVE_GPIO_FLANK_T
51 typedef enum {
55 } gpio_flank_t;
56 #endif /* ndef DOXYGEN */
57 
61 typedef struct {
63  uint8_t num;
64  uint8_t irqn;
65 } timer_conf_t;
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* PERIPH_CPU_H */
72 
#define IOCFG_IOMODE_OPEN_DRAIN
open drain
Definition: cc26x0_ioc.h:120
emit interrupt on rising flank
Definition: gpio.h:114
gpt_reg_t * dev
the GPT base address
GPT registers.
Definition: cc26x0_gpt.h:31
#define IOCFG_PULLCTL_UP
pull up
Definition: cc26x0_ioc.h:110
#define IOCFG_PULLCTL_DOWN
pull down
Definition: cc26x0_ioc.h:111
uint8_t irqn
interrupt number
emit interrupt on both flanks
Definition: gpio.h:115
gpio_flank_t
Definition of possible active flanks for external interrupt mode.
Definition: gpio.h:112
emit interrupt on falling flank
Definition: gpio.h:113
input, pull-up
#define IOCFG_PULLCTL_OFF
no IO pull
Definition: cc26x0_ioc.h:109
#define IOCFG_EDGEDET_BOTH
edge detection on both edges
Definition: cc26x0_ioc.h:115
input, no pull
#define IOCFG_EDGEDET_RISING
edge detection on rising edge
Definition: cc26x0_ioc.h:114
uint8_t num
number of the timer
not supported
input, pull-down
Timer configuration data.
#define IOCFG_EDGEDET_FALLING
edge detection on falling edge
Definition: cc26x0_ioc.h:113