Skip to content

Commit 550d66f

Browse files
committed
work on periph pins
1 parent fb3a6e8 commit 550d66f

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

ports/stm/peripherals/stm32h7/stm32h750xx/periph.c

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ const mcu_periph_obj_t mcu_uart_rx_list[25] = {
171171

172172
// Timers
173173
// TIM6 and TIM7 are basic timers that are only used by DAC, and don't have pins
174-
// TODO: H7 has more timers than this, but are they tied to pins?
175174
TIM_TypeDef *mcu_tim_banks[14] = {TIM1, TIM2, TIM3, TIM4, TIM5, NULL, NULL, TIM8, NULL, NULL,
176175
NULL, TIM12, TIM13, TIM14};
177176

@@ -235,3 +234,25 @@ const mcu_tim_pin_obj_t mcu_tim_pin_list[58] = {
235234
TIM(8, 3, 3, &pin_PI00),
236235
TIM(1, 1, 1, &pin_PI01),
237236
};
237+
238+
// SDIO - H750 has a MMC interface that includes SDIO
239+
SDMMC_TypeDef *mcu_sdio_banks[1] = {SDIO};
240+
241+
const mcu_periph_obj_t mcu_sdio_clock_list[1] = {
242+
PERIPH(1, 12, &pin_PC12),
243+
};
244+
const mcu_periph_obj_t mcu_sdio_command_list[1] = {
245+
PERIPH(1, 12, &pin_PD02),
246+
};
247+
const mcu_periph_obj_t mcu_sdio_data0_list[1] = {
248+
PERIPH(1, 12, &pin_PC08),
249+
};
250+
const mcu_periph_obj_t mcu_sdio_data1_list[1] = {
251+
PERIPH(1, 12, &pin_PC09),
252+
};
253+
const mcu_periph_obj_t mcu_sdio_data2_list[1] = {
254+
PERIPH(1, 12, &pin_PC10),
255+
};
256+
const mcu_periph_obj_t mcu_sdio_data3_list[1] = {
257+
PERIPH(1, 12, &pin_PC11),
258+
};

ports/stm/peripherals/stm32h7/stm32h750xx/periph.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[25];
3030
#define TIM_BANK_ARRAY_LEN 14
3131
#define TIM_PIN_ARRAY_LEN 58
3232
extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN];
33+
34+
// SDIO - H750 has a MMC interface that includes SDIO
35+
extern SDMMC_TypeDef *mcu_sdio_banks[1];
36+
37+
extern const mcu_periph_obj_t mcu_sdio_clock_list[1];
38+
extern const mcu_periph_obj_t mcu_sdio_command_list[1];
39+
extern const mcu_periph_obj_t mcu_sdio_data0_list[1];
40+
extern const mcu_periph_obj_t mcu_sdio_data1_list[1];
41+
extern const mcu_periph_obj_t mcu_sdio_data2_list[1];
42+
extern const mcu_periph_obj_t mcu_sdio_data3_list[1];

0 commit comments

Comments
 (0)