Defines | Functions | Variables

main.c File Reference

#include <lpc21xx.h>
#include <errno.h>
#include <periph/can.h>
#include <string.h>
#include <deb_led.h>
#include <can_ids.h>
#include <can_msg_def.h>
#include <servo.h>
#include <powswitch.h>
#include <engine.h>
#include <adc_filtr.h>
#include <uart_nozen.h>
#include "robobagr.h"
Include dependency graph for main.c:

Defines

#define CAN_SPEED   1000000
#define CAN_ISR   0
#define UART0_ISR   1
#define UART1_ISR   2
#define ADC_ISR   3
#define SERVO_ISR   5
#define ERROR_CMU_MAX   10
#define CR   0x0d

Functions

void can_rx (can_msg_t *msg)
void init_perip (void)
void send_status (unsigned char status)
void ui (void)
int main (void)

Variables

can_msg_t msg
unsigned int time_timeout = 0

Define Documentation

#define ADC_ISR   3
#define CAN_ISR   0
#define CAN_SPEED   1000000
#define CR   0x0d
#define ERROR_CMU_MAX   10
#define SERVO_ISR   5
#define UART0_ISR   1
#define UART1_ISR   2

Function Documentation

void can_rx ( can_msg_t *  msg  ) 

Here is the call graph for this function:

void init_perip ( void   ) 

Here is the call graph for this function:

int main ( void   ) 

Here is the call graph for this function:

void send_status ( unsigned char  status  ) 

Here is the caller graph for this function:

void ui ( void   ) 

Here is the caller graph for this function:


Variable Documentation

can_msg_t msg
unsigned int time_timeout = 0