55 #include "usb/usb-serial.h" 56 #include "lib/random.h" 57 #include "lib/sensors.h" 65 #include "ieee-addr.h" 74 #define LOG_MODULE "CC2538DK" 75 #define LOG_LEVEL LOG_LEVEL_MAIN 82 for(k = 0; k < 800; ++k) {
83 j = k > 400 ? 800 - k : k;
86 for(i = 0; i < j; ++i) {
90 for(i = 0; i < 400 - j; ++i) {
104 short_addr = ext_addr[7];
105 short_addr |= ext_addr[6] << 8;
141 #if USB_SERIAL_CONF_ENABLE 171 LOG_INFO(
"%s\n", BOARD_STRING);
Header file for the cc2538 UART driver.
#define SERIAL_LINE_CONF_UART
UART to use with serial line.
Header file for the cc2538 RF driver.
void usb_serial_init()
Initialise the Serial-over-USB process.
void platform_init_stage_two()
Stage 2 of platform driver initialisation.
void platform_idle()
The platform's idle/sleep function.
Header file for the cc2538 AES/SHA cryptoprocessor driver.
Header file for the link-layer address representation
void leds_init(void)
Initialise the LED HAL.
void uart_init(uint8_t uart)
Initialises the UART controller, configures I/O control and interrupts.
The short address (16 bits) for the radio, which is used by the h/w filter.
void soc_print_info(void)
Prints SoC information.
Channel used for radio communication.
Header file with register manipulation macro definitions.
void adc_init(void)
Initializes the ADC controller.
Header file for the cc2538 ADC driver.
void leds_on(unsigned char leds)
Turn on multiple LEDs.
void leds_off(unsigned char leds)
Turn off multiple LEDs.
Header file with register, macro and function declarations for the cc2538 micro-DMA controller module...
linkaddr_t linkaddr_node_addr
The link-layer address of the node.
void ieee_addr_cpy_to(uint8_t *dst, uint8_t len)
Copy the node's IEEE address to a destination memory area.
#define IEEE802154_DEFAULT_CHANNEL
The default channel for IEEE 802.15.4 networks.
int serial_line_input_byte(unsigned char c)
Get one byte of input from the serial driver.
#define INTERRUPTS_ENABLE()
Enables all CPU interrupts.
The personal area network identifier (PAN ID), which is used by the h/w frame filtering functionality...
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 soc_init()
Common initialisation routine for all CC2538-based platforms.
802.15.4 frame creation and parsing functions
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
void platform_init_stage_three()
Final stage of platform driver initialisation.
void crypto_disable(void)
Disables the AES/SHA cryptoprocessor.
Header file with macro and function declarations for the cc2538 SoC.
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
void udma_init()
Initialise the uDMA driver.
Long (64 bits) address for the radio, which is used by the address filter.
Generic serial I/O process header filer.
Include file for the Contiki low-layer network stack (NETSTACK)
Header file for the logging system
Header file for the LED HAL.
void platform_init_stage_one(void)
Basic (Stage 1) platform driver initialisation.
uint8_t leds_mask_t
An OR mask datatype to represents multiple LEDs.
void process_start(struct process *p, process_data_t data)
Start a process.
void usb_serial_set_input(int(*input)(unsigned char c))
Set an input hook for bytes received over USB.
void crypto_init(void)
Enables and resets the AES/SHA cryptoprocessor.