libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers board.hpp Source File

board.hpp

00001 /*
00002  * Pavel Kirienko, 2014 <pavel.kirienko@gmail.com>
00003  */
00004 
00005 #include <cstdint>
00006 
00007 namespace board
00008 {
00009 
00010 #if __GNUC__
00011 __attribute__((noreturn))
00012 #endif
00013 void die();
00014 
00015 static constexpr unsigned UniqueIDSize = 16;
00016 
00017 /**
00018  * Reads the globally unique 128-bit hardware ID from the MCU.
00019  */
00020 void readUniqueID(std::uint8_t out_uid[UniqueIDSize]);
00021 
00022 void setStatusLed(bool state);
00023 void setErrorLed(bool state);
00024 
00025 void resetWatchdog();
00026 
00027 /**
00028  * Sends the string to UART.
00029  */
00030 void syslog(const char* msg);
00031 
00032 }