diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 11:13:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 11:13:34 +0200 |
commit | bc5d1648fe298102eb90b0a6f4ce7cedf364b165 (patch) | |
tree | 531fb2c4e7cf5e19c9a55b0745b074c98761fa9a /src | |
parent | 676cb91a1d973313e15597280121c52cc2d84e43 (diff) | |
download | px4-firmware-bc5d1648fe298102eb90b0a6f4ce7cedf364b165.tar.gz px4-firmware-bc5d1648fe298102eb90b0a6f4ce7cedf364b165.tar.bz2 px4-firmware-bc5d1648fe298102eb90b0a6f4ce7cedf364b165.zip |
Aerocore: Add missing declarations
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/boards/aerocore/aerocore_init.c | 13 | ||||
-rw-r--r-- | src/drivers/boards/aerocore/board_config.h | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/drivers/boards/aerocore/aerocore_init.c b/src/drivers/boards/aerocore/aerocore_init.c index 4e3ba2d7e..1ce235da8 100644 --- a/src/drivers/boards/aerocore/aerocore_init.c +++ b/src/drivers/boards/aerocore/aerocore_init.c @@ -93,6 +93,19 @@ # endif #endif +/* + * Ideally we'd be able to get these from up_internal.h, + * but since we want to be able to disable the NuttX use + * of leds for system indication at will and there is no + * separate switch, we need to build independent of the + * CONFIG_ARCH_LEDS configuration switch. + */ +__BEGIN_DECLS +extern void led_init(void); +extern void led_on(int led); +extern void led_off(int led); +__END_DECLS + /**************************************************************************** * Protected Functions ****************************************************************************/ diff --git a/src/drivers/boards/aerocore/board_config.h b/src/drivers/boards/aerocore/board_config.h index 70142a314..776a2071e 100644 --- a/src/drivers/boards/aerocore/board_config.h +++ b/src/drivers/boards/aerocore/board_config.h @@ -171,6 +171,25 @@ __BEGIN_DECLS extern void stm32_spiinitialize(void); +/**************************************************************************** + * Name: nsh_archinitialize + * + * Description: + * Perform architecture specific initialization for NSH. + * + * CONFIG_NSH_ARCHINIT=y : + * Called from the NSH library + * + * CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, && + * CONFIG_NSH_ARCHINIT=n : + * Called from board_initialize(). + * + ****************************************************************************/ + +#ifdef CONFIG_NSH_LIBRARY +int nsh_archinitialize(void); +#endif + #endif /* __ASSEMBLY__ */ __END_DECLS |