Functions | Variables

main.c File Reference

#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"
Include dependency graph for main.c:

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

Function Documentation

void battery_check ( struct power pwr  ) 

do not switch off 8V pwr line - this will cause power-down of this board!!

Here is the call graph for this function:

Here is the caller graph for this function:

void blink_led (  ) 
void can_rx ( can_msg_t *  msg  ) 

Here is the call graph for this function:

void init_perip ( struct power pwr  ) 

Here is the call graph for this function:

void init_timer0 ( uint32_t  prescale,
uint32_t  period 
)

Here is the caller graph for this function:

int main ( void   ) 

Here is the call graph for this function:

void power_lines_check ( struct power pwr  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void send_alert ( unsigned char  alert  ) 

Here is the caller graph for this function:

void send_voltage (  ) 

Here is the caller graph for this function:

void set_irq_handler ( uint8_t  source,
uint8_t  irq_vect,
void(*)()  handler 
)
void timer0_irq (  ) 

Variable Documentation

can_msg_t msg
volatile uint32_t timer_msec = 0
volatile uint32_t timer_usec = 0