Skip to content

Commit

Permalink
Board amcfoc: added amcfoc2c (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoaccame authored Dec 19, 2024
1 parent 8d6d723 commit 4d47f6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions can/canProtocolLib/iCubCanProto_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ extern "C" {
#define ICUBCANPROTO_BOARDTYPE__AMC2C 21
#define ICUBCANPROTO_BOARDTYPE__STRAIN2C 22
#define ICUBCANPROTO_BOARDTYPE__BAT 23
#define ICUBCANPROTO_BOARDTYPE__AMCFOC2C 24
#define ICUBCANPROTO_BOARDTYPE__UNKNOWN 255

// skin types
Expand Down
1 change: 1 addition & 0 deletions eth/embobj/plus/comm-v2/icub/EoBoards.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ static const eOmap_str_str_u08_t s_eoboards_map_of_boards[] =
{"amc2c", "eobrd_amc2c", eobrd_amc2c},
{"strain2c", "eobrd_strain2c", eobrd_strain2c},
{"bat", "eobrd_bat", eobrd_bat},
{"amcfoc2c", "eobrd_amcfoc2c", eobrd_amcfoc2c},

{"none", "eobrd_none", eobrd_none},
{"unknown", "eobrd_unknown", eobrd_unknown}
Expand Down
6 changes: 4 additions & 2 deletions eth/embobj/plus/comm-v2/icub/EoBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ typedef enum
eobrd_cantype_amc2c = ICUBCANPROTO_BOARDTYPE__AMC2C, // 21 (amc2c)
eobrd_cantype_strain2c = ICUBCANPROTO_BOARDTYPE__STRAIN2C, // 22 (strain2c)
eobrd_cantype_bat = ICUBCANPROTO_BOARDTYPE__BAT, // 23 (bat)
eobrd_cantype_amcfoc2c = ICUBCANPROTO_BOARDTYPE__AMCFOC2C, // 24 (amcfoc2c)
eobrd_cantype_none = 254,
eobrd_cantype_unknown = ICUBCANPROTO_BOARDTYPE__UNKNOWN // 255
} eObrd_cantype_t;

enum { eobrd_cantype_numberof = 24 };
enum { eobrd_cantype_numberof = 25 };


typedef enum
Expand Down Expand Up @@ -140,13 +141,14 @@ typedef enum
eobrd_amc2c = eobrd_cantype_amc2c,
eobrd_strain2c = eobrd_cantype_strain2c,
eobrd_bat = eobrd_cantype_bat,
eobrd_amcfoc2c = eobrd_cantype_amcfoc2c,


eobrd_none = 254,
eobrd_unknown = 255 // = ICUBCANPROTO_BOARDTYPE__UNKNOWN
} eObrd_type_t;

enum { eobrd_type_numberof = 29 };
enum { eobrd_type_numberof = 30 };


typedef struct
Expand Down

0 comments on commit 4d47f6b

Please sign in to comment.