46#include "dev/button-sensor.h"
53#include "usb/usb-serial.h"
54#include "lib/random.h"
55#include "lib/sensors.h"
72#define LOG_MODULE "OpenMote"
73#define LOG_LEVEL LOG_LEVEL_MAIN
85 for(k = 0; k < 800; ++k) {
86 j = k > 400 ? 800 - k : k;
89 for(i = 0; i < j; ++i) {
93 for(i = 0; i < 400 - j; ++i) {
107 short_addr = ext_addr[7];
108 short_addr |= ext_addr[6] << 8;
134#if USB_SERIAL_CONF_ENABLE
139 i2c_init(I2C_SDA_PORT, I2C_SDA_PIN, I2C_SCL_PORT, I2C_SCL_PIN, I2C_SCL_NORMAL_BUS_SPEED);
166 LOG_INFO(
"%s\n", BOARD_STRING);
Header file for the cc2538 RF driver.
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
Header file for the cc2538 AES/SHA cryptoprocessor driver.
802.15.4 frame creation and parsing functions
#define INTERRUPTS_ENABLE()
Enables all CPU interrupts.
void crypto_init(void)
Enables and resets the AES/SHA cryptoprocessor.
void crypto_disable(void)
Disables the AES/SHA cryptoprocessor.
void i2c_init(uint8_t port_sda, uint8_t pin_sda, uint8_t port_scl, uint8_t pin_scl, uint32_t bus_speed)
Initialize the I2C peripheral and pins.
void ieee_addr_cpy_to(uint8_t *dst, uint8_t len)
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
void soc_print_info(void)
Prints SoC information.
void soc_init()
Common initialisation routine for all CC2538-based platforms.
void uart_set_input(uint8_t uart, int(*input)(unsigned char c))
Assigns a callback to be called when the UART receives a byte.
void udma_init()
Initialise the uDMA driver.
void usb_serial_set_input(int(*input)(unsigned char c))
Set an input hook for bytes received over USB.
void usb_serial_init()
Initialise the Serial-over-USB process.
#define SERIAL_LINE_CONF_UART
UART to use with serial line.
void platform_init_stage_three()
Final stage of platform driver initialisation.
void platform_init_stage_one(void)
Basic (Stage 1) platform driver initialisation.
void platform_idle()
The platform's idle/sleep function.
void platform_init_stage_two()
Stage 2 of platform driver initialisation.
void board_init(void)
Board specific iniatialisation.
void leds_init(void)
Initialise the LED HAL.
uint8_t leds_mask_t
An OR mask datatype to represents multiple LEDs.
void uart_init(void)
Initializa the UART driver.
linkaddr_t linkaddr_node_addr
The link-layer address of the node.
void process_start(struct process *p, process_data_t data)
Start a process.
@ RADIO_PARAM_CHANNEL
Channel used for radio communication.
@ RADIO_PARAM_64BIT_ADDR
Long (64 bits) address for the radio, which is used by the address filter.
@ RADIO_PARAM_PAN_ID
The personal area network identifier (PAN ID), which is used by the h/w frame filtering functionality...
@ RADIO_PARAM_16BIT_ADDR
The short address (16 bits) for the radio, which is used by the h/w filter.
Header file with declarations for the I2C Control module.
Header file for the LED HAL.
Header file for the link-layer address representation.
Header file for the logging system.
#define IEEE802154_DEFAULT_CHANNEL
The default channel for IEEE 802.15.4 networks.
Include file for the Contiki low-layer network stack (NETSTACK)
Header file with register manipulation macro definitions.
Generic serial I/O process header filer.
Header file with macro and function declarations for the cc2538 SoC.
Header file for the cc2538 UART driver.
Header file with register, macro and function declarations for the cc2538 micro-DMA controller module...