File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 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>
2018#include "../random/random_adc.h"
2119#endif
2220
23- PROCESS (pbdrv_adc_process , "ADC" );
24-
2521static 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
6963pbio_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
You can’t perform that action at this time.
0 commit comments