#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 "delay.h"
#include <asf.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 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) |
[setup] More... | |
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) |
[setup] More... | |
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 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 | ) |
Referenced by best_parent(), check_prefix(), dao_ack_input(), dao_ack_output(), dao_input(), dao_output_target(), dio_input(), dio_output(), dis_input(), dis_output(), input_callback(), ip64_eth_interface_input(), na_input(), ns_input(), output(), ra_input(), rpl_add_dag(), rpl_add_parent(), rpl_free_dag(), rpl_ipv6_neighbor_callback(), rpl_join_instance(), rpl_move_parent(), rpl_nullify_parent(), rpl_process_dio(), rpl_process_parent_event(), rpl_purge_routes(), rpl_remove_parent(), rpl_select_dag(), rpl_set_default_route(), rpl_set_preferred_parent(), rpl_set_root(), uip_ds6_defrt_add(), uip_ds6_defrt_choose(), uip_ds6_nbr_add(), uip_ds6_neighbor_periodic(), uip_ds6_prefix_add(), uip_ds6_route_add(), uip_ds6_route_lookup(), uip_ds6_route_rm(), uip_nd6_ns_output(), uip_nd6_rs_output(), uip_process(), and uncompress_addr().
#define PRINTF | ( | ... | ) |
#define PRINTLLADDR | ( | addr | ) |
Referenced by dao_input(), dio_input(), uip_ds6_link_neighbor_callback(), and uip_ds6_nbr_add().
#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]
[setup_1]
[setup_1] [setup_2]
[setup_2]
[setup_3]
[setup_3] [setup_4]
[setup_4]
[setup_5]
[setup_5]
References system_gclk_gen_config::division_factor, GCLK_GENERATOR_4, system_gclk_gen_config::source_clock, SYSTEM_CLOCK_SOURCE_ULP32K, system_gclk_gen_enable(), system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().
Referenced by main().
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]
[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]
Referenced by main().
void configure_wdt_callbacks | ( | void | ) |
[setup_5]
[setup_5]
[setup_6]
[setup_6]
[setup_5]
[setup_5]
[setup_6]
[setup_6]
Referenced by main().
uint8_t * edbg_eui_read_eui64 | ( | void | ) |
Referenced by main().
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 |
Referenced by etimer_request_poll(), and main().
uint8_t sent_packets =0 |
Referenced by receiver().