# rt-todpps-service **Repository Path**: hanhai-modules/rt-todpps-service ## Basic Information - **Project Name**: rt-todpps-service - **Description**: 来自黑芝麻智能科技(bstai)瀚海(hanhai)的时间同步服务组件。用于RT系统,实现RT域与其他域的跨域时间同步。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-26 - **Last Updated**: 2024-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tod-pps-sync-service-r5 Licensed under the Apache License, Version 2.0 (the "License"); realtime域todpps slave 时间同步代码: 功能: realtime域todpps slave 时间同步主要功能实现从switch域/adas域同步时间,功能包括以下三部分: 1、通过msgbox接收来自switch/adas发送的pps脉冲使能时的utc时间戳。 2、获取pps脉冲到达realtime域的脉冲快照时间戳 3、计算utc和pps时间偏差,调整ptp时钟偏移和频率 代码结构: . ├── include │   ├── todpps.h //时间同步功能头文件 │   └── todpps_task.h //时间同步task头文件 ├── README.md ├── src │   ├── todpps.c //时间同步功能源文件 │   └── todpps_task.c //时间同步task源文件 └── todpps.oil //时间同步编译oil文件