![]() |
Speeduino
|
Inclusion of board specific header files and board related definitions. More...

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 (void) |
| 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) | |
| uint16_t | getEepromWriteBlockSize (const statuses ¤t) |
| The maximum number of write operations that will be performed in one go. | |
| EEPROM_t & | getEEPROM (void) |
| Access the EEPROM singleton. | |
Variables | |
| constexpr uint32_t | MAX_TIMER_PERIOD = ticksToMicros((numeric_limits<COMPARE_TYPE>::max)()) |
| The longest period of time (in uS) that the timer can permit. | |
Inclusion of board specific header files and board related definitions.
Pin specific initialisation (optional - can be empty)
This is called after the pins are assigned and therefore after initBoard()

Calculate free RAM for display in TunerStudio.

Access the EEPROM singleton.

The maximum number of write operations that will be performed in one go.
If this number is too large, we will kill system responsiveness since EEPROM writes are slow. E.g. Each write takes ~3ms on the AVR
This is board specific, since EEPROM write speed is dependent on the EEPROM type and CPU speed.
| current | So the function can scale the number of writes based on system state |

Get the board temp for display in TunerStudio (optional)

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 |

Trigger the boot loader (optional)

|
constexpr |
The longest period of time (in uS) that the timer can permit.