alexeyk13 / rexos

RExOS - Realtime Exokernel Operating System
GNU Lesser General Public License v3.0
98 stars 20 forks source link

Fix RCC source configuration (stm32_power.c). Add working example 'led_blink' for stm32f100 (stm32-discovery board) #50

Closed roma-jam closed 1 year ago

roma-jam commented 1 year ago

Currently, it is unable to build example.

  1. Change the name of the folder: example -> examples
  2. Move old example to folder example/stm32/ethernet (but still it is unable to build it as the h7 was not added corretlly to stm32_otg.c)
  3. Add new example examples/stm32/led_blink for stm32f100rb (stm32-discovery development board), which can be built.
  4. Fix stm32l052xx.h #include
  5. Fix stm32_power.c (RCC source configuration for stm32f1 and stm32h7)

Here is the part of reference manuals for stm32f1xx and stm32h7xx to explain the register masks in step 5.

stm32f100_RCC_CFGR stm32f100_RCC_CFGR

stm32h407_RCC_CFGR stm32h407_RCC_CFGR