flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
cli_cmds.c File Reference
#include "cli_cmds.h"
#include <string.h>
#include "clock_utils.h"
#include "logging.h"
#include "profiles.h"
#include "ptp_core.h"
#include "ptp_profile_presets.h"
#include "ptp_types.h"
#include "settings_interface.h"

Go to the source code of this file.

Macros

#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 

Functions

void ptp_register_cli_commands ()
 
void ptp_remove_cli_commands ()
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

Definition at line 23 of file cli_cmds.c.

◆ MIN

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 17 of file cli_cmds.c.

Function Documentation

◆ ptp_register_cli_commands()

void ptp_register_cli_commands ( )

Register flexPTP CLI commands. CLI_REG_CMD must be defined and operational to make this work.

Definition at line 353 of file cli_cmds.c.

◆ ptp_remove_cli_commands()

void ptp_remove_cli_commands ( )

Remove flexPTP CLI commands.

Definition at line 376 of file cli_cmds.c.