- Notifications
You must be signed in to change notification settings - Fork1k
HAL configuration#518
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
15 commits Select commitHold shift + click to select a range
af10a0e Remove variant.h header dependencies
fpistma0b033c Default STM32 HAL configuration
fpistm650d241 Remove useless variant.h include
fpistmefdbd29 Default HAL modules selection
fpistm07dcdc4 [I2C] Able to build without HAL module
fpistmc41d8af [SPI] Able to build without HAL module
fpistm0753358 [RTC] Able to build without HAL module
fpistme4b1121 [ADC] Able to build without HAL module
fpistm68d3450 [DAC] Able to build without HAL module
fpistm680e01b [ETH] Able to build without HAL module
fpistme0e90cc [SD] Able to build without HAL module
fpistm4e25050 [QSPI] Able to build without HAL module
fpistm0e1f5a7 [EXTI] Able to build without HAL module
fpistmb10696d [TIM] Able to build without HAL module
fpistm751aee4 Make TIMER_TONE and TIMER_SERVO definitions optional
fpistmFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletionscores/arduino/Tone.cpp
This file contains hidden or 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
17 changes: 17 additions & 0 deletionscores/arduino/WInterrupts.cpp
This file contains hidden or 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
4 changes: 4 additions & 0 deletionscores/arduino/pins_arduino.h
This file contains hidden or 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
20 changes: 16 additions & 4 deletionscores/arduino/stm32/analog.c
This file contains hidden or 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
3 changes: 3 additions & 0 deletionscores/arduino/stm32/interrupt.cpp
This file contains hidden or 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
5 changes: 4 additions & 1 deletioncores/arduino/stm32/interrupt.h
This file contains hidden or 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
3 changes: 2 additions & 1 deletioncores/arduino/stm32/rtc.h
This file contains hidden or 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
2 changes: 2 additions & 0 deletionscores/arduino/stm32/spi_com.c
This file contains hidden or 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
2 changes: 2 additions & 0 deletionscores/arduino/stm32/spi_com.h
This file contains hidden or 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
2 changes: 1 addition & 1 deletioncores/arduino/stm32/stm32_eeprom.h
This file contains hidden or 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
150 changes: 150 additions & 0 deletionscores/arduino/stm32/stm32yyxx_hal_conf.h
This file contains hidden or 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,150 @@ | ||
| #ifndef __STM32YYxx_HAL_CONF_H | ||
| #define __STM32YYxx_HAL_CONF_H | ||
| /* | ||
| * Mandatory HAL modules | ||
| */ | ||
| #define HAL_MODULE_ENABLED | ||
| #define HAL_CORTEX_MODULE_ENABLED | ||
| #define HAL_DMA_MODULE_ENABLED /* Required by other modules */ | ||
| #define HAL_FLASH_MODULE_ENABLED | ||
| #define HAL_GPIO_MODULE_ENABLED | ||
| #define HAL_PWR_MODULE_ENABLED | ||
| #define HAL_RCC_MODULE_ENABLED | ||
| /* | ||
| * Optional HAL modules, can be enabled/disabled using | ||
| * variant.h, build_opt.h or hal_conf_extra.h | ||
| */ | ||
| /* | ||
| * Defined by default | ||
| */ | ||
| #if !defined(HAL_ADC_MODULE_DISABLED) | ||
| #define HAL_ADC_MODULE_ENABLED | ||
| #else | ||
| #undef HAL_ADC_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_I2C_MODULE_DISABLED) | ||
| #define HAL_I2C_MODULE_ENABLED | ||
| #else | ||
| #undef HAL_I2C_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_RTC_MODULE_DISABLED) | ||
| #define HAL_RTC_MODULE_ENABLED | ||
| #else | ||
| #undef HAL_RTC_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_SPI_MODULE_DISABLED) | ||
| #define HAL_SPI_MODULE_ENABLED | ||
| #else | ||
| #undef HAL_SPI_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_TIM_MODULE_DISABLED) | ||
| #define HAL_TIM_MODULE_ENABLED | ||
| #else | ||
| #undef HAL_TIM_MODULE_ENABLED | ||
| #endif | ||
| /* | ||
| * Not defined by default | ||
| */ | ||
| #if !defined(HAL_DAC_MODULE_DISABLED) | ||
| /*#define HAL_DAC_MODULE_ENABLED*/ | ||
| #else | ||
| #undef HAL_DAC_MODULE_ENABLED | ||
| #endif | ||
| /* Note: interrupt API does not used HAL EXTI module */ | ||
| /* anyway API is cleaned with HAL_EXTI_MODULE_DISABLED */ | ||
| #if !defined(HAL_EXTI_MODULE_DISABLED) | ||
| /*#define HAL_EXTI_MODULE_ENABLED*/ | ||
| #else | ||
| #undef HAL_EXTI_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_ETH_MODULE_DISABLED) | ||
| /*#define HAL_ETH_MODULE_ENABLED*/ | ||
| #else | ||
| #undef HAL_ETH_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_SD_MODULE_DISABLED) | ||
| /*#define HAL_SD_MODULE_ENABLED*/ | ||
| #else | ||
| #undef HAL_SD_MODULE_ENABLED | ||
| #endif | ||
| #if !defined(HAL_QSPI_MODULE_DISABLED) | ||
| /*#define HAL_QSPI_MODULE_ENABLED*/ | ||
| #else | ||
| #undef HAL_QSPI_MODULE_ENABLED | ||
| #endif | ||
| /* | ||
| * Disabled HAL modules, handled thanks Arduino menu | ||
| */ | ||
| /*#define HAL_UART_MODULE_ENABLED*/ | ||
| /*#define HAL_PCD_MODULE_ENABLED*/ | ||
| /* | ||
| * Unused HAL modules | ||
| */ | ||
| #if 0 | ||
| HAL_CAN_LEGACY_MODULE_ENABLED | ||
| HAL_CAN_LEGACY_MODULE_ENABLED | ||
| HAL_CEC_MODULE_ENABLED | ||
| HAL_COMP_MODULE_ENABLED | ||
| HAL_CRC_MODULE_ENABLED | ||
| HAL_CRYP_MODULE_ENABLED | ||
| HAL_DCMI_MODULE_ENABLED | ||
| HAL_DFSDM_MODULE_ENABLED | ||
| HAL_DMA2D_MODULE_ENABLED | ||
| HAL_DSI_MODULE_ENABLED | ||
| HAL_EXTI_MODULE_ENABLED // interrupt API does not use the module | ||
| HAL_FDCAN_MODULE_ENABLED | ||
| HAL_FIREWALL_MODULE_ENABLED | ||
| HAL_FMPI2C_MODULE_ENABLED | ||
| HAL_GFXMMU_MODULE_ENABLED | ||
| HAL_HASH_MODULE_ENABLED | ||
| HAL_HCD_MODULE_ENABLED | ||
| HAL_HRTIM_MODULE_ENABLED | ||
| HAL_HSEM_MODULE_ENABLED | ||
| HAL_I2S_MODULE_ENABLED | ||
| HAL_IPCC_MODULE_ENABLED | ||
| HAL_IRDA_MODULE_ENABLED | ||
| HAL_IWDG_MODULE_ENABLED // IWD built-in library uses LL | ||
| HAL_JPEG_MODULE_ENABLED | ||
| HAL_LCD_MODULE_ENABLED | ||
| HAL_LPTIM_MODULE_ENABLED | ||
| HAL_LTDC_MODULE_ENABLED | ||
| HAL_MDIOS_MODULE_ENABLED | ||
| HAL_MDMA_MODULE_ENABLED | ||
| HAL_MMC_MODULE_ENABLED | ||
| HAL_NAND_MODULE_ENABLED | ||
| HAL_NOR_MODULE_ENABLED | ||
| HAL_OPAMP_MODULE_ENABLED | ||
| HAL_OSPI_MODULE_ENABLED | ||
| HAL_PCCARD_MODULE_ENABLED | ||
| HAL_PKA_MODULE_ENABLED | ||
| HAL_RAMECC_MODULE_ENABLED | ||
| HAL_RNG_MODULE_ENABLED | ||
| HAL_SAI_MODULE_ENABLED | ||
| HAL_SDADC_MODULE_ENABLED | ||
| HAL_SDRAM_MODULE_ENABLED | ||
| HAL_SMARTCARD_MODULE_ENABLED | ||
| HAL_SMBUS_MODULE_ENABLED | ||
| HAL_SPDIFRX_MODULE_ENABLED | ||
| HAL_SRAM_MODULE_ENABLED | ||
| HAL_SWPMI_MODULE_ENABLED | ||
| HAL_TSC_MODULE_ENABLED | ||
| HAL_USART_MODULE_ENABLED | ||
| HAL_WWDG_MODULE_ENABLED | ||
| #endif | ||
| #endif /* __STM32YYxx_HAL_CONF_H */ | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.