klmchp commented on issue #353: multiple definition of `up_mdelay'
URL: https://github.com/apache/incubator-nuttx/issues/353#issuecomment-590076414
 
 
   @patacongo @xiaoxiang781216 , also find multi definition of 
up_rtc_getdatetime, up_rtc_settime and so on. I list the code from 
nuttx/drivers/timers/arch_rtc.c for reference.
   `int up_rtc_getdatetime(FAR struct tm *tp)
   {
     if (g_rtc_lower != NULL)
       {
         struct rtc_time rtctime;
   
         ret = g_rtc_lower->ops->rdtime(g_rtc_lower, &rtctime);
   
   There are many the implementations of rdtime in different platform.
   In arch/arm/src/stm32/stm32_rtc_lowerhalf.c
   
   static int stm32_rdtime(FAR struct rtc_lowerhalf_s *lower,
                           FAR struct rtc_time *rtctime)
   {
   #if defined(CONFIG_RTC_DATETIME)
     return **up_rtc_getdatetime**((FAR struct tm *)rtctime);
   `
   BR

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to