#include "lwip/netif.h"
#include "lwip/tcpip.h"
#include "lwip/udp.h"
#include "lwip/igmp.h"
#include "lwip/pbuf.h"
#include "utils.h"
#include "stm32h7xx_hal.h"
#include <flexptp/servo/pid_controller.h>
#include "cli.h"
Go to the source code of this file.
|
#define | PTP_MAIN_OSCILLATOR_FREQ_HZ (200000000) |
|
#define | PTP_INCREMENT_NSEC (5) |
|
#define | PTP_HW_INIT(increment, addend) ptphw_init(increment, addend) |
|
#define | PTP_UPDATE_CLOCK(s, ns) ETH_UpdatePTPTime(&EthHandle, labs(s), abs(ns), (s * NANO_PREFIX + ns) < 0) |
|
#define | PTP_SET_CLOCK(s, ns) ETH_InitPTPTime(&EthHandle, labs(s), abs(ns)) |
|
#define | PTP_SET_ADDEND(addend) ETH_SetPTPAddend(&EthHandle, addend) |
|
#define | PTP_HW_GET_TIME(pt) ptphw_gettime(pt) |
|
#define | PTP_SERVO_INIT() pd_ctrl_init() |
|
#define | PTP_SERVO_DEINIT() pd_ctrl_deinit() |
|
#define | PTP_SERVO_RESET() pd_ctrl_reset() |
|
#define | PTP_SERVO_RUN(d, pscd) pd_ctrl_run(d,pscd) |
|
#define | CLI_REG_CMD(cmd_hintline, n_cmd, n_min_arg, cb) CLI_REG_CMD(cmd_hintline, n_cmd, n_min_arg, cb) |
|
◆ CLI_REG_CMD
#define CLI_REG_CMD |
( |
|
cmd_hintline, |
|
|
|
n_cmd, |
|
|
|
n_min_arg, |
|
|
|
cb |
|
) |
| CLI_REG_CMD(cmd_hintline, n_cmd, n_min_arg, cb) |
◆ PTP_HW_GET_TIME
◆ PTP_HW_INIT
#define PTP_HW_INIT |
( |
|
increment, |
|
|
|
addend |
|
) |
| ptphw_init(increment, addend) |
◆ PTP_INCREMENT_NSEC
#define PTP_INCREMENT_NSEC (5) |
◆ PTP_MAIN_OSCILLATOR_FREQ_HZ
#define PTP_MAIN_OSCILLATOR_FREQ_HZ (200000000) |
◆ PTP_SERVO_DEINIT
#define PTP_SERVO_DEINIT |
( |
| ) |
pd_ctrl_deinit() |
◆ PTP_SERVO_INIT
#define PTP_SERVO_INIT |
( |
| ) |
pd_ctrl_init() |
◆ PTP_SERVO_RESET
#define PTP_SERVO_RESET |
( |
| ) |
pd_ctrl_reset() |
◆ PTP_SERVO_RUN
#define PTP_SERVO_RUN |
( |
|
d, |
|
|
|
pscd |
|
) |
| pd_ctrl_run(d,pscd) |
◆ PTP_SET_ADDEND
#define PTP_SET_ADDEND |
( |
|
addend | ) |
ETH_SetPTPAddend(&EthHandle, addend) |
◆ PTP_SET_CLOCK
#define PTP_SET_CLOCK |
( |
|
s, |
|
|
|
ns |
|
) |
| ETH_InitPTPTime(&EthHandle, labs(s), abs(ns)) |
◆ PTP_UPDATE_CLOCK
#define PTP_UPDATE_CLOCK |
( |
|
s, |
|
|
|
ns |
|
) |
| ETH_UpdatePTPTime(&EthHandle, labs(s), abs(ns), (s * NANO_PREFIX + ns) < 0) |
◆ EthHandle
ETH_HandleTypeDef EthHandle |
|
extern |