LPC11C24 minor cleanup in sys/board*

This commit is contained in:
Pavel Kirienko 2015-10-13 14:26:13 +03:00
parent 98189950e4
commit 873e386793
2 changed files with 9 additions and 1 deletions

View File

@ -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()

View File

@ -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);
}