flexPTP
1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
critical.h
Go to the documentation of this file.
1
#ifndef FLEXPTP_CRITICAL
2
#define FLEXPTP_CRITICAL
3
4
#include "
ptp_types.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#ifdef FLEXPTP_FREERTOS
11
#define FLEXPTP_ENTER_CRITICAL() taskENTER_CRITICAL();
12
#elif defined(FLEXPTP_CMSIS_OS2)
13
#define FLEXPTP_ENTER_CRITICAL() __disable_interrupts();
14
#endif
15
16
#ifdef FLEXPTP_FREERTOS
17
#define FLEXPTP_LEAVE_CRITICAL() taskEXIT_CRITICAL();
18
#elif defined(FLEXPTP_CMSIS_OS2)
19
#define FLEXPTP_LEAVE_CRITICAL() __enable_interrupts();
20
#endif
21
22
#ifdef __cplusplus
23
}
24
#endif
25
26
#endif
/* FLEXPTP_CRITICAL */
ptp_types.h
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
src
flexptp
critical.h
Generated by
1.9.6