Use new provider registration function name.
This commit is contained in:
@@ -90,7 +90,7 @@ static void ClockTime_InitOnce(void *psync)
|
||||
iocshRegister(&ShutdownFuncDef, ShutdownCallFunc);
|
||||
|
||||
/* Finally register as a time provider */
|
||||
generalTimeCurrentTpRegister("OS Clock", LAST_RESORT_PRIORITY,
|
||||
generalTimeRegisterCurrentProvider("OS Clock", LAST_RESORT_PRIORITY,
|
||||
ClockTimeGetCurrent);
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ static void NTPTime_InitOnce(void *pprio)
|
||||
iocshRegister(&ShutdownFuncDef, ShutdownCallFunc);
|
||||
|
||||
/* Finally register as a time provider */
|
||||
generalTimeCurrentTpRegister("NTP", *(int *)pprio, NTPTimeGetCurrent);
|
||||
generalTimeRegisterCurrentProvider("NTP", *(int *)pprio, NTPTimeGetCurrent);
|
||||
}
|
||||
|
||||
void NTPTime_Init(int priority)
|
||||
|
||||
Reference in New Issue
Block a user