#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"
Macros | |
#define | CAN_CHANNEL_EXAMPLE 0 |
CAN Example Channel Used: 0 means CAN Channel 0. More... | |
#define | CAN_WAKEUP_MASK_EXAMPLE AVR32_PM_AWEN_CANIF0WEN_MASK |
CAN Wakeup Mask example. More... | |
Functions | |
void | can_example_prepare_data_to_send (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) |
Main function to configure the CAN, and begin transfers. More... | |
Variables | |
volatile can_msg_t | mob_ram_ch0 [NB_MOB_CHANNEL] |
Local allocation for MOB buffer. More... | |
volatile U8 | nb_message_received_on_channel0 = 0 |
Define the number of message received on CAN Channel 0. More... | |
#define CAN_CHANNEL_EXAMPLE 0 |
CAN Example Channel Used: 0 means CAN Channel 0.
Referenced by main().
#define CAN_WAKEUP_MASK_EXAMPLE AVR32_PM_AWEN_CANIF0WEN_MASK |
CAN Wakeup Mask example.
Referenced by main().
void can_example_prepare_data_to_send | ( | U8 | mode | ) |
Local function to prepare RX and TX buffers.
Call Back prototype.
Call Back called by can_drv.
int main | ( | void | ) |
Main function to configure the CAN, and begin transfers.
References CAN_CHANNEL_EXAMPLE, can_init(), can_mob_alloc(), can_out_callback_channel0(), can_rx(), CAN_WAKEUP_MASK_EXAMPLE, CANIF_channel_enable_status, CANIF_CHANNEL_MODE_LISTENING, CANIF_CHANNEL_MODE_NORMAL, CANIF_disable, CANIF_enable_wakeup, Disable_global_interrupt, Enable_global_interrupt, FPBA_HZ, gpio_enable_module(), init_dbg_rs232(), INTC_init_interrupts(), pm_asyn_wake_up_enable(), print_dbg(), scif_gc_enable(), scif_gc_setup(), SCIF_GCCTRL_OSC0, SLEEP, and sysclk_init().
volatile can_msg_t mob_ram_ch0[NB_MOB_CHANNEL] |
Local allocation for MOB buffer.
volatile U8 nb_message_received_on_channel0 = 0 |
Define the number of message received on CAN Channel 0.