#include <stdio.h>
#include <string.h>
#include "contiki.h"
#include "contiki-net.h"
#include "sys/autostart.h"
#include "flash.h"
#include "leds.h"
#include "serial-line.h"
#include "slip.h"
#include "watchdog.h"
#include "button-sensor.h"
#include "xmem.h"
#include "lib/random.h"
#include "lib/sensors.h"
#include "temp-sensor.h"
#include "voltage-sensor.h"
#include "netstack-aes.h"
#include "net/netstack.h"
#include "net/ip/uip.h"
#include "net/mac/frame802154.h"
#include "net/linkaddr.h"
#include "net/rime/rime.h"
#include "node-id.h"
#include <asf.h>
#include "delay.h"
#include "usart.h"
#include "sio2host.h"
#include "conf_sio2host.h"
#include "stdio_serial.h"
#include "rtc_count.h"
#include "rtc_count_interrupt.h"
#include "ledctrl.h"
Macros | |
#define | _DEBUG_ 0 |
Copyright (c) 2015 Microchip Technology Inc and 2012 – 2013, Thingsquare, http://www.thingsquare.com/. More... | |
#define | BUSYWAIT_UNTIL(cond, max_time) |
#define | PRINT6ADDR(addr) |
#define | PRINTF(...) |
#define | PRINTLLADDR(addr) |
#define | PUTS_ON_ENC 0 |
#define | REG_RCAUSE (0x40000438U) |
#define | UART_RX_ENABLE 0 |
Functions | |
void | configure_gclock_generator (void) |
void | configure_tc3 (void) |
void | configure_wdt_callbacks (void) |
uint8_t * | edbg_eui_read_eui64 (void) |
int | main (int argc, char *argv[]) |
static void | print_processes (struct process *const processes[]) |
static void | print_reset_causes (void) |
Print out all known reset causes. More... | |
static void | set_link_addr (void) |
void | watchdog_early_warning_callback (void) |
Variables | |
PROCINIT & | etimer_process |
bool | ready_to_send_new_packet =true |
uint8_t | sent_packets =0 |
#define _DEBUG_ 0 |
Copyright (c) 2015 Microchip Technology Inc and 2012 – 2013, Thingsquare, http://www.thingsquare.com/.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define BUSYWAIT_UNTIL | ( | cond, | |
max_time | |||
) |
#define PRINT6ADDR | ( | addr | ) |
#define PRINTF | ( | ... | ) |
#define PRINTLLADDR | ( | addr | ) |
#define PUTS_ON_ENC 0 |
#define REG_RCAUSE (0x40000438U) |
Referenced by print_reset_causes().
#define UART_RX_ENABLE 0 |
void configure_gclock_generator | ( | void | ) |
[setup_1]
[setup_1] [setup_2]
[setup_2]
[setup_3]
[setup_3] [setup_4]
[setup_4]
[setup_5]
[setup_5]
void configure_tc3 | ( | void | ) |
[setup_config]
[setup_config] [setup_config_defaults]
[setup_config_defaults]
[setup_change_config]
[setup_change_config]
[setup_change_config_pwm]
[setup_change_config_pwm]
[setup_set_config]
[setup_set_config]
[setup_enable]
[setup_enable]
void configure_wdt_callbacks | ( | void | ) |
[setup_5]
[setup_5]
[setup_6]
[setup_6]
uint8_t* edbg_eui_read_eui64 | ( | void | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
References uip_eth_addr::addr, ADDR_TENTATIVE, autostart_processes, autostart_start(), rdc_driver::channel_check_interval, clock_init(), CLOCK_SECOND, configure_tc3(), ctimer_init(), delay_init(), edbg_eui_read_eui64(), energest_init(), ENERGEST_ON, ENERGEST_TYPE_CPU, etimer_process, flash_init(), i, ipaddr, uip_ds6_addr::ipaddr, key, ledctrl_init(), LEDS_ALL, leds_init(), leds_off(), leds_on(), lladdr, rdc_driver::name, netstack_aes_set_key(), netstack_init(), NETSTACK_RDC, node_id, node_id_burn(), node_id_restore(), node_mac, NULL, print_processes(), print_reset_causes(), printf, process_init(), process_run(), process_start(), queuebuf_init(), rf_get_channel(), rf_set_channel(), rtimer_init(), serial_data_handler(), set_link_addr(), SetIEEEAddr(), sio2host_init(), system_init(), system_interrupt_enable_global(), uip_ip6addr_t::u8, uip_ds6_addr_add(), uip_ds6_get_link_local(), uip_ds6_set_addr_iid(), uip_ip6addr, and uip_lladdr.
|
static |
|
static |
Print out all known reset causes.
References printf, and REG_RCAUSE.
Referenced by main().
|
static |
References addr, i, linkaddr_set_node_addr(), node_id, node_mac, printf, and linkaddr_t::u8.
Referenced by main().
void watchdog_early_warning_callback | ( | void | ) |
PROCINIT& etimer_process |
uint8_t sent_packets =0 |