mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 19:57:12 +08:00
cubeorangeplus: add check for SMPS support
If NuttX is built without support for SMPS it can brick the hardware. Therefore, I suggest that we add this additional compile-time check. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -44,6 +44,16 @@
|
||||
#include <stdint.h>
|
||||
#include <stm32_gpio.h>
|
||||
|
||||
/**
|
||||
* If NuttX is built without support for SMPS it can brick the hardware.
|
||||
* Therefore, we make sure the NuttX headers are correct.
|
||||
*/
|
||||
#include "hardware/stm32h7x3xx_pwr.h"
|
||||
#if STM32_PWR_CR3_SMPSEXTHP != (1 << 3)
|
||||
# error "No SMPS support in NuttX submodule");
|
||||
#endif
|
||||
|
||||
|
||||
/* PX4IO connection configuration */
|
||||
#define BOARD_USES_PX4IO_VERSION 2
|
||||
#define PX4IO_SERIAL_DEVICE "/dev/ttyS3"
|
||||
|
||||
Reference in New Issue
Block a user