![]() |
Speeduino
|
Inclusion of board specific header files and board related definitions. More...
#include <stdint.h>#include <type_traits>#include <limits>#include <Arduino.h>#include "storage_api.h"Go to the source code of this file.
Macros | |
| #define | SET_COMPARE(compare, value) (compare) = (COMPARE_TYPE)(value) |
Functions | |
| void | initBoard (uint32_t baudRate) |
| Initialise the board, including USB comms. | |
| void | boardInitPins (uint8_t boardID, pinNumbers_t &pins) |
| Pin specific initialisation (optional - can be empty) | |
| uint16_t | freeRam (void) |
| Calculate free RAM for display in TunerStudio. | |
| void | doSystemReset (void) |
| Reset the board (optional) | |
| void | jumpToBootloader (void) |
| Trigger the boot loader (optional) | |
| uint8_t | getSystemTemp (void) |
| Get the board temp for display in TunerStudio (optional) | |
| storage_api_t | getBoardStorageApi (void) |
| Get the storage API for the board. | |
| uint8_t | getPwmTimerResolution (void) |
| Get the PWM timer resolution in uS. | |
Variables | |
| constexpr uint32_t | MAX_TIMER_PERIOD = ticksToMicros((std::numeric_limits<COMPARE_TYPE>::max)()) |
| The longest period of time (in uS) that the timer can permit. | |
| constexpr uint8_t | NOT_A_PIN = UINT8_MAX |
Inclusion of board specific header files and board related definitions.
| #define SET_COMPARE | ( | compare, | |
| value | |||
| ) | (compare) = (COMPARE_TYPE)(value) |
| void boardInitPins | ( | uint8_t | boardID, |
| pinNumbers_t & | pins | ||
| ) |
Pin specific initialisation (optional - can be empty)
This is called after the pins are assigned and therefore after initBoard()
| void doSystemReset | ( | void | ) |
Reset the board (optional)
| uint16_t freeRam | ( | void | ) |
Calculate free RAM for display in TunerStudio.
| storage_api_t getBoardStorageApi | ( | void | ) |
Get the storage API for the board.
| uint8_t getPwmTimerResolution | ( | void | ) |
Get the PWM timer resolution in uS.
| uint8_t getSystemTemp | ( | void | ) |
Get the board temp for display in TunerStudio (optional)
| void initBoard | ( | uint32_t | baudRate | ) |
Initialise the board, including USB comms.
This is called after the tune is loaded from EEPROM, but before pins are assigned.
| baudRate | The Serial comms baud rate |
| void jumpToBootloader | ( | void | ) |
Trigger the boot loader (optional)
|
constexpr |
The longest period of time (in uS) that the timer can permit.
|
constexpr |