BSP ADC with DMA Circular

This commit is contained in:
2024-05-21 00:43:27 +02:00
parent a58079c3c0
commit 92c8624fe4
12 changed files with 206 additions and 18 deletions

View File

@@ -9,6 +9,7 @@
#include "sdmmc.h"
#include "cmsis_os2.h"
#include "BSP_GPIO.h"
#include "BSP_ADC.h"
#define LPTIM_CLK 500 // Hz
#define SLEEP_TICK_TIME 1 // seconds to wait
@@ -126,4 +127,14 @@ void HAL_LPTIM_AutoReloadMatchCallback(LPTIM_HandleTypeDef *hlptim) {
}
}
}
}
void BSP_POWER_FullPowerMode() {
BSP_GPIO_ClsOn();
BSP_GPIO_PeriperalsOn();
BSP_ADC_Start();
}