Speeduino
Loading...
Searching...
No Matches
board_definition.h
Go to the documentation of this file.
1#pragma once
2
10#include <stdint.h>
11#include <Arduino.h>
12
21
27void boardInitPins(void);
28
31
33void doSystemReset(void);
34
37
40
41// Include a specific header for a board.
42#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__)
43 #include "board_avr2560.h"
44#elif defined(CORE_TEENSY)
45 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
46 #include "board_teensy35.h"
47 #elif defined(__IMXRT1062__)
48 #include "board_teensy41.h"
49 #endif
50#elif defined(STM32_MCU_SERIES) || defined(ARDUINO_ARCH_STM32) || defined(STM32)
51 #include "board_stm32_official.h"
52#elif defined(__SAME51J19A__)
53 #include "board_same51.h"
54// Allow external injection of the board definition via compiler flags
55#elif defined(EXTERNAL_BOARD_H)
56 #include EXTERNAL_BOARD_H
57#else
58 #error Incorrect board selected. Please select the correct board (Usually Mega 2560) and upload again
59#endif
60
61#if defined(RTC_ENABLED)
63void boardInitRTC(void);
64#endif
uint8_t getSystemTemp(void)
Get the board temp for display in TunerStudio (optional)
void boardInitPins(void)
Pin specific initialisation (optional - can be empty)
void jumpToBootloader(void)
Trigger the boot loader (optional)
void initBoard(uint32_t baudRate)
Initialise the board, including USB comms.
void doSystemReset(void)
Reset the board (optional)
uint16_t freeRam(void)
Calculate free RAM for display in TunerStudio.
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:348