boards/cc2650-launchpad/include/periph_conf.h File Reference

Peripheral MCU configuration for TI CC2650 LaunchPad. More...

Detailed Description

Peripheral MCU configuration for TI CC2650 LaunchPad.

Author
Nicholas Jackson nicho.nosp@m.las..nosp@m.jacks.nosp@m.on@g.nosp@m.riffi.nosp@m.thun.nosp@m.i.edu.nosp@m..au
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file boards/cc2650-launchpad/include/periph_conf.h.

#include "periph_cpu.h"
+ Include dependency graph for boards/cc2650-launchpad/include/periph_conf.h:

Go to the source code of this file.

Macros

Clock configuration
#define CLOCK_CORECLOCK   (48000000U)
 
UART configuration

The used CC26x0 CPU only supports a single UART device, so all we need to configure are the RX and TX pins.

Optionally we can enable hardware flow control, by setting UART_HW_FLOW_CTRL to 1 and defining pins for UART_CTS_PIN and UART_RTS_PIN.

#define UART_NUMOF   (1)
 
#define UART_RX_PIN   (2)
 
#define UART_TX_PIN   (3)
 

Timer configuration

General purpose timers (GPT[0-3]) are configured consecutively and in order (without gaps) starting from GPT0, i.e.

if multiple timers are enabled.

#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.cfg = GPT_CFG_16T,
.chn = 2,
},
{
.cfg = GPT_CFG_32T,
.chn = 1,
},
{
.cfg = GPT_CFG_16T,
.chn = 2,
},
{
.cfg = GPT_CFG_32T,
.chn = 1,
}
}
#define GPT_CFG_32T
GPT register values.
Definition: cc26x0_gpt.h:89

Definition at line 46 of file boards/cc2650-launchpad/include/periph_conf.h.