mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Remove ADC dummy wait on start/stop
This commit is contained in:
committed by
Ben V. Brown
parent
d7bcd2245b
commit
348c86bb2a
@@ -353,12 +353,12 @@ void ADC_Scan_Channel_Config(const ADC_Chan_Type posChList[], const ADC_Chan_Typ
|
|||||||
void ADC_Start(void) {
|
void ADC_Start(void) {
|
||||||
uint32_t regCmd;
|
uint32_t regCmd;
|
||||||
|
|
||||||
/* disable convert start */
|
// /* disable convert start */
|
||||||
regCmd = BL_RD_REG(AON_BASE, AON_GPADC_REG_CMD);
|
// regCmd = BL_RD_REG(AON_BASE, AON_GPADC_REG_CMD);
|
||||||
regCmd = BL_CLR_REG_BIT(regCmd, AON_GPADC_CONV_START);
|
// regCmd = BL_CLR_REG_BIT(regCmd, AON_GPADC_CONV_START);
|
||||||
BL_WR_REG(AON_BASE, AON_GPADC_REG_CMD, regCmd);
|
// BL_WR_REG(AON_BASE, AON_GPADC_REG_CMD, regCmd);
|
||||||
|
|
||||||
ADC_RESTART_DUMMY_WAIT;
|
// ADC_RESTART_DUMMY_WAIT;
|
||||||
|
|
||||||
/* enable convert start */
|
/* enable convert start */
|
||||||
regCmd = BL_RD_REG(AON_BASE, AON_GPADC_REG_CMD);
|
regCmd = BL_RD_REG(AON_BASE, AON_GPADC_REG_CMD);
|
||||||
|
|||||||
Reference in New Issue
Block a user