mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 10:59:06 +08:00
LPC11C24 minor cleanup in sys/board*
This commit is contained in:
parent
98189950e4
commit
873e386793
@ -22,6 +22,8 @@ namespace board
|
||||
namespace
|
||||
{
|
||||
|
||||
constexpr unsigned TargetSystemCoreClock = 48000000;
|
||||
|
||||
constexpr unsigned ErrorLedPort = 1;
|
||||
constexpr unsigned ErrorLedPin = 10;
|
||||
|
||||
@ -93,7 +95,7 @@ void initClock()
|
||||
|
||||
SystemCoreClock = Chip_Clock_GetSystemClockRate();
|
||||
|
||||
while (SystemCoreClock != 48000000) { } // Loop forever if the clock failed to initialize properly
|
||||
while (SystemCoreClock != TargetSystemCoreClock) { } // Loop forever if the clock failed to initialize properly
|
||||
}
|
||||
|
||||
void initGpio()
|
||||
|
||||
@ -14,6 +14,9 @@ void die();
|
||||
|
||||
static constexpr unsigned UniqueIDSize = 16;
|
||||
|
||||
/**
|
||||
* Reads the globally unique 128-bit hardware ID from the MCU.
|
||||
*/
|
||||
void readUniqueID(std::uint8_t out_uid[UniqueIDSize]);
|
||||
|
||||
void setStatusLed(bool state);
|
||||
@ -21,6 +24,9 @@ void setErrorLed(bool state);
|
||||
|
||||
void resetWatchdog();
|
||||
|
||||
/**
|
||||
* Sends the string to UART.
|
||||
*/
|
||||
void syslog(const char* msg);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user