mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
The page did not match the code in several places. - Describe struct ptp_ops_s as it is: adjfine takes parts per billion, adjphase, getres and control exist, there is no getcaps, and gettime has a system timestamp argument. State which operations are optional and give the real ptp_clock_register() arguments. - Replace the CLOCKFD() macro, which does not exist, with the clock identifier built from CLOCK_SHIFT and CLOCK_FD, in all examples. - Fix the frequency values: struct timex freq is in parts per million with 16 fractional bits, so +10 ppm is 655360. - List the modes clock_adjtime() handles for a PTP clock (ADJ_SETOFFSET, ADJ_FREQUENCY, ADJ_OFFSET for the phase) and say that the others return -ENOTSUP. - PTP_CLOCK_GETTIME and PTP_CLOCK_SETTIME take a struct timespec. Add the ioctls that were missing. - The dummy driver uses CLOCK_REALTIME, not the monotonic clock. - Point to ptpd instead of ptp4l and timemaster, which are not part of NuttX, and use the real CONFIG_DEBUG_PTP options. Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> Assisted-by: Claude:claude-sonnet-5 |
||
|---|---|---|
| .. | ||
| image | ||
| mtd | ||
| net | ||
| pci | ||
| power | ||
| rpmsg | ||
| rptun | ||
| sensors | ||
| vhost | ||
| virtio | ||
| wireless | ||
| audio.rst | ||
| clk.rst | ||
| devfreq.rst | ||
| devicetree.rst | ||
| devmem.rst | ||
| dma.rst | ||
| framebuffer.rst | ||
| i2c.rst | ||
| i3c.rst | ||
| index.rst | ||
| ioexpander.rst | ||
| lcd.rst | ||
| mmcsd.rst | ||
| pinctrl.rst | ||
| pipes.rst | ||
| ptp.rst | ||
| regmap.rst | ||
| reset.rst | ||
| rwbuffer.rst | ||
| sdio.rst | ||
| segger.rst | ||
| sensors.rst | ||
| spi.rst | ||
| syslog.rst | ||
| sysview.png | ||
| usbdev.rst | ||
| usbhost.rst | ||
| usbmisc.rst | ||
| usbmonitor.rst | ||
| usbmonitor_wireshark_linux_example_adb.pcapng | ||
| usbmonitor_wireshark_linux_example_adb.png | ||
| usrsock.rst | ||
| uvc.rst | ||
| video.rst | ||
| wireless.rst | ||