-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update BTT002 platform (fixing SD init) (#16217)
- Loading branch information
1 parent
a0badf5
commit 42a336f
Showing
10 changed files
with
1,229 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
340 changes: 340 additions & 0 deletions
340
buildroot/share/PlatformIO/variants/BIGTREE_BTT002/PeripheralPins.c
Large diffs are not rendered by default.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
buildroot/share/PlatformIO/variants/BIGTREE_BTT002/PinNamesVar.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* SYS_WKUP */ | ||
#ifdef PWR_WAKEUP_PIN1 | ||
SYS_WKUP1 = PA_0, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN2 | ||
SYS_WKUP2 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN3 | ||
SYS_WKUP3 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN4 | ||
SYS_WKUP4 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN5 | ||
SYS_WKUP5 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN6 | ||
SYS_WKUP6 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN7 | ||
SYS_WKUP7 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN8 | ||
SYS_WKUP8 = NC, | ||
#endif | ||
/* USB */ | ||
#ifdef USBCON | ||
USB_OTG_FS_SOF = PA_8, | ||
USB_OTG_FS_VBUS = PA_9, | ||
USB_OTG_FS_ID = PA_10, | ||
USB_OTG_FS_DM = PA_11, | ||
USB_OTG_FS_DP = PA_12, | ||
USB_OTG_HS_ULPI_D0 = PA_3, | ||
USB_OTG_HS_SOF = PA_4, | ||
USB_OTG_HS_ULPI_CK = PA_5, | ||
USB_OTG_HS_ULPI_D1 = PB_0, | ||
USB_OTG_HS_ULPI_D2 = PB_1, | ||
USB_OTG_HS_ULPI_D7 = PB_5, | ||
USB_OTG_HS_ULPI_D3 = PB_10, | ||
USB_OTG_HS_ULPI_D4 = PB_11, | ||
USB_OTG_HS_ID = PB_12, | ||
USB_OTG_HS_ULPI_D5 = PB_12, | ||
USB_OTG_HS_ULPI_D6 = PB_13, | ||
USB_OTG_HS_VBUS = PB_13, | ||
USB_OTG_HS_DM = PB_14, | ||
USB_OTG_HS_DP = PB_15, | ||
USB_OTG_HS_ULPI_STP = PC_0, | ||
USB_OTG_HS_ULPI_DIR = PC_2, | ||
USB_OTG_HS_ULPI_NXT = PC_3, | ||
#endif |
52 changes: 52 additions & 0 deletions
52
buildroot/share/PlatformIO/variants/BIGTREE_BTT002/hal_conf_extra.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#pragma once | ||
|
||
#define HAL_MODULE_ENABLED | ||
#define HAL_ADC_MODULE_ENABLED | ||
#define HAL_CRC_MODULE_ENABLED | ||
#define HAL_DMA_MODULE_ENABLED | ||
#define HAL_GPIO_MODULE_ENABLED | ||
#define HAL_I2C_MODULE_ENABLED | ||
#define HAL_PWR_MODULE_ENABLED | ||
#define HAL_RCC_MODULE_ENABLED | ||
//#define HAL_RTC_MODULE_ENABLED Real Time Clock...do we use it? | ||
#define HAL_SPI_MODULE_ENABLED | ||
#define HAL_TIM_MODULE_ENABLED | ||
#define HAL_USART_MODULE_ENABLED | ||
#define HAL_CORTEX_MODULE_ENABLED | ||
//#define HAL_UART_MODULE_ENABLED // by default | ||
//#define HAL_PCD_MODULE_ENABLED // Since STM32 v3.10700.191028 this is automatically added if any type of USB is enabled (as in Arduino IDE) | ||
|
||
#undef HAL_SD_MODULE_ENABLED | ||
#undef HAL_DAC_MODULE_ENABLED | ||
#undef HAL_FLASH_MODULE_ENABLED | ||
#undef HAL_CAN_MODULE_ENABLED | ||
#undef HAL_CAN_LEGACY_MODULE_ENABLED | ||
#undef HAL_CEC_MODULE_ENABLED | ||
#undef HAL_CRYP_MODULE_ENABLED | ||
#undef HAL_DCMI_MODULE_ENABLED | ||
#undef HAL_DMA2D_MODULE_ENABLED | ||
#undef HAL_ETH_MODULE_ENABLED | ||
#undef HAL_NAND_MODULE_ENABLED | ||
#undef HAL_NOR_MODULE_ENABLED | ||
#undef HAL_PCCARD_MODULE_ENABLED | ||
#undef HAL_SRAM_MODULE_ENABLED | ||
#undef HAL_SDRAM_MODULE_ENABLED | ||
#undef HAL_HASH_MODULE_ENABLED | ||
#undef HAL_EXTI_MODULE_ENABLED | ||
#undef HAL_SMBUS_MODULE_ENABLED | ||
#undef HAL_I2S_MODULE_ENABLED | ||
#undef HAL_IWDG_MODULE_ENABLED | ||
#undef HAL_LTDC_MODULE_ENABLED | ||
#undef HAL_DSI_MODULE_ENABLED | ||
#undef HAL_QSPI_MODULE_ENABLED | ||
#undef HAL_RNG_MODULE_ENABLED | ||
#undef HAL_SAI_MODULE_ENABLED | ||
#undef HAL_IRDA_MODULE_ENABLED | ||
#undef HAL_SMARTCARD_MODULE_ENABLED | ||
#undef HAL_WWDG_MODULE_ENABLED | ||
#undef HAL_HCD_MODULE_ENABLED | ||
#undef HAL_FMPI2C_MODULE_ENABLED | ||
#undef HAL_SPDIFRX_MODULE_ENABLED | ||
#undef HAL_DFSDM_MODULE_ENABLED | ||
#undef HAL_LPTIM_MODULE_ENABLED | ||
#undef HAL_MMC_MODULE_ENABLED |
Oops, something went wrong.