#include <lpc21xx.h>
#include <string.h>
#include <deb_led.h>
#include <system_def.h>
#include <periph/can.h>
#include <can_ids.h>
#include <can_msg_def.h>
#include "pwrstep.h"
#include "uart.h"
#include "def.h"
Functions | |
void | set_irq_handler (uint8_t source, uint8_t irq_vect, void(*handler)()) |
void | timer0_irq () |
void | init_timer0 (uint32_t prescale, uint32_t period) |
void | can_rx (can_msg_t *msg) |
void | init_perip (struct power *pwr) |
void | blink_led () |
void | send_alert (unsigned char alert) |
void | power_lines_check (struct power *pwr) |
void | battery_check (struct power *pwr) |
void | send_voltage () |
int | main (void) |
Variables | |
can_msg_t | msg |
struct power | power_state |
volatile uint32_t | timer_msec = 0 |
volatile uint32_t | timer_usec = 0 |
void battery_check | ( | struct power * | pwr | ) |
do not switch off 8V pwr line - this will cause power-down of this board!!
void blink_led | ( | ) |
void can_rx | ( | can_msg_t * | msg | ) |
void init_perip | ( | struct power * | pwr | ) |
void init_timer0 | ( | uint32_t | prescale, | |
uint32_t | period | |||
) |
int main | ( | void | ) |
void power_lines_check | ( | struct power * | pwr | ) |
void send_alert | ( | unsigned char | alert | ) |
void send_voltage | ( | ) |
void set_irq_handler | ( | uint8_t | source, | |
uint8_t | irq_vect, | |||
void(*)() | handler | |||
) |
void timer0_irq | ( | ) |
can_msg_t msg |
struct power power_state |
volatile uint32_t timer_msec = 0 |
volatile uint32_t timer_usec = 0 |