Namespaces | Functions | Variables
board.cpp File Reference
#include "board.hpp"
#include <chip.h>
#include <cstdlib>
#include <cstring>
#include <numeric>
Include dependency graph for board.cpp:

Go to the source code of this file.

Namespaces

 board
 

Functions

void board::die ()
 
void board::readUniqueID (std::uint8_t out_uid[UniqueIDSize])
 
void board::resetWatchdog ()
 
void board::setErrorLed (bool state)
 
void board::setStatusLed (bool state)
 
void board::syslog (const char *msg)
 
void SystemInit ()
 

Variables

const std::uint32_t ExtRateIn = 0
 Clock rate on the CLKIN pin This value is defined externally to the chip layer and contains the value in Hz for the CLKIN pin for the board. If this pin isn't used, this rate can be 0. More...
 
const std::uint32_t OscRateIn = 12000000
 External crystal. More...
 
static constexpr unsigned long PDRUNCFGMASKTMP = 0x000000FFU
 
static constexpr unsigned long PDRUNCFGUSEMASK = 0x0000ED00U
 
std::uint32_t SystemCoreClock = 12000000
 Initialized to default clock value, will be changed on init. More...
 

Function Documentation

◆ SystemInit()

void SystemInit ( )

Definition at line 190 of file board.cpp.

Variable Documentation

◆ ExtRateIn

const std::uint32_t ExtRateIn = 0

Clock rate on the CLKIN pin This value is defined externally to the chip layer and contains the value in Hz for the CLKIN pin for the board. If this pin isn't used, this rate can be 0.

Definition at line 16 of file board.cpp.

◆ modefunc

unsigned modefunc

Definition at line 36 of file board.cpp.

◆ OscRateIn

const std::uint32_t OscRateIn = 12000000

External crystal.

System oscillator rate This value is defined externally to the chip layer and contains the value in Hz for the external oscillator for the board. If using the internal oscillator, this rate can be 0.

Definition at line 15 of file board.cpp.

◆ PDRUNCFGMASKTMP

constexpr unsigned long PDRUNCFGMASKTMP = 0x000000FFU
staticconstexpr

Definition at line 13 of file board.cpp.

◆ PDRUNCFGUSEMASK

constexpr unsigned long PDRUNCFGUSEMASK = 0x0000ED00U
staticconstexpr

Definition at line 12 of file board.cpp.

◆ pin

unsigned pin

Definition at line 35 of file board.cpp.



uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:03