Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
snkYmkrct committed Jan 17, 2025
1 parent 665b851 commit 8b1f8cd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ports/stm/peripherals/periph.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ typedef struct {
#define HAS_TRNG 1
#define HAS_BASIC_TIM 1
#include "stm32h7/stm32h750xx/periph.h"
#endif
#endif
2 changes: 1 addition & 1 deletion ports/stm/peripherals/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ extern const mp_obj_type_t mcu_pin_type;

#ifdef STM32H750xx
#include "stm32h7/stm32h750xx/pins.h"
#endif
#endif
2 changes: 1 addition & 1 deletion ports/stm/peripherals/stm32h7/stm32h743xx/clocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@
#endif
#ifndef BOARD_PLL_SOURCE
#define BOARD_PLL_SOURCE (RCC_PLLSOURCE_HSE)
#endif
#endif
2 changes: 1 addition & 1 deletion ports/stm/peripherals/stm32h7/stm32h750xx/clocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
#endif
#ifndef BOARD_PLL_SOURCE
#define BOARD_PLL_SOURCE (RCC_PLLSOURCE_HSE)
#endif
#endif
24 changes: 12 additions & 12 deletions ports/stm/peripherals/stm32h7/stm32h750xx/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ void stm32_peripherals_gpio_init(void) {
__HAL_RCC_GPIOF_CLK_ENABLE();
__HAL_RCC_GPIOG_CLK_ENABLE();
__HAL_RCC_GPIOH_CLK_ENABLE();
__HAL_RCC_GPIOI_CLK_ENABLE();
__HAL_RCC_GPIOI_CLK_ENABLE();

// Never reset pins
never_reset_pin_number(7, 0); // PH00 OSC32_IN
never_reset_pin_number(7, 1); // PH01 OSC32_OUT
never_reset_pin_number(0, 13); // PA13 SWDIO
never_reset_pin_number(0, 14); // PA14 SWCLK
// qspi flash pins for the Daisy Seed -- TODO ?
never_reset_pin_number(5, 6); // PF06 QSPI IO3
never_reset_pin_number(5, 7); // PF07 QSPI IO2
never_reset_pin_number(5, 8); // PF08 QSPI IO0
never_reset_pin_number(5, 9); // PF09 QSPI IO1
never_reset_pin_number(5, 10); // PF10 QSPI CLK
never_reset_pin_number(6, 6); // PG06 QSPI NCS
never_reset_pin_number(7, 0); // PH00 OSC32_IN
never_reset_pin_number(7, 1); // PH01 OSC32_OUT
never_reset_pin_number(0, 13); // PA13 SWDIO
never_reset_pin_number(0, 14); // PA14 SWCLK
// qspi flash pins for the Daisy Seed -- TODO ?
never_reset_pin_number(5, 6); // PF06 QSPI IO3
never_reset_pin_number(5, 7); // PF07 QSPI IO2
never_reset_pin_number(5, 8); // PF08 QSPI IO0
never_reset_pin_number(5, 9); // PF09 QSPI IO1
never_reset_pin_number(5, 10); // PF10 QSPI CLK
never_reset_pin_number(6, 6); // PG06 QSPI NCS

}
1 change: 0 additions & 1 deletion ports/stm/peripherals/stm32h7/stm32h750xx/periph.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[26];
#define TIM_BANK_ARRAY_LEN 14
#define TIM_PIN_ARRAY_LEN 58
extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN];

0 comments on commit 8b1f8cd

Please sign in to comment.