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 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   5
#define SERVO_ISR   4
#define CR   0x0d
#define PWM_CHAN_A   0
#define PWM_CHAN_B   1
#define ADC_TIME   60
#define BUMPER_TIME   300

Functions

void led_blik (unsigned char led)
void send_status (unsigned char status)
void atoim (unsigned int val)
void send_adc ()
void set_pwm (unsigned char chan, unsigned char pwm)
void go_to_sleep ()
 set carousel to sleep caused by CAN_PWR_ALERT CAN message
void can_rx (can_msg_t *msg)
void init_perip (void)
void timeout (void)
void bumper ()
int main (void)

Variables

can_msg_t msg
unsigned int time_blink
unsigned int time_timeout
unsigned int time_adc = 0
int time_delay = 0
unsigned int time_bumper = 0

Define Documentation

#define ADC_ISR   5
#define ADC_TIME   60
#define BUMPER_TIME   300
#define CAN_ISR   0
#define CAN_SPEED   1000000
#define CR   0x0d
#define PWM_CHAN_A   0
#define PWM_CHAN_B   1
#define SERVO_ISR   4
#define UART0_ISR   1
#define UART1_ISR   2

Function Documentation

void atoim ( unsigned int  val  ) 
void bumper (  ) 

Here is the caller graph for this function:

void can_rx ( can_msg_t *  msg  ) 

Here is the call graph for this function:

void go_to_sleep (  ) 

set carousel to sleep caused by CAN_PWR_ALERT CAN message

Here is the call graph for this function:

void init_perip ( void   ) 

Here is the call graph for this function:

void led_blik ( unsigned char  led  ) 
int main ( void   ) 

Here is the call graph for this function:

void send_adc (  ) 

Here is the call graph for this function:

void send_status ( unsigned char  status  ) 
void set_pwm ( unsigned char  chan,
unsigned char  pwm 
)

Here is the call graph for this function:

void timeout ( void   ) 

Here is the call graph for this function:


Variable Documentation

can_msg_t msg
unsigned int time_adc = 0
unsigned int time_blink
unsigned int time_bumper = 0
int time_delay = 0
unsigned int time_timeout