eeprom stuff
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include <main.h>
|
||||
#include <usart.h>
|
||||
#include <adc.h>
|
||||
#include <spi.h>
|
||||
|
||||
#include <PontCoopScheduler.h>
|
||||
|
||||
@ -14,6 +15,7 @@
|
||||
#include <mbusComm.h>
|
||||
#include <logger.h>
|
||||
#include <frontend.h>
|
||||
#include <eeprom.h>
|
||||
|
||||
void my_setup_1() {
|
||||
schInit();
|
||||
@ -182,6 +184,8 @@ void my_setup_2() {
|
||||
show(LED_RED, OFF);
|
||||
show(LED_GREEN, ON);
|
||||
|
||||
eepromInit();
|
||||
|
||||
frontendInit();
|
||||
frontendSetThreshold(240);
|
||||
|
||||
@ -224,3 +228,8 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
}
|
||||
}
|
||||
|
||||
void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) {
|
||||
if (hspi == &eepromSpi) {
|
||||
eepromSpiTxCpltCallback(hspi);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user