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  * Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com>
00003  */
00004 
00005 #pragma once
00006 
00007 #include <cstdint>
00008 
00009 namespace board
00010 {
00011 
00012 void init();
00013 
00014 __attribute__((noreturn))
00015 void die(int error);
00016 
00017 void setLed(bool state);
00018 
00019 void restart();
00020 
00021 constexpr unsigned UniqueIDSize = 12;
00022 
00023 void readUniqueID(std::uint8_t bytes[UniqueIDSize]);
00024 
00025 }