Defines | Functions
main.c File Reference
#include "hardware.h"
#include <transport/can/can-net.h>
#include <common/consts.h>
#include <can/can.h>
#include <dma/dma.h>
#include <gpio/gpio.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 "morse.h"
Include dependency graph for can-translator/main.c:

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 44 of file can-translator/main.c.

#define PRIO_UART   5

Definition at line 45 of file can-translator/main.c.

#define PRIO_UART_TH   6

Definition at line 46 of file can-translator/main.c.

#define RECV_QUEUE_SIZE   1100
#define SEND_QUEUE_SIZE   260

Definition at line 51 of file can-translator/main.c.

#define TIMER_UART   TIMER_1

Definition at line 48 of file can-translator/main.c.


Function Documentation

static __attribute ( (far)  ) [static]

Definition at line 52 of file can-translator/main.c.

void __attribute__ ( (noreturn)  )

Definition at line 208 of file can-translator/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 91 of file can-translator/main.c.

int main ( void  )

Definition at line 213 of file can-translator/main.c.

static void received_packet_dropped ( void  ) [static]

Definition at line 196 of file can-translator/main.c.

static void sent_packet_dropped ( void  ) [static]

Definition at line 202 of file can-translator/main.c.

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

Definition at line 121 of file can-translator/main.c.

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

Definition at line 151 of file can-translator/main.c.



aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17