mirror of https://github.com/ARMmbed/mbed-os.git
Remove dead #define PORT_SHIFT
nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after user commented on it.pull/10652/head
parent
fa84352752
commit
3e3ac27698
|
@ -27,8 +27,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -27,8 +27,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -50,8 +50,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -27,8 +27,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -50,8 +50,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -51,7 +51,6 @@ typedef enum {
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define NOT_CONNECTED (int)0xFFFFFFFF
|
#define NOT_CONNECTED (int)0xFFFFFFFF
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
|
|
|
@ -27,8 +27,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -31,8 +31,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -50,8 +50,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -27,8 +27,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -28,8 +28,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// nRF52 pin names
|
// nRF52 pin names
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
|
|
|
@ -50,8 +50,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -50,8 +50,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -51,7 +51,6 @@ typedef enum {
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define NOT_CONNECTED (int)0xFFFFFFFF
|
#define NOT_CONNECTED (int)0xFFFFFFFF
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
|
|
|
@ -12,8 +12,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// nRF52 pin names
|
// nRF52 pin names
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
|
|
|
@ -12,8 +12,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// nRF52 pin names
|
// nRF52 pin names
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
|
|
|
@ -53,8 +53,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
p0 = 0,
|
p0 = 0,
|
||||||
p1 = 1,
|
p1 = 1,
|
||||||
|
|
|
@ -51,8 +51,6 @@ typedef enum {
|
||||||
PIN_OUTPUT
|
PIN_OUTPUT
|
||||||
} PinDirection;
|
} PinDirection;
|
||||||
|
|
||||||
#define PORT_SHIFT 3
|
|
||||||
|
|
||||||
///> define macro producing for example Px_y = NRF_GPIO_PIN_MAP(x, y)
|
///> define macro producing for example Px_y = NRF_GPIO_PIN_MAP(x, y)
|
||||||
#define PinDef(port_num, pin_num) P##port_num##_##pin_num = NRF_GPIO_PIN_MAP(port_num, pin_num)
|
#define PinDef(port_num, pin_num) P##port_num##_##pin_num = NRF_GPIO_PIN_MAP(port_num, pin_num)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue