- 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
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
fpistm added a commit to fpistm/STM32SD that referenced this pull requestMay 9, 2019
Requirestm32duino/Arduino_Core_STM32#518Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/STM32Ethernet that referenced this pull requestMay 10, 2019
variant.h is now included thanks stm32_def.hSeestm32duino/Arduino_Core_STM32#518Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/STM32Ethernet that referenced this pull requestMay 11, 2019
variant.h is now included thanks stm32_def.hSeestm32duino/Arduino_Core_STM32#518Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
baa9e86 to9f6571dCompareSigned-off-by: Frederic.Pillon <frederic.pillon@st.com>
Before each variants had to include the STM32 HAL configurationfile: stm32yyxx_hal_conf.h.Those files were almost the same for the same series.With a default one per series this avoid to add it to the variant.Extra HAL module can be enabled in variant.h if required or in afile named (at sketch level): `hal_conf_extra.h`Custom HAL configuration file can replace the default one by addinga file named (at sketch level): `hal_conf_custom.h` .Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
variant.h is now included thanks stm32_def.hSigned-off-by: Frederic.Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
As Wire is a built-in library no need to modify it.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
As SPI is a built-in library no need to modify it.Note: no size changeSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Note: no size changeSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Note: no size changeSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Note: no size changeSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Note: no size changeSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Note: Interrupt API does not use the HAL EXTI module anyway API is cleaned with HAL_EXTI_MODULE_DISABLEDSigned-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This was referencedMay 15, 2019
Very useful for STM32F030F4P6 16KB flash. |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
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.
Uh oh!
There was an error while loading.Please reload this page.
This PR add some enhancement and flexibility.
variant.his now independent and does not rely on any header.Default STM32 HAL configuration:
stm32yyxx_hal_conf.hwithyythe STM32 series:f0, f1, f2, f3, f4, g0, f7, h7, l0, l1, l4, wbThose files were almost the same for the all series.
With a default one per series this avoid to add it to the variant folder.
variant.hif required or in a file named (at sketch level):hal_conf_extra.hhal_conf_custom.h.TICK_INT_PRIORITYPREFETCH_ENABLEINSTRUCTION_CACHE_ENABLEDATA_CACHE_ENABLEUSE_SPI_CRCSome HAL modules can now be disabled if user does not use the feature by defining one or more following values (solveDisable HAL feature when not used in the sketch #228):
HAL_ADC_MODULE_DISABLEDHAL_I2C_MODULE_DISABLEDHAL_RTC_MODULE_DISABLEDHAL_SPI_MODULE_DISABLEDHAL_DAC_MODULE_DISABLEDHAL_ETH_MODULE_DISABLEDHAL_SD_MODULE_DISABLEDHAL_QSPI_MODULE_DISABLEDHAL_EXTI_MODULE_DISABLEDHAL_TIM_MODULE_DISABLEDNote:
HAL_UART_MODULE_ENABLEDandHAL_PCD_MODULE_ENABLEDare handled thanks Arduino menu.For example, default Blink sketch for Nucleo L031K6:
HAL_*_MODULE_DISABLEDdefined inhal_conf_extra.hand Serial disabled:Refer toHAL configuration WiKi page