BSP ADC with DMA Circular
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user