Open kjordan2001 opened 8 years ago
At least one of the channel mappings for the ADC is incorrect. ACD_5 should be on ADC_Channel_5 not ADC_Channel_9. I'll test it out tomorrow but I think it should read:
const platform_adc_t platform_adc_peripherals[] = { [WICED_ADC_1] = {ADC1, ADC_Channel_1, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_9]}, [WICED_ADC_2] = {ADC1, ADC_Channel_2, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_8]}, [WICED_ADC_3] = {ADC1, ADC_Channel_3, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_12]}, [WICED_ADC_4] = {ADC1, ADC_Channel_4, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_38]}, [WICED_ADC_5] = {ADC1, ADC_Channel_5, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_34]}, [WICED_ADC_8] = {ADC1, ADC_Channel_8, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_37]}, [WICED_ADC_9] = {ADC1, ADC_Channel_9, RCC_APB2Periph_ADC1, 1, &platform_gpio_pins[WICED_GPIO_36]}, };
At least one of the channel mappings for the ADC is incorrect. ACD_5 should be on ADC_Channel_5 not ADC_Channel_9. I'll test it out tomorrow but I think it should read: