Fixed led and reboot linker challenges in C++ environments

This commit is contained in:
Lorenz Meier
2013-07-28 14:50:27 +02:00
parent 18635c5f5f
commit 4e5eb9740b
8 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ int do_state_update(int status_pub, struct vehicle_status_s *current_status, con
current_status->flag_system_armed = false;
mavlink_log_critical(mavlink_fd, "REBOOTING SYSTEM");
usleep(500000);
up_systemreset();
systemreset();
/* SPECIAL CASE: NEVER RETURNS FROM THIS FUNCTION CALL */
} else {
+4
View File
@@ -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()
+3 -3
View File
@@ -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);