Merge pull request #302 from ccrome/imxrt10xx-led-fix

imxrt10xx: fix LED blinking
This commit is contained in:
Ha Thach 2023-03-09 14:34:29 +07:00 committed by GitHub
commit 9093ab6d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,8 +262,6 @@ void SysTick_Handler(void)
void board_led_write(uint32_t value)
{
(void) value;
#ifdef LED_PINMUX
#ifdef LED_PWM_PINMUX
if (_dfu_mode)
@ -274,6 +272,7 @@ void board_led_write(uint32_t value)
}else
#endif
{
value = (value >= 128) ? 1 : 0;
GPIO_PinWrite(LED_PORT, LED_PIN, value ? LED_STATE_ON : (1-LED_STATE_ON));
}
#endif