#include <aversive.h>
#include <aversive/pgmspace.h>
#include <aversive/error.h>
#include <aversive/errno.h>
#include <aversive/wait.h>
#include <avr/interrupt.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <uart.h>
#include <spi.h>
#include <cc2420.h>
#include <cc2420_arch.h>
#include <time_ext.h>
#include "firefly2_2.h"
Go to the source code of this file.
Functions | |
ISR (__vector_default) | |
void | mylog (struct error *e,...) |
void | init_ports (void) |
int | main (void) |
Variables | |
uint8_t | i |
void init_ports | ( | void | ) |
Definition at line 118 of file main.c.
References BUTTON_DDR, BUTTON_PIN, cbi, LED_BLUE, LED_DDR, LED_GREEN, LED_ORANGE, and LED_RED.
Referenced by main().
ISR | ( | __vector_default | ) |
int main | ( | void | ) |
Definition at line 131 of file main.c.
References BUTTON_PIN, BUTTON_PORT, cc2420_get_status(), cc2420_init(), cc2420_read_ram(), cc2420_read_register(), cc2420_read_rxfifo(), cc2420_write_ram(), cc2420_write_register(), cc2420_write_rxfifo(), ERROR, error_register_debug(), error_register_emerg(), error_register_error(), error_register_notice(), error_register_warning(), ESUCCESS, i, init_ports(), LED_BLUE, LED_CLR, LED_GREEN, LED_ORANGE, LED_RED, LED_SET, MAIN, MANFIDH, MANFIDL, mylog(), _time_ext::nano, NOTICE, RAM_IEEEADR, RAM_TXFIFO, _time_ext::sec, spi_display_ss_lines(), SYNCWORD, time_ext_get(), time_ext_init(), time_ext_set(), TST, uart1_dev_recv(), uart1_dev_send(), and uart_init().
void mylog | ( | struct error * | e, | |
... | ||||
) |
Definition at line 78 of file main.c.
References E_CC2420, E_SPI, E_TIME_EXT, error::err_num, ERROR_SEVERITY_DEBUG, ERROR_SEVERITY_EMERG, ERROR_SEVERITY_ERROR, ERROR_SEVERITY_NOTICE, ERROR_SEVERITY_WARNING, _time_ext::nano, _time_ext::sec, error::severity, error::text, and time_ext_get().
Referenced by main().
uint8_t i |
Definition at line 45 of file main.c.
Referenced by attr_clear(), AX12_checksum(), AX12_recv(), AX12_send(), bd_manage_from_speed_cmd(), cc2420_read_ram(), cc2420_read_rxfifo(), cc2420_write_ram(), cc2420_write_rxfifo(), cc2420_write_txfifo(), color_setup(), cs_do_process(), dialog_clear(), dialog_inputbox(), dialog_msgbox(), dialog_textbox(), dialog_yesno(), draw_box(), draw_shadow(), dump_events(), dumplist(), encoders_spi_manage(), fill_mem_with_mark(), first_alpha(), HMAC_MD5(), main(), menu_default_display(), min_stack_space_available(), multiservo_add(), print_autowrap(), print_button(), print_scancode(), rc4_init(), rdline_newline(), recv(), scheduler_interrupt(), and spi_display_ss_lines().