Skip to content

Commit b975d5d

Browse files
committed
pbio/drv/adc_stm32f0.c: Drop Contiki process.
This did nothing.
1 parent 816ad14 commit b975d5d

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lib/pbio/drv/adc/adc_stm32f0.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <stdbool.h>
99
#include <stdint.h>
1010

11-
#include <contiki.h>
12-
1311
#include <pbdrv/adc.h>
1412
#include <pbio/config.h>
1513
#include <pbio/error.h>
@@ -20,8 +18,6 @@
2018
#include "../random/random_adc.h"
2119
#endif
2220

23-
PROCESS(pbdrv_adc_process, "ADC");
24-
2521
static void pbdrv_adc_calibrate(void) {
2622
// NB: it takes more than this to make sure ADC is disabled
2723
// it should be OK though since we only calibrate at init when A/DC is
@@ -62,8 +58,6 @@ void pbdrv_adc_init(void) {
6258
// TODO: LEGO firmware reads CH 3 during init 10 times and averages it.
6359
// Not sure what this is measuring or what it would be used for. Perhaps
6460
// some kind of ID resistor?
65-
66-
process_start(&pbdrv_adc_process);
6761
}
6862

6963
pbio_error_t pbdrv_adc_await_new_samples(pbio_os_state_t *state, uint32_t *start_time_us, uint32_t future_us) {
@@ -92,17 +86,4 @@ pbio_error_t pbdrv_adc_get_ch(uint8_t ch, uint16_t *value) {
9286
return PBIO_SUCCESS;
9387
}
9488

95-
PROCESS_THREAD(pbdrv_adc_process, ev, data) {
96-
// TODO: use DMA for background updates and add filtering
97-
// PROCESS_POLLHANDLER(pbdrv_adc_poll());
98-
99-
PROCESS_BEGIN();
100-
101-
while (true) {
102-
PROCESS_WAIT_EVENT();
103-
}
104-
105-
PROCESS_END();
106-
}
107-
10889
#endif // PBDRV_CONFIG_ADC_STM32F0

0 commit comments

Comments
 (0)