Contiki-NG

Implementation of the cc2538 System Control driver. More...

#include "contiki.h"
#include "reg.h"
#include "cpu.h"
#include "dev/sys-ctrl.h"
#include "dev/gpio.h"
#include "dev/ioc.h"
#include <stdint.h>

Go to the source code of this file.

Functions

SysCtrl functions
int sys_ctrl_get_reset_cause (void)
 Gets the cause of the last reset. More...
 
const char * sys_ctrl_get_reset_cause_str (void)
 Gets a string describing the cause of the last reset. More...
 
void sys_ctrl_init ()
 Initialises the System Control Driver. More...
 
void sys_ctrl_reset ()
 Generates a warm reset through the SYS_CTRL_PWRDBG register.
 
uint32_t sys_ctrl_get_sys_clock ()
 Returns the actual system clock in Hz.
 
uint32_t sys_ctrl_get_io_clock ()
 Returns the actual io clock in Hz.
 

Detailed Description

Implementation of the cc2538 System Control driver.

Definition in file sys-ctrl.c.