Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Separate CubeMX from FreeRTOS application code #38

Merged
merged 2 commits into from
Jul 24, 2018
Merged

Separate CubeMX from FreeRTOS application code #38

merged 2 commits into from
Jul 24, 2018

Conversation

rfairley
Copy link
Member

@rfairley rfairley commented Jul 21, 2018

Changes

  • Moves the task creation and function definition code into "USER BEGIN CODE" sections, so that CubeMX no longer manages generation of the tasks.
  • A defaultTask of idle priority is created by CubeMX, since CubeMX does not allow deleting of the default task.
  • The previous content of defaultTask is now located in a new task, commandTask.
  • Firmware Package for CubeMX version 4.26.1 is also updated.

resolves #31

This migrates the project Firmware Package to
STM32Cube FW_F4 V1.21.0, required for the CubeMX
4.26.1 update.
@rfairley rfairley changed the title WIP: Separate CubeMX from FreeRTOS application code Separate CubeMX from FreeRTOS application code Jul 22, 2018
*
* @defgroup FreeRTOS FreeRTOS
* @brief Everything related to FreeRTOS
* File Name : freertos.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The top of the file here should still contain the Doxygen formatting from before your changes, I'm guessing you just missed that because usually this is collapsed in the IDE

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see - yes I did miss this. The Doxygen formatting got deleted after running the code generator - just checked now. Added it back in

This moves FreeRTOS functions, queues, mutexes, and all other
application data structures to user code. CubeMX therefore no
longer manages FreeRTOS application functions. Code previously
in defaultTask is now in commandTask.

resolves #31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FreeRTOS: Cube generates FreeRTOS application code stubs, which limits program modularity
2 participants