Skip to content

Add I2C api to Musca-B1 target #12778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/PeripheralNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ typedef enum {
UART_1
} UARTName;

typedef enum {
I2C_0 = 0,
I2C_1
} I2CName;

#define STDIO_UART_TX UART1_TX
#define STDIO_UART_RX UART1_RX
#define STDIO_UART UART_1
Expand Down
6 changes: 6 additions & 0 deletions targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ typedef enum {
LED2 = PA3,
LED3 = PA4,

/* I2C pins */
I2C0_SDA = PA14, /* Alternate Function - 1 */
I2C0_SCL = PA15, /* Alternate Function - 1 */
I2C1_SDA = PA18,
I2C1_SCL = PA19,

/* Not connected */
NC = (int)0xFFFFFFFF
} PinName;
Expand Down
Loading