Skip to content

Commit 3bcf77e

Browse files
committed
NUCLEO_F103RB: minor changes
1 parent 1159845 commit 3bcf77e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/PeripheralNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef enum {
5252
} PWMName;
5353

5454
typedef enum {
55-
CAN_1 = (int)CAN1_BASE
55+
CAN_1 = (int)CAN1_BASE
5656
} CANName;
5757

5858
#ifdef __cplusplus

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/objects.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ struct spi_s {
6464
};
6565

6666
struct i2c_s {
67-
I2CName i2c;
67+
I2CName i2c;
68+
uint32_t clk_speed;
6869
};
6970

7071
struct pwmout_s {

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/pinmap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ static const uint32_t AF_mapping[] = {
2424
GPIO_Remap_USART1, // 3
2525
GPIO_Remap_USART2, // 4
2626
GPIO_FullRemap_TIM2, // 5
27-
GPIO_FullRemap_TIM3 // 6
27+
GPIO_FullRemap_TIM3, // 6
28+
GPIO_Remap_I2C1 // 7
2829
};
2930

3031
/**

0 commit comments

Comments
 (0)