47 #include "contiki-net.h"
51 #include "dev/watchdog.h"
53 #include "ieee-addr.h"
60 #include "sys/clock.h"
62 #include "lib/sensors.h"
63 #include "button-sensor.h"
67 #include "driverlib/driverlib_release.h"
79 for(k = 0; k < 800; ++k) {
80 j = k > 400 ? 800 - k : k;
83 for(i = 0; i < j; ++i) {
87 for(i = 0; i < 400 - j; ++i) {
102 short_addr = ext_addr[7];
103 short_addr |= ext_addr[6] << 8;
108 NETSTACK_RADIO.set_value(RADIO_PARAM_PAN_ID, IEEE802154_PANID);
109 NETSTACK_RADIO.set_value(RADIO_PARAM_16BIT_ADDR, short_addr);
110 NETSTACK_RADIO.set_value(RADIO_PARAM_CHANNEL, RF_CORE_CHANNEL);
111 NETSTACK_RADIO.set_object(RADIO_PARAM_64BIT_ADDR, ext_addr, 8);
113 NETSTACK_RADIO.get_value(RADIO_PARAM_CHANNEL, &val);
114 printf(
" RF: Channel %d\n", val);
116 #if STARTUP_CONF_VERBOSE
119 printf(
" Link layer addr: ");
120 for(i = 0; i < LINKADDR_SIZE - 1; i++) {
137 ti_lib_vims_mode_set(VIMS_BASE, VIMS_MODE_ENABLED);
138 ti_lib_vims_configure(VIMS_BASE,
true,
true);
140 ti_lib_int_master_disable();
159 ti_lib_pwr_ctrl_io_freeze_disable();
163 ti_lib_int_master_enable();
175 #if CC26XX_UART_CONF_ENABLE
181 printf(
"Starting " CONTIKI_VERSION_STRING
"\n");
182 printf(
"With DriverLib v%u.%u\n", DRIVERLIB_RELEASE_GROUP,
183 DRIVERLIB_RELEASE_BUILD);
184 printf(BOARD_STRING
"\n");
190 ENERGEST_ON(ENERGEST_TYPE_CPU);
195 printf(
"%s\n", NETSTACK_NETWORK.name);
197 printf(
"%s\n", NETSTACK_MAC.name);
199 printf(
"%s", NETSTACK_RDC.name);
201 if(NETSTACK_RDC.channel_check_interval() != 0) {
202 printf(
", Channel Check Interval: %u ticks",
203 NETSTACK_RDC.channel_check_interval());
211 #if NETSTACK_CONF_WITH_IPV6
221 autostart_start(autostart_processes);
void cc26xx_uart_init()
Initialises the UART controller, configures I/O control and interrupts.
Header file for the real-time timer module.
#define LEDS_ORANGE
LED4 (Orange) -> PC3.
Header file with macros which rename TI CC26xxware functions.
void ieee_addr_cpy_to(uint8_t *dst, uint8_t len)
Copy the node's IEEE address to a destination memory area.
void lpm_drop()
Drop the cortex to sleep / deep sleep and shut down peripherals.
void lpm_init()
Initialise the low-power mode management module.
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
Header file for the CC13xx/CC26xx AON RTC driver.
void clock_init(void)
Initialize the clock library.
void soc_rtc_init(void)
Initialise the CC13XX/CC26XX AON RTC module.
Header file for the CC13xx/CC26xx GPIO interrupt management.
void oscillators_select_lf_xosc(void)
Set the LF clock source to be the LF XOSC.
Header file for the CC13xx/CC26xx RF core driver.
int process_run(void)
Run the system once - call poll handlers and process one event.
#define NULL
The null pointer.
int radio_value_t
Each radio has a set of parameters that designate the current configuration and state of the radio...
802.15.4 frame creation and parsing functions
void board_init(void)
Board specific iniatialisation.
void watchdog_periodic(void)
Writes the WDT clear sequence.
void process_start(struct process *p, process_data_t data)
Start a process.
int main(void)
This is main...
void gpio_interrupt_init()
Initialise the GPIO interrupt handling module.
void rtimer_init(void)
Initialize the real-time scheduler.
void watchdog_init(void)
Copyright (c) 2014, Analog Devices, Inc.
Generic serial I/O process header filer.
CCIF uip_lladdr_t uip_lladdr
Host L2 address.
Header file for the CC13xx/CC26xx UART driver.
void process_init(void)
Initialize the process module.
void ctimer_init(void)
Initialize the callback timer library.
linkaddr_t linkaddr_node_addr
The Rime address of the node.
Header file for the CC13xx/CC26xx oscillator control.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.