#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"
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 START_PIN 15 |
void atoim | ( | unsigned int | val | ) |
int cmu_ack | ( | void | ) |
int cmu_ack_gm | ( | ) |
int cmu_gm | ( | void | ) |
int cmu_init | ( | void | ) |
void cmu_parse_message | ( | void | ) |
void cmu_set_gm | ( | void | ) |
void cmu_set_param | ( | void | ) |
void cmu_treshold | ( | ) |
void go_to_sleep | ( | ) |
set carousel to sleep caused by CAN_PWR_ALERT CAN message
void led_blik | ( | ) |
void send_adc | ( | ) |
void set_robobagr | ( | unsigned char | pwm | ) |
void start_button | ( | void | ) |
unsigned int cmu_buff[30] |
unsigned int cmu_buff_p = 0 |
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 |
int time_blink |
unsigned int time_start = 0 |