Skip to content

Commit 12d1bc4

Browse files
committed
pbio/drv/core: Move ADC init to normal start location.
This completes the transition started in the previous commit. The ADC does not depend on anything other than clocks, so we can move it along with the other drivers.
1 parent 046af37 commit 12d1bc4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/pbio/drv/core.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void pbdrv_init(void) {
3939
process_start(&etimer_process);
4040

4141
// the rest of the drivers should be implemented so that init order doesn't matter
42+
pbdrv_adc_init();
4243
pbdrv_battery_init();
4344
pbdrv_block_device_init();
4445
pbdrv_bluetooth_init();
@@ -79,8 +80,4 @@ void pbdrv_init(void) {
7980
// devices behaves the same as if unknown devices are still syncing up after
8081
// just being plugged in.
8182
pbdrv_legodev_init();
82-
83-
// REVISIT: verify that the order does not matter and that we can start this
84-
// in the same place as the other drivers above.
85-
pbdrv_adc_init();
8683
}

0 commit comments

Comments
 (0)