voxl2: add system reboot support

This commit is contained in:
Eric Katzfey
2026-02-23 11:25:13 -07:00
committed by Eric Katzfey
parent 30cbf84fd8
commit 845a7efd58
12 changed files with 169 additions and 7 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (C) 2022 ModalAI, Inc. All rights reserved.
* Copyright (C) 2022-2026 ModalAI, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,10 +32,18 @@
****************************************************************************/
#include <px4_platform_common/defines.h>
extern "C" void px4muorb_request_reset(void);
__BEGIN_DECLS
long PX4_TICKS_PER_SEC = 1000L;
void fsync(int fd) { return; }
uint32_t crc32part(const uint8_t *src, size_t len, uint32_t crc32val) { return 1; }
int boardctl(unsigned int cmd, uintptr_t arg)
{
px4muorb_request_reset();
return 0;
}
__END_DECLS