Skip to content

Commit 5195c48

Browse files
author
Daniel Udd
committed
Remove duplicated defines
These defines are in co_sdo.h.
1 parent a230742 commit 5195c48

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/co_sdo_server.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,6 @@
2828

2929
#include <inttypes.h>
3030

31-
#define CO_SDO_xCS(v) ((v)&0xE0)
32-
#define CO_SDO_N(v) (((v) >> 2) & 0x03)
33-
#define CO_SDO_E BIT (1)
34-
#define CO_SDO_S BIT (0)
35-
36-
#define CO_SDO_CCS_DOWNLOAD_SEG_REQ (0 << 5)
37-
#define CO_SDO_CCS_DOWNLOAD_INIT_REQ (1 << 5)
38-
#define CO_SDO_CCS_UPLOAD_INIT_REQ (2 << 5)
39-
#define CO_SDO_CCS_UPLOAD_SEG_REQ (3 << 5)
40-
41-
#define CO_SDO_SCS_UPLOAD_SEG_RSP (0 << 5)
42-
#define CO_SDO_SCS_DOWNLOAD_SEG_RSP (1 << 5)
43-
#define CO_SDO_SCS_UPLOAD_INIT_RSP (2 << 5)
44-
#define CO_SDO_SCS_DOWNLOAD_INIT_RSP (3 << 5)
45-
46-
#define CO_SDO_xCS_ABORT (4 << 5)
47-
48-
#define CO_SDO_TOGGLE BIT (4)
49-
#define CO_SDO_N_SEG(v) (((v) >> 1) & 0x07)
50-
#define CO_SDO_C BIT (0)
51-
5231
void co_sdo_abort (
5332
co_net_t * net,
5433
uint16_t id,

0 commit comments

Comments
 (0)