Skip to content

Commit 0b6a29c

Browse files
mprsePrzemyslaw Stekiel
authored andcommitted
Move GPIO_AF_NONE from PeripheralPins.h to PinNamesTypes.h
1 parent 1ee1325 commit 0b6a29c

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

targets/TARGET_STM/PeripheralPins.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
#include "pinmap.h"
3535
#include "PeripheralNames.h"
3636

37-
#define GPIO_AF_NONE 0
38-
3937
//*** ADC ***
4038
#if DEVICE_ANALOGIN
4139
extern const PinMap PinMap_ADC[];

targets/TARGET_STM/PinNamesTypes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
extern "C" {
3737
#endif
3838

39+
#define GPIO_AF_NONE 0
40+
3941
/* STM PIN data as used in pin_function is coded on 32 bits as below
4042
* [2:0] Function (like in MODER reg) : Input / Output / Alt / Analog
4143
* [3] Output Push-Pull / Open Drain (as in OTYPER reg)
@@ -170,4 +172,3 @@ typedef enum {
170172
#endif
171173

172174
#endif
173-

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE/PeripheralPinMaps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#ifndef MBED_PERIPHERALPINMAPS_H
5050
#define MBED_PERIPHERALPINMAPS_H
5151

52+
#include "PinNamesTypes.h"
5253
#include <mstd_cstddef>
5354

5455
//*** ADC ***

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI/PeripheralPinMaps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#ifndef MBED_PERIPHERALPINMAPS_H
5050
#define MBED_PERIPHERALPINMAPS_H
5151

52+
#include "PinNamesTypes.h"
5253
#include <mstd_cstddef>
5354

5455
//*** ADC ***

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralPinMaps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#ifndef MBED_PERIPHERALPINMAPS_H
5050
#define MBED_PERIPHERALPINMAPS_H
5151

52+
#include "PinNamesTypes.h"
5253
#include <mstd_cstddef>
5354

5455
//*** ADC ***

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/PeripheralPinMaps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#ifndef MBED_PERIPHERALPINMAPS_H
5050
#define MBED_PERIPHERALPINMAPS_H
5151

52+
#include "PinNamesTypes.h"
5253
#include <mstd_cstddef>
5354

5455
//*** ADC ***

0 commit comments

Comments
 (0)