#include <lpc21xx.h>#include <string.h>#include <deb_led.h>#include <system_def.h>#include <periph/can.h>#include "uar.h"
Classes | |
| struct | rx_canlog_msg_s |
Defines | |
| #define | CAN_SPEED 100000 |
| #define | CAN_ISR 0 |
| #define | TIME1MS ((CPU_APB_HZ) / 1000) |
| #define | CAN_MAX_DATA_BUF 20 |
| #define | SWITCH_LISTEN '1' |
| #define | SWITCH_SEND '2' |
| #define | SWITCH_SENDLISTEN '3' |
| #define | SWITCH_BAUD '4' |
Functions | |
| void | delay (int time) |
| 待機 | |
| void | dummy_wait (uint32_t time) |
| void | print_dec (int test) |
| void | can_rx (can_msg_t *msg) |
| void | tc1 (void) |
| void | init_time (unsigned rx_isr_vect) |
| void | print_msg (void) |
| char | printMenu (void) |
| void | flush_page (void) |
| char | checkData (char data[], char count) |
| void | send_can_msg (char wait) |
| int | main (void) |
Variables | |
| volatile uint32_t | time_ms = 0 |
| can_msg_t | msg |
| struct rx_canlog_msg_s | rx_canlog_msg |
| volatile int | time = 0 |
| unsigned int | time_delay = 0 |
| #define CAN_ISR 0 |
| #define CAN_MAX_DATA_BUF 20 |
| #define CAN_SPEED 100000 |
| #define SWITCH_BAUD '4' |
| #define SWITCH_LISTEN '1' |
| #define SWITCH_SEND '2' |
| #define SWITCH_SENDLISTEN '3' |
| #define TIME1MS ((CPU_APB_HZ) / 1000) |
| void can_rx | ( | can_msg_t * | msg | ) |
| char checkData | ( | char | data[], | |
| char | count | |||
| ) |

| void delay | ( | int | time | ) |
待機
指定された時間だけ待機する
| [in] | msec | 待機時間 [msec] |
待機
need to implement overflow when needed durations in days..
| void dummy_wait | ( | uint32_t | time | ) |
| void flush_page | ( | void | ) |


| void init_time | ( | unsigned | rx_isr_vect | ) |


| int main | ( | void | ) |

| void print_dec | ( | int | test | ) |


| void print_msg | ( | void | ) |


| char printMenu | ( | void | ) |


| void send_can_msg | ( | char | wait | ) |

| void tc1 | ( | void | ) |

| can_msg_t msg |
| struct rx_canlog_msg_s rx_canlog_msg |
| volatile int time = 0 |
| unsigned int time_delay = 0 |
| volatile uint32_t time_ms = 0 |
1.7.1