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_ADDR (&FCFG->MAC_BLE_0)
32 
35 #define CPUID_LEN (16U)
36 
41 #define PROVIDES_PM_SET_LOWEST_CORTEXM
42 
44 #ifndef DOXYGEN
45 
48 #define HAVE_GPIO_MODE_T
49 typedef enum {
50  GPIO_IN = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_OFF),
51  GPIO_IN_PD = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_DOWN),
52  GPIO_IN_PU = (IOCFG_INPUT_ENABLE | IOCFG_PULLCTL_UP),
56 } gpio_mode_t;
57 
61 #define HAVE_GPIO_FLANK_T
62 typedef enum {
66 } gpio_flank_t;
67 
74 typedef struct {
75  uint8_t cfg;
76  uint8_t chn;
77 } timer_conf_t;
78 
79 #endif /* ifndef DOXYGEN */
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* PERIPH_CPU_H */
86 
#define IOCFG_IOMODE_OPEN_DRAIN
open drain
Definition: cc26x0_ioc.h:120
emit interrupt on rising flank
#define IOCFG_PULLCTL_UP
pull up
Definition: cc26x0_ioc.h:110
#define IOCFG_PULLCTL_DOWN
pull down
Definition: cc26x0_ioc.h:111
emit interrupt on both flanks
emit interrupt on falling flank
#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
not supported
input, pull-down
Timer configuration.
#define IOCFG_EDGEDET_FALLING
edge detection on falling edge
Definition: cc26x0_ioc.h:113