#include "asf.h"
#include "compiler.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "gpio.h"
#include "pm_uc3c.h"
#include "scif_uc3c.h"
#include "intc.h"
#include "can.h"
#include "canif.h"
#include "usart.h"
#include "print_funcs.h"
#include "conf_can_example.h"
Functions | |
void | can_example_prepare_data (U8 mode) |
Local function to prepare RX and TX buffers. More... | |
void | can_out_callback_channel0 (U8 handle, U8 event) |
Call Back prototype. More... | |
int | main (void) |
static void | usart_int_handler (void) |
USART interrupt handler, fired each time a character is received. More... | |
Variables | |
volatile U8 | nb_message_received_on_channel0 = 0 |
Define the number of message received on CAN Channel 0. More... | |
volatile U16 | state_machine = 0 |
void can_example_prepare_data | ( | U8 | mode | ) |
Local function to prepare RX and TX buffers.
Prepare Data on CAN Bus.
References CAN_CMD_REFUSED, can_init(), can_mob_alloc(), can_out_callback_channel0(), can_rx(), can_tx(), and CANIF_CHANNEL_MODE_NORMAL.
Referenced by main().
Call Back prototype.
Call Back called by can_drv.
int main | ( | void | ) |
References CAN_BusOFFIRQ, CAN_Error, can_example_prepare_data(), can_init(), can_mob_alloc(), can_out_callback_channel0(), can_rx(), CAN_STATUS_BUSOFF, CAN_STATUS_COMPLETED, CAN_STATUS_ERROR, CAN_Success, CANIF_CHANNEL_MODE_LISTENING, Data_Sent_Start_or_Not, Demo_Sent_Data, Disable_global_interrupt, Enable_global_interrupt, FPBA_HZ, gpio_enable_module(), i, init_dbg_rs232(), INTC_init_interrupts(), INTC_register_interrupt(), print_dbg(), print_dbg_char_hex(), print_dbg_ulong(), scif_gc_enable(), scif_gc_setup(), SCIF_GCCTRL_OSC0, sysclk_init(), txt_logo_atmel, and usart_int_handler().
|
static |
USART interrupt handler, fired each time a character is received.
References c, and usart_read_char().
Referenced by main().
volatile U8 nb_message_received_on_channel0 = 0 |
Define the number of message received on CAN Channel 0.
volatile U16 state_machine = 0 |