mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2024-11-21 05:30:49 +08:00
Renamed variables.
This commit is contained in:
parent
084daf5d23
commit
7fc3f9649a
9
board.c
9
board.c
@ -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)
|
||||
|
2
board.h
2
board.h
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user