Skip to content

Commit

Permalink
Fix ADC declaration on all community targets
Browse files Browse the repository at this point in the history
- Following nanoframework/nf-interpreter#736

Signed-off-by: José Simões <[email protected]>
  • Loading branch information
josesimoes committed Jun 7, 2018
1 parent 41634bc commit 1292856
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{3, GPIOC, 3, ADC_CHANNEL_IN13},

// these are the internal sources, available only at ADC1
{1, NULL, NULL, ADC_CHANNEL_SENSOR},
{1, NULL, NULL, ADC_CHANNEL_VREFINT},
{1, NULL, NULL, ADC_CHANNEL_VBAT},
{1, NULL, 0, ADC_CHANNEL_SENSOR},
{1, NULL, 0, ADC_CHANNEL_VREFINT},
{1, NULL, 0, ADC_CHANNEL_VBAT},
};

const int AdcChannelCount = ARRAYSIZE(AdcPortPinConfig);
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{1, GPIOA, 5, ADC_CHANNEL_IN5},

// these are the internal sources, available only at ADC1
{1, NULL, NULL, ADC_CHANNEL_SENSOR},
{1, NULL, NULL, ADC_CHANNEL_VREFINT},
{1, NULL, NULL, ADC_CHANNEL_VBAT},
{1, NULL, 0, ADC_CHANNEL_SENSOR},
{1, NULL, 0, ADC_CHANNEL_VREFINT},
{1, NULL, 0, ADC_CHANNEL_VBAT},
};

const int AdcChannelCount = ARRAYSIZE(AdcPortPinConfig);
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{1, GPIOA, 4, ADC_CHANNEL_IN4},

// these are the internal sources, available only at ADC1
{1, NULL, NULL, ADC_CHANNEL_SENSOR},
{1, NULL, NULL, ADC_CHANNEL_VREFINT},
{1, NULL, NULL, ADC_CHANNEL_VBAT},
{1, NULL, 0, ADC_CHANNEL_SENSOR},
{1, NULL, 0, ADC_CHANNEL_VREFINT},
{1, NULL, 0, ADC_CHANNEL_VBAT},
};

const int AdcChannelCount = ARRAYSIZE(AdcPortPinConfig);
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{1, GPIOC, 0, ADC_CHANNEL_IN10},

// these are the internal sources, available only at ADC1
{1, NULL, NULL, ADC_CHANNEL_SENSOR},
{1, NULL, NULL, ADC_CHANNEL_VREFINT},
{1, NULL, NULL, ADC_CHANNEL_VBAT},
{1, NULL, 0, ADC_CHANNEL_SENSOR},
{1, NULL, 0, ADC_CHANNEL_VREFINT},
{1, NULL, 0, ADC_CHANNEL_VBAT},
};

const int AdcChannelCount = ARRAYSIZE(AdcPortPinConfig);
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{1, GPIOC, 0, ADC_CHANNEL_IN10},

// these are the internal sources, available only at ADC1
{1, NULL, NULL, ADC_CHANNEL_SENSOR},
{1, NULL, NULL, ADC_CHANNEL_VREFINT},
{1, NULL, NULL, ADC_CHANNEL_VBAT},
{1, NULL, 0, ADC_CHANNEL_SENSOR},
{1, NULL, 0, ADC_CHANNEL_VREFINT},
{1, NULL, 0, ADC_CHANNEL_VBAT},
};

const int AdcChannelCount = ARRAYSIZE(AdcPortPinConfig);

0 comments on commit 1292856

Please sign in to comment.