B10A_router_leds.h

00001 #ifndef  __CAN_SSP_ROUTER_H__
00002 #define  __CAN_SSP_ROUTER_H__
00003 
00004 //__irq void csr_ssp_isr(void);
00005 
00006 #define CSR_TIMER_TICKS_PER_MS  5  //e.g., if timer interrupts occur at 100 uS intervals, this = 10.
00007 void csr_clock_tick(void);
00008 unsigned long int csr_elapsed_ms(void);
00009 void csr_send_can_time_packets(long unsigned int time);
00010 
00011 unsigned short int csr_can1_tx_push_frame(CAN_FRAME * frameptr);
00012 unsigned short int csr_can2_tx_push_frame(CAN_FRAME * frameptr);
00013 unsigned short int csr_can3_tx_push_frame(CAN_FRAME * frameptr);
00014 unsigned short int csr_can4_tx_push_frame(CAN_FRAME * frameptr);
00015 
00016 void csr_can1_tx_isr(void) __irq;
00017 void csr_can2_tx_isr(void) __irq;
00018 void csr_can3_tx_isr(void) __irq;
00019 void csr_can4_tx_isr(void) __irq;
00020 
00021 //csr_leds.c public functions
00022 
00023 void csr_can1_packet_count(void);
00024 void csr_can2_packet_count(void);
00025 void csr_can3_packet_count(void);
00026 void csr_can4_packet_count(void);
00027 void csr_can1_red_led_blink(short unsigned int time);
00028 void csr_can1_green_led_blink(short unsigned int time);
00029 void csr_can2_red_led_blink(short unsigned int time);
00030 void csr_can2_green_led_blink(short unsigned int time);
00031 void csr_can3_red_led_blink(short unsigned int time);
00032 void csr_can3_green_led_blink(short unsigned int time);
00033 void csr_can4_red_led_blink(short unsigned int time);
00034 void csr_can4_green_led_blink(short unsigned int time);
00035 void csr_mcu_red_led_blink(short unsigned int time);
00036 void csr_mcu_green_led_blink(short unsigned int time);
00037 void csr_mcu_blue_led_blink(short unsigned int time);
00038 
00039 //Private functions from csr_leds.c
00040 void csr_update_mcu_leds(void);
00041 void csr_update_can_leds(void);
00042 
00043 
00044 void csr_synchronize_arm9(void);
00045 void csr_global_variable_init(void);
00046 void csr_routing_table_init(void);
00047 void csr_init_can_rings(void);
00048 void csr_ssp_isr(void); //Set up for FIQ interrupts
00049 void csr_route(void);
00050 unsigned short int csr_route_frame(CAN_FRAME * frame);
00051 unsigned short int csr_push_ssp_frame(CAN_FRAME * frame);
00052 unsigned short int csr_pop_ssp_frame(CAN_FRAME * frame);
00053 unsigned short int csr_can1_tx_push_frame(CAN_FRAME * frameptr);
00054 void csr_can1_tx_isr(void) __irq;
00055 unsigned short int csr_can2_tx_push_frame(CAN_FRAME * frameptr);
00056 void csr_can2_tx_isr(void) __irq;
00057 unsigned short int csr_can3_tx_push_frame(CAN_FRAME * frameptr);
00058 void csr_can3_tx_isr(void) __irq;
00059 unsigned short int csr_can4_tx_push_frame(CAN_FRAME * frameptr);
00060 void csr_can4_tx_isr(void) __irq;
00061 
00062 #endif// __CAN_SSP_ROUTER_H__
00063 
Generated on Tue Jun 29 16:36:14 2010 by  doxygen 1.6.3