mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 12:17:35 +08:00
Fixed led and reboot linker challenges in C++ environments
This commit is contained in:
@@ -50,6 +50,10 @@
|
||||
|
||||
#include "systemlib.h"
|
||||
|
||||
__EXPORT extern void systemreset(void) {
|
||||
up_systemreset();
|
||||
}
|
||||
|
||||
static void kill_task(FAR struct tcb_s *tcb, FAR void *arg);
|
||||
|
||||
void killall()
|
||||
|
||||
@@ -42,11 +42,11 @@
|
||||
#include <float.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/** Reboots the board */
|
||||
extern void up_systemreset(void) noreturn_function;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/** Reboots the board */
|
||||
__EXPORT void systemreset(void) noreturn_function;
|
||||
|
||||
/** Sends SIGUSR1 to all processes */
|
||||
__EXPORT void killall(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user