mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
imxrt: userleds: Teensy 4.x board LED is active high
This commit is contained in:
committed by
Xiang Xiao
parent
041f25fe72
commit
66c61d4ac3
@@ -65,7 +65,7 @@ uint32_t board_userled_initialize(void)
|
||||
|
||||
void board_userled(int led, bool ledon)
|
||||
{
|
||||
imxrt_gpio_write(GPIO_LED, !ledon); /* Low illuminates */
|
||||
imxrt_gpio_write(GPIO_LED, ledon);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -74,9 +74,7 @@ void board_userled(int led, bool ledon)
|
||||
|
||||
void board_userled_all(uint32_t ledset)
|
||||
{
|
||||
/* Low illuminates */
|
||||
|
||||
imxrt_gpio_write(GPIO_LED, (ledset & BOARD_USERLED_BIT) == 0);
|
||||
imxrt_gpio_write(GPIO_LED, (ledset & BOARD_USERLED_BIT));
|
||||
}
|
||||
|
||||
#endif /* !CONFIG_ARCH_LEDS */
|
||||
|
||||
Reference in New Issue
Block a user