StratifyLabs / StratifyOS-mcu-stm32

Stratify OS MCU Abstraction Library for STM32 Cortex M Devices
MIT License
6 stars 5 forks source link

add rtc for stm32f4 #33

Closed shomagan closed 6 years ago

shomagan commented 6 years ago

added liitle bit code for rtc

shomagan commented 6 years ago

Working on the template everything is clear, May way 1 Add change to StratifyOS(add flags RTC_FLAG_HOUR_FORMAT_24 and RTC_FLAG_HOUR_FORMAT_12 for example) 2 Install StratifyOS Add change to StratifyOS-mcu-stm32(rtc support) 3 install StratifyOS-mcu-stm32 add rtc device to NUCLEO-f429 4 build kernel(NUCLEO-f429) 5 Install kernel to board

some questions 1.what different debug and reliase version except debug_print and where can leave mcu_debug_root_printf(must be deleted everywhere after debugging)? 2.sequence of calls after functions rtc.open("/dev/rtc"), rtc.ioctl(I_RTC_SETATTR, &attr) directly lead to, mcu_rtc_open and mcu_rtc_setattr?

  1. In hall library use HAL_GetTick() for time out check, but tick may be not increment
  2. How often call mcu_rtc_open function and where sets it? PS 1 debug print work correctly 2 did not add an interrupt
shomagan commented 6 years ago

add change for init with use hall function