added STM32H7 files

This commit is contained in:
2021-07-12 21:21:03 +02:00
parent 112adcbb64
commit 0901604854
16 changed files with 1538 additions and 0 deletions

19
stm32h7/STM32TestTask.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <common/stm32_nucleo/STM32TestTask.h>
#include <stm32h7xx_nucleo.h>
#include <OBSWConfig.h>
STM32TestTask::STM32TestTask(object_id_t objectId, bool enablePrintout,
bool blinkyLed): TestTask(objectId, enablePrintout),
blinkyLed(blinkyLed) {
}
ReturnValue_t STM32TestTask::performPeriodicAction() {
if(blinkyLed) {
#if OBSW_ETHERNET_USE_LEDS == 0
BSP_LED_Toggle(LED1);
BSP_LED_Toggle(LED2);
#endif
BSP_LED_Toggle(LED3);
}
return TestTask::performPeriodicAction();
}