ghnotgood opened a new pull request, #19691:
URL: https://github.com/apache/nuttx/pull/19691

   g_rtc_lock is used by the up_rtc_settime, a base RTC function. Therefore, it 
should be available even for this procedure, not just when CONFIG_RTC_HIRES.
   
   ## Summary
   
   This change is needed for successful compilation for Kinetis K60 with the 
following combination of config defines:
   ```
   CONFIG_NSH_DISABLE_DATE=n
   CONFIG_KINETIS_RTC=y
   CONFIG_RTC=y
   CONFIG_RTC_DRIVER=y
   CONFIG_RTC_EXTERNAL=n
   CONFIG_RTC_HIRES=n
   CONFIG_RTC_ALARM=n
   ```
   
   ## Impact
   
   After applying this change, we can compile NuttX with the given combination 
of defines.
   
   ## Testing
   
   I have successfully compiled NuttX for our K60-based board, set the 
date/time using `date` command and confirmed that the time persist after reboot.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to