conf_can_example.h File Reference


Detailed Description

CAN driver for AVR32 UC3.

This file contains basic configuration for the AVR32 CAN driver.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file conf_can_example.h.

#include "avr32/io.h"
#include "compiler.h"
#include "can.h"
#include "board.h"

Go to the source code of this file.

Defines

#define FPBA_HZ   FOSC0
#define STDIO_USART   (&AVR32_USART2)
#define STDIO_USART_BAUDRATE   57600
#define STDIO_USART_IRQ   AVR32_USART2_IRQ
#define STDIO_USART_IRQ_LEVEL   AVR32_INTC_INT1
#define STDIO_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION
#define STDIO_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN
#define STDIO_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION
#define STDIO_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN

Variables

can_mob_t appli_remote_rx_msg
can_mob_t appli_rx_msg
can_mob_t appli_tx_msg
const char CAN_BusOFFIRQ []
const char CAN_Error []
const char CAN_Success []
const char CAN_Wakeup []
const char CAN_WakeupD []
const char CAN_WakeUpIRQ []
const char Data_Sent_Start_or_Not []
const char Demo_Sent_Data []
can_msg_t msg_remote_rx
can_msg_t msg_rx_listening
can_msg_t msg_tx_sot
const char txt_logo_atmel []


Define Documentation

#define FPBA_HZ   FOSC0

Definition at line 69 of file conf_can_example.h.

Referenced by init_stdio(), and init_sys_clocks().

#define STDIO_USART   (&AVR32_USART2)

Definition at line 61 of file conf_can_example.h.

Referenced by init_stdio().

#define STDIO_USART_BAUDRATE   57600

Definition at line 66 of file conf_can_example.h.

Referenced by init_stdio().

#define STDIO_USART_IRQ   AVR32_USART2_IRQ

Definition at line 67 of file conf_can_example.h.

#define STDIO_USART_IRQ_LEVEL   AVR32_INTC_INT1

Definition at line 68 of file conf_can_example.h.

#define STDIO_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION

Definition at line 63 of file conf_can_example.h.

Referenced by init_stdio().

#define STDIO_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN

Definition at line 62 of file conf_can_example.h.

Referenced by init_stdio().

#define STDIO_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION

Definition at line 65 of file conf_can_example.h.

Referenced by init_stdio().

#define STDIO_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN

Definition at line 64 of file conf_can_example.h.

Referenced by init_stdio().


Variable Documentation

Initial value:

Definition at line 97 of file conf_can_example.h.

const char CAN_BusOFFIRQ[]

Initial value:

 "\n\r\
=== Error: UC3C CAN Bus OFF IRQ Detected ===\n\r\
\n\r"

Definition at line 187 of file conf_can_example.h.

const char CAN_Error[]

Initial value:

 "\n\r\
=== Error: UC3C CAN Communication Error ===\n\r\
\n\r"

Definition at line 179 of file conf_can_example.h.

const char CAN_Success[]

Initial value:

 "\n\r\
=== OK: UC3C CAN Communication Successed ===\n\r\
\n\r"

Definition at line 175 of file conf_can_example.h.

const char CAN_Wakeup[]

Initial value:

 "\n\r\
=== Switch into static Mode...Wait CAN communication... ===\n\r\
\n\r"

Definition at line 167 of file conf_can_example.h.

Referenced by main().

const char CAN_WakeupD[]

Initial value:

 "\n\r\
  === OK: UC3C CAN Wake Up Detected  ===\n\r\
\n\r"

Definition at line 171 of file conf_can_example.h.

Referenced by main().

const char CAN_WakeUpIRQ[]

Initial value:

 "\n\r\
=== Error: UC3C CAN Wake Up IRQ Detected ===\n\r\
\n\r"

Definition at line 183 of file conf_can_example.h.

const char Data_Sent_Start_or_Not[]

Initial value:

 "\
===Start demo now? Press y or Y - start\n\r\
===                    Press n or N - Not start\
\n\r"

Definition at line 211 of file conf_can_example.h.

const char Demo_Sent_Data[]

Initial value:

 "\n\r\
-0- TxCAN @ 307: 0x133(Std.), L=8, 01-02-03-04-05-06-07-08; \n\r\
\n\r"

Definition at line 207 of file conf_can_example.h.

Initial value:

 
{
  {
    {    
      .id = 0x110,                      
      .id_mask  = 0x1ff,                
    },  
  },
 .data.u64 = 0x55AA00000000AA55,        
}

Definition at line 145 of file conf_can_example.h.

Initial value:

 
{
  {
    {    
      .id = 0,                      
      .id_mask  = 0,                
    },  
  },
 .data.u64 = 0x0LL,                 
}

Definition at line 115 of file conf_can_example.h.

Initial value:

 
{
  {
    {     
      .id = 0x130,                    
      .id_mask  = 0x1ff,              
    },  
  },
 .data.u64 = 0x0102030405060708LL,    
}

Definition at line 84 of file conf_can_example.h.

const char txt_logo_atmel[]

Initial value:

"\r\n\
        _____________________________\r\n\
      /___   ________________________|\r\n\
     ___  | |  ________    ____   _\r\n\
    /   | | | |  _   _ \\  |  __| | |\r\n\
   / /| | | | | | | | | | | |__  | |\r\n\
  / / | | | | | | | | | | |  __| | |\r\n\
 / /_ | | | | | | | | | | | |__  | |__\r\n\
/____||_| |_| |_| |_| |_| |____| |___/\r\n\
,-----------------------------------,\r\n\
1 - Transmission Mode\r\n\
2 - Reception Mode\r\n\
3 - Remote Reception Mode\r\n\
\r\n\
\n\r"

Definition at line 191 of file conf_can_example.h.


Generated on Fri Feb 19 02:24:18 2010 for AVR32 - CANIF Driver by  doxygen 1.5.5