mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 12:18:06 +00:00
AVR: Fix linking error for AVR platforms that have no ARCH_HAVE_LEDS defined
Minor bug while working on Arduino Mega support. I didn't add support for ARCH_HAVE_LEDS and have it undefined in .config. To my surprise compilation failed since AVR code had a related function compiled in.
This commit is contained in:
parent
8f8b88f532
commit
d6f6e41a36
2 changed files with 4 additions and 0 deletions
|
|
@ -160,7 +160,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||
tcb->adj_stack_ptr = (FAR void *)top_of_stack;
|
||||
tcb->adj_stack_size = stack_size;
|
||||
|
||||
#if defined(ARCH_HAVE_LEDS)
|
||||
board_autoled_on(LED_STACKCREATED);
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -297,6 +297,8 @@ void up_initialize(void)
|
|||
|
||||
up_usbinitialize();
|
||||
|
||||
#if defined(ARCH_HAVE_LEDS)
|
||||
board_autoled_on(LED_IRQSENABLED);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue