Skip to content

Commit 4a87436

Browse files
committed
DISCO_F413ZH: modifications in peripheralPins.c
1 parent 781db4f commit 4a87436

File tree

1 file changed

+7
-0
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH

1 file changed

+7
-0
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/PeripheralPins.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ const PinMap PinMap_ADC[] = {
5858
{NC, NC, 0}
5959
};
6060

61+
const PinMap PinMap_ADC_Internal[] = {
62+
{ADC_TEMP, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 16, 0)}, // See in analogin_api.c the correct ADC channel used
63+
{ADC_VREF, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // See in analogin_api.c the correct ADC channel used
64+
{ADC_VBAT, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)}, // See in analogin_api.c the correct ADC channel used
65+
{NC, NC, 0}
66+
};
67+
6168
//*** DAC ***
6269

6370
const PinMap PinMap_DAC[] = {

0 commit comments

Comments
 (0)