mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 01:31:21 +03:00
add some shit, but still have a problem
This commit is contained in:
@@ -70,6 +70,7 @@ static char *get_USB(){
|
||||
int main(void){
|
||||
uint8_t ctr, len;
|
||||
CAN_message *can_mesg;
|
||||
//uint32_t oS = 0;
|
||||
char *txt;
|
||||
sysreset();
|
||||
SysTick_Config(6000, 1);
|
||||
@@ -84,8 +85,13 @@ int main(void){
|
||||
|
||||
while (1){
|
||||
IWDG->KR = IWDG_REFRESH; // refresh watchdog
|
||||
/* if(Tms - oS > 1999){
|
||||
oS = Tms;
|
||||
SEND("2s"); NL();
|
||||
}*/
|
||||
process_keys();
|
||||
custom_buttons_process();
|
||||
IWDG->KR = IWDG_REFRESH;
|
||||
can_proc();
|
||||
if(CAN_get_status() == CAN_FIFO_OVERRUN){
|
||||
SEND("CAN bus fifo overrun occured!\n");
|
||||
|
||||
Reference in New Issue
Block a user