Renamed variables.

This commit is contained in:
Dual Tachyon 2023-08-22 00:09:20 +01:00
parent 084daf5d23
commit 7fc3f9649a
2 changed files with 6 additions and 5 deletions

View File

@ -319,13 +319,14 @@ void BOARD_ADC_Init(void)
ADC_SoftReset();
}
void BOARD_ADC_GetBatteryInfo(uint16_t *pCh4, uint16_t *pCh9)
void BOARD_ADC_GetBatteryInfo(uint16_t *pVoltage, uint16_t *pCurrent)
{
ADC_Start();
while (!ADC_CheckEndOfConversion(ADC_CH9));
*pCh4 = ADC_GetValue(ADC_CH4);
*pCh9 = ADC_GetValue(ADC_CH9);
while (!ADC_CheckEndOfConversion(ADC_CH9)) {
}
*pVoltage = ADC_GetValue(ADC_CH4);
*pCurrent = ADC_GetValue(ADC_CH9);
}
void BOARD_Init(void)

View File

@ -23,7 +23,7 @@ void BOARD_FLASH_Init(void);
void BOARD_GPIO_Init(void);
void BOARD_PORTCON_Init(void);
void BOARD_ADC_Init(void);
void BOARD_ADC_GetBatteryInfo(uint16_t *pCh4, uint16_t *pCh9);
void BOARD_ADC_GetBatteryInfo(uint16_t *pVoltage, uint16_t *pCurrent);
void BOARD_Init(void);
void BOARD_EEPROM_Init(void);
void BOARD_EEPROM_LoadMoreSettings(void);