mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 11:37:44 +08:00
feat: speed up PRTS LCD refresh
This commit is contained in:
@@ -26,9 +26,20 @@ extern "C"
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "adc.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#define BSP_ADC_CHANNEL_COUNT 2U
|
||||
#define BSP_ADC_BOARD_VOLTAGE_INDEX 0U
|
||||
#define BSP_ADC_JOYSTICK_INDEX 1U
|
||||
|
||||
extern volatile uint16_t ADC_Voltage_Val[BSP_ADC_CHANNEL_COUNT];
|
||||
|
||||
/* Externs ---------------------------------------------*/
|
||||
void BSP_ADC_Init(void);
|
||||
|
||||
float USER_ADC_Voltage_Update(void);
|
||||
uint16_t BSP_ADC_GetRaw(uint32_t index);
|
||||
uint16_t BSP_ADC_GetJoystickRaw(void);
|
||||
uint16_t BSP_ADC_GetJoystickRaw12(void);
|
||||
float BSP_ADC_GetJoystickVoltage(void);
|
||||
#endif //BSP_ADC_H
|
||||
|
||||
Reference in New Issue
Block a user