Remove dead #define PORT_SHIFT

nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after
user commented on it.
pull/10652/head
RFulchiero 2018-10-22 14:15:14 -05:00 committed by desmond.chen
parent fa84352752
commit 3e3ac27698
18 changed files with 1 additions and 35 deletions

View File

@ -27,8 +27,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -27,8 +27,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2013 Nordic Semiconductor ASA
* All rights reserved.
*
@ -50,8 +50,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -27,8 +27,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -50,8 +50,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -51,7 +51,6 @@ typedef enum {
} PinDirection;
#define NOT_CONNECTED (int)0xFFFFFFFF
#define PORT_SHIFT 3
typedef enum {
p0 = 0,

View File

@ -27,8 +27,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -31,8 +31,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -50,8 +50,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -27,8 +27,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -28,8 +28,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
// nRF52 pin names
p0 = 0,

View File

@ -50,8 +50,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -50,8 +50,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -51,7 +51,6 @@ typedef enum {
} PinDirection;
#define NOT_CONNECTED (int)0xFFFFFFFF
#define PORT_SHIFT 3
typedef enum {
p0 = 0,

View File

@ -12,8 +12,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
// nRF52 pin names
p0 = 0,

View File

@ -12,8 +12,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
// nRF52 pin names
p0 = 0,

View File

@ -53,8 +53,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,

View File

@ -51,8 +51,6 @@ typedef enum {
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
///> 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)