/opt/ros/diamondback/stacks/ethzasl_aseba/asebaros/aseba/svn/targets/can-translator/main.c File Reference

#include "hardware.h"
#include <gpio/gpio.h>
#include <transport/can/can-net.h>
#include <common/consts.h>
#include <can/can.h>
#include <dma/dma.h>
#include <uart/uart-software-fc.h>
#include <clock/clock.h>
#include <error/error.h>
#include <types/types.h>
#include <timer/timer.h>
#include <ei/ei.h>
#include <adc/adc.h>
Include dependency graph for main.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OUTPUT_ERROR(err)   do{ for(;;) output_error(err,LED0,0,1); }while(0)
#define PRIO_CAN   5
#define PRIO_UART   5
#define PRIO_UART_TH   6
#define RECV_QUEUE_SIZE   1100
#define SEND_QUEUE_SIZE   260
#define TIMER_UART   TIMER_1

Functions

static __attribute ((far))
void __attribute__ ((noreturn))
 _FICD (ICS_PGD1 &JTAGEN_OFF)
 _FOSC (POSCMD_NONE &OSCIOFNC_ON)
 _FOSCSEL (FNOSC_FRCPLL)
 _FWDT (FWDTEN_OFF)
void AsebaIdle (void)
uint16 AsebaShouldDropPacket (uint16 source, const uint8 *data)
static void can_rx_cb (const can_frame *frame)
int main (void)
static void received_packet_dropped (void)
static void sent_packet_dropped (void)
static bool uart_rx_cb (int __attribute((unused)) uart_id, unsigned char data, void *__attribute((unused)) user_data)
static bool uart_tx_cb (int __attribute((unused)) uart_id, unsigned char *data, void *__attribute((unused)) user_data)

Define Documentation

#define OUTPUT_ERROR ( err   )     do{ for(;;) output_error(err,LED0,0,1); }while(0)
#define PRIO_CAN   5

Definition at line 24 of file main.c.

#define PRIO_UART   5

Definition at line 25 of file main.c.

#define PRIO_UART_TH   6

Definition at line 26 of file main.c.

#define RECV_QUEUE_SIZE   1100
#define SEND_QUEUE_SIZE   260

Definition at line 31 of file main.c.

#define TIMER_UART   TIMER_1

Definition at line 28 of file main.c.


Function Documentation

static __attribute ( (far)   )  [static]

Definition at line 32 of file main.c.

void __attribute__ ( (noreturn)   ) 

Definition at line 188 of file main.c.

_FICD ( ICS_PGD1 &  JTAGEN_OFF  ) 
_FOSC ( POSCMD_NONE &  OSCIOFNC_ON  ) 
_FOSCSEL ( FNOSC_FRCPLL   ) 
_FWDT ( FWDTEN_OFF   ) 
static void can_rx_cb ( const can_frame *  frame  )  [static]

Definition at line 71 of file main.c.

int main ( void   ) 

Definition at line 193 of file main.c.

static void received_packet_dropped ( void   )  [static]

Definition at line 176 of file main.c.

static void sent_packet_dropped ( void   )  [static]

Definition at line 182 of file main.c.

static bool uart_rx_cb ( int __attribute((unused))  uart_id,
unsigned char  data,
void *__attribute((unused))  user_data 
) [static]

Definition at line 101 of file main.c.

static bool uart_tx_cb ( int __attribute((unused))  uart_id,
unsigned char *  data,
void *__attribute((unused))  user_data 
) [static]

Definition at line 131 of file main.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:41:59 2011