mirror of https://github.com/ARMmbed/mbed-os.git
[LPC824] I2C pin names were crossed
parent
7c55ec9590
commit
5b8a42ffe9
|
@ -30,7 +30,7 @@ extern "C" {
|
||||||
#define MBED_UART0 P0_7, P0_18
|
#define MBED_UART0 P0_7, P0_18
|
||||||
#define MBED_UARTUSB USBTX, USBRX
|
#define MBED_UARTUSB USBTX, USBRX
|
||||||
|
|
||||||
#define MBED_I2C0 P0_10, P0_11
|
#define MBED_I2C0 P0_11, P0_10
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ADC_0 = 0,
|
ADC_0 = 0,
|
||||||
|
|
|
@ -102,10 +102,10 @@ typedef enum {
|
||||||
USBRX = P0_18,
|
USBRX = P0_18,
|
||||||
|
|
||||||
// I2C pins
|
// I2C pins
|
||||||
SDA = P0_10,
|
SCL = P0_10,
|
||||||
SCL = P0_11,
|
SDA = P0_11,
|
||||||
I2C_SDA = P0_10,
|
I2C_SCL = P0_10,
|
||||||
I2C_SCL = P0_11,
|
I2C_SDA = P0_11,
|
||||||
|
|
||||||
// Not connected
|
// Not connected
|
||||||
NC = (int)0xFFFFFFFF,
|
NC = (int)0xFFFFFFFF,
|
||||||
|
|
|
@ -30,7 +30,7 @@ extern "C" {
|
||||||
#define MBED_UART0 P0_7, P0_18
|
#define MBED_UART0 P0_7, P0_18
|
||||||
#define MBED_UARTUSB USBTX, USBRX
|
#define MBED_UARTUSB USBTX, USBRX
|
||||||
|
|
||||||
#define MBED_I2C0 P0_10, P0_11
|
#define MBED_I2C0 P0_11, P0_10
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ADC_0 = 0,
|
ADC_0 = 0,
|
||||||
|
|
|
@ -102,10 +102,10 @@ typedef enum {
|
||||||
USBRX = P0_18,
|
USBRX = P0_18,
|
||||||
|
|
||||||
// I2C pins
|
// I2C pins
|
||||||
SDA = P0_10,
|
SCL = P0_10,
|
||||||
SCL = P0_11,
|
SDA = P0_11,
|
||||||
I2C_SDA = P0_10,
|
I2C_SCL = P0_10,
|
||||||
I2C_SCL = P0_11,
|
I2C_SDA = P0_11,
|
||||||
|
|
||||||
// Not connected
|
// Not connected
|
||||||
NC = (int)0xFFFFFFFF,
|
NC = (int)0xFFFFFFFF,
|
||||||
|
|
Loading…
Reference in New Issue