Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stm32duino/STM32FreeRTOS
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.3.2
Choose a base ref
...
head repository: stm32duino/STM32FreeRTOS
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 25, 2024

  1. feat: provide default functions only if requested

    configUSE_MALLOC_FAILED_HOOK and configCHECK_FOR_STACK_OVERFLOW
    allow to define specific function to call when a malloc failed
    or a stack overflow occured.
    Respectively, vApplicationIdleHook and vApplicationStackOverflowHook.
    
    Previous implementation provide them unconditionally preventing users
    to define their own implementation. Now extra config is required to
    have the default implementation:
    
    /* Set to 1 to use default blink hook if configUSE_MALLOC_FAILED_HOOK is 1 */
    #ifndef configUSE_MALLOC_FAILED_HOOK_BLINK
      #define configUSE_MALLOC_FAILED_HOOK_BLINK  0
    #endif
    /* Set to 1 to used default blink if configCHECK_FOR_STACK_OVERFLOW is 1 or 2 */
    #ifndef configCHECK_FOR_STACK_OVERFLOW_BLINK
      #define configCHECK_FOR_STACK_OVERFLOW_BLINK 0
    #endif
    
    
    Fixes #69.
    
    Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
    fpistm committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    d05df76 View commit details
    Browse the repository at this point in the history
Loading