Initialise ADC in main, not in sensor drivers
This commit is contained in:
parent
3717522680
commit
12ac8e1fb5
2 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,6 @@ configure(int type, int value)
|
|||
GPIO_SET_INPUT(GPIO_A_BASE, ADC_ALS_OUT_PIN_MASK);
|
||||
ioc_set_over(GPIO_A_NUM, ADC_ALS_OUT_PIN, IOC_OVERRIDE_ANA);
|
||||
|
||||
adc_init();
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue