Status LEDs
Posted: Thu 24. Aug 2023, 11:36
Can someone brief me on meaning of Status LEDs on PCAN-GPS (by default)? Manual has hardly any information on that.
Thank you in advance.
Thank you in advance.
Code: Select all
//------------------------------------------------------------------------------
//! void Timer_1000usec(void)
//------------------------------------------------------------------------------
//! @brief this function is called every 1[ms] by timer0 match-interrupt ISR
//------------------------------------------------------------------------------
void Timer_1000usec(void){
static u32_t LedBlink_counter=0;
static u8_t toggle_led = 0;
if (!Initialized)
return;
if (LedBlink_counter < 1000){
LedBlink_counter++;
}else{
LedBlink_counter = 0;
toggle_led ^= 1; // invert flag and set new value
if (toggle_led){
HW_SetLED (HW_LED_STATUS_1, HW_LED_GREEN);
} else {
HW_SetLED(HW_LED_STATUS_1, HW_LED_OFF);
}
}
}