Skip to content

Commit

Permalink
Fix ADC declaration on all targets (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 7, 2018
1 parent 42343dd commit 78b0960
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 @@ -21,9 +21,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{3, GPIOC, 5, 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 @@ -24,9 +24,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{3, GPIOF, 4, ADC_CHANNEL_IN14},

// 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 @@ -18,9 +18,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{3, GPIOF, 6, 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 @@ -18,9 +18,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{2, GPIOB, 0, ADC_CHANNEL_IN8},

// 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 @@ -18,9 +18,9 @@ const NF_PAL_ADC_PORT_PIN_CHANNEL AdcPortPinConfig[] = {
{3, GPIOB, 8, ADC_CHANNEL_IN7},

// 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 78b0960

Please sign in to comment.