Skip to content

Commit 4c08455

Browse files
authored
Merge pull request #12778 from GaborAbonyi/add_i2c_to_musca_b1
Add I2C api to Musca-B1 target
2 parents ee476d9 + b442e35 commit 4c08455

File tree

14 files changed

+2480
-0
lines changed

14 files changed

+2480
-0
lines changed

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/PeripheralNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ typedef enum {
3030
UART_1
3131
} UARTName;
3232

33+
typedef enum {
34+
I2C_0 = 0,
35+
I2C_1
36+
} I2CName;
37+
3338
#define STDIO_UART_TX UART1_TX
3439
#define STDIO_UART_RX UART1_RX
3540
#define STDIO_UART UART_1

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/PinNames.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ typedef enum {
8686
LED2 = PA3,
8787
LED3 = PA4,
8888

89+
/* I2C pins */
90+
I2C0_SDA = PA14, /* Alternate Function - 1 */
91+
I2C0_SCL = PA15, /* Alternate Function - 1 */
92+
I2C1_SDA = PA18,
93+
I2C1_SCL = PA19,
94+
8995
/* Not connected */
9096
NC = (int)0xFFFFFFFF
9197
} PinName;

0 commit comments

Comments
 (0)