Defines | Functions | Variables

robobagr.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.h>
#include <uart_nozen.h>
#include "robobagr.h"
Include dependency graph for robobagr.c:

Defines

#define START_PIN   15

Functions

void start_button (void)
void led_blik ()
void set_robobagr (unsigned char pwm)
void go_to_sleep ()
 set carousel to sleep caused by CAN_PWR_ALERT CAN message
int cmu_init (void)
void cmu_parse_message (void)
void cmu_set_param (void)
int cmu_ack (void)
void cmu_set_gm (void)
int cmu_ack_gm ()
void atoim (unsigned int val)
void send_adc ()
void cmu_treshold ()
int cmu_gm (void)

Variables

int time_blink
unsigned int cmu_buff [30]
unsigned int cmu_buff_p = 0
can_msg_t msg
struct Color color
unsigned char star_bt = 0
unsigned int time_start = 0
unsigned int fil_red [4]
unsigned int fil_green [4]
unsigned int fil_blue [4]
unsigned int time_adc = 0

Define Documentation

#define START_PIN   15

Function Documentation

void atoim ( unsigned int  val  ) 
int cmu_ack ( void   ) 

Here is the caller graph for this function:

int cmu_ack_gm (  ) 

Here is the caller graph for this function:

int cmu_gm ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

int cmu_init ( void   ) 

Here is the caller graph for this function:

void cmu_parse_message ( void   ) 

Here is the caller graph for this function:

void cmu_set_gm ( void   ) 

Here is the caller graph for this function:

void cmu_set_param ( void   ) 

Here is the caller graph for this function:

void cmu_treshold (  ) 

Here is the caller 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 led_blik (  ) 
void send_adc (  ) 
void set_robobagr ( unsigned char  pwm  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void start_button ( void   ) 

Variable Documentation

unsigned int cmu_buff[30]
unsigned int cmu_buff_p = 0
struct Color color
unsigned int fil_blue[4]
unsigned int fil_green[4]
unsigned int fil_red[4]
can_msg_t msg
unsigned char star_bt = 0
unsigned int time_adc = 0
unsigned int time_start = 0