Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMW3165 ADC Channels #16

Open
kjordan2001 opened this issue Jan 12, 2016 · 0 comments
Open

EMW3165 ADC Channels #16

kjordan2001 opened this issue Jan 12, 2016 · 0 comments

Comments

@kjordan2001
Copy link

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]},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant