47 #if SYS_CTRL_OSC32K_USE_XTAL
48 #define SYS_CTRL_OSCS 0
50 #define SYS_CTRL_OSCS SYS_CTRL_CLOCK_CTRL_OSC32K
58 #if SYS_CTRL_OSC32K_USE_XTAL
78 val = SYS_CTRL_OSCS | SYS_CTRL_CLOCK_CTRL_OSC_PD
79 | SYS_CTRL_CLOCK_CTRL_IO_DIV_16MHZ | SYS_CTRL_CLOCK_CTRL_SYS_DIV_16MHZ;
83 SYS_CTRL_CLOCK_STA_OSC)) != SYS_CTRL_OSCS);
85 #if SYS_CTRL_OSC32K_USE_XTAL
#define GPIO_PORT_TO_BASE(PORT)
Converts a port number to the port base address.
void sys_ctrl_reset()
Generates a warm reset through the SYS_CTRL_PWRDBG register.
#define IOC_OVERRIDE_ANA
Analog Enable.
#define GPIO_D_NUM
GPIO_D: 3.
#define SYS_CTRL_CLOCK_STA
Clock status register.
Header file with register and macro declarations for the cc2538 GPIO module.
void ioc_set_over(uint8_t port, uint8_t pin, uint8_t over)
Set Port:Pin override function.
#define GPIO_SET_INPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to input.
Header file with declarations for the I/O Control module.
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
#define SYS_CTRL_PWRDBG
Power debug register.
Header file with register manipulation macro definitions.
#define SYS_CTRL_CLOCK_CTRL
Clock control register.
Header file for the cc2538 System Control driver.
#define GPIO_SOFTWARE_CONTROL(PORT_BASE, PIN_MASK)
Configure the pin to be software controlled with PIN_MASK of port with PORT_BASE. ...
void sys_ctrl_init()
Initialises the System Control Driver.
#define GPIO_PIN_MASK(PIN)
Converts a pin number to a pin mask.