Skip to content

Commit

Permalink
FAP reading for mtb4 and mtb4c (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoaccame authored Feb 24, 2023
1 parent 141b0ab commit d605dbb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 3.12)

project(icub_firmware_shared
VERSION 1.31.0)
VERSION 1.32.0)

find_package(YCM 0.11.0 REQUIRED)

Expand Down
10 changes: 10 additions & 0 deletions eth/embobj/plus/comm-v2/icub/EoBoards.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ static const eOmap_str_str_u08_u08_u08_t s_eoboards_map_of_ports[] =
{"mtb4fap_J3_SDA2", "eobrd_port_mtb4fap_J3_SDA2", eobrd_port_mtb4fap_J3_SDA2, eobrd_mtb4fap, eobrd_conn_J3_SDA2},
{"mtb4fap_J3_SDA3", "eobrd_port_mtb4fap_J3_SDA3", eobrd_port_mtb4fap_J3_SDA3, eobrd_mtb4fap, eobrd_conn_J3_SDA3},

{"mtb4_J3_SDA0", "eobrd_port_mtb4_J3_SDA0", eobrd_port_mtb4_J3_SDA0, eobrd_mtb4, eobrd_conn_J3_SDA0},
{"mtb4_J3_SDA1", "eobrd_port_mtb4_J3_SDA1", eobrd_port_mtb4_J3_SDA1, eobrd_mtb4, eobrd_conn_J3_SDA1},
{"mtb4_J3_SDA2", "eobrd_port_mtb4_J3_SDA2", eobrd_port_mtb4_J3_SDA2, eobrd_mtb4, eobrd_conn_J3_SDA2},
{"mtb4_J3_SDA3", "eobrd_port_mtb4_J3_SDA3", eobrd_port_mtb4_J3_SDA3, eobrd_mtb4, eobrd_conn_J3_SDA3},

{"mtb4c_J3_SDA0", "eobrd_port_mtb4c_J3_SDA0", eobrd_port_mtb4c_J3_SDA0, eobrd_mtb4c, eobrd_conn_J3_SDA0},
{"mtb4c_J3_SDA1", "eobrd_port_mtb4c_J3_SDA1", eobrd_port_mtb4c_J3_SDA1, eobrd_mtb4c, eobrd_conn_J3_SDA1},
{"mtb4c_J3_SDA2", "eobrd_port_mtb4c_J3_SDA2", eobrd_port_mtb4c_J3_SDA2, eobrd_mtb4c, eobrd_conn_J3_SDA2},
{"mtb4c_J3_SDA3", "eobrd_port_mtb4c_J3_SDA3", eobrd_port_mtb4c_J3_SDA3, eobrd_mtb4c, eobrd_conn_J3_SDA3},

{"pmc_J4", "eobrd_port_pmc_J4", eobrd_port_pmc_J4, eobrd_pmc, eobrd_conn_J4},
{"pmc_J5", "eobrd_port_pmc_J5", eobrd_port_pmc_J5, eobrd_pmc, eobrd_conn_J5},
{"pmc_J6", "eobrd_port_pmc_J6", eobrd_port_pmc_J6, eobrd_pmc, eobrd_conn_J6},
Expand Down
12 changes: 11 additions & 1 deletion eth/embobj/plus/comm-v2/icub/EoBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,16 @@ typedef enum
eobrd_port_mtb4fap_J3_SDA1 = 1,
eobrd_port_mtb4fap_J3_SDA2 = 2,
eobrd_port_mtb4fap_J3_SDA3 = 3,

eobrd_port_mtb4_J3_SDA0 = 0,
eobrd_port_mtb4_J3_SDA1 = 1,
eobrd_port_mtb4_J3_SDA2 = 2,
eobrd_port_mtb4_J3_SDA3 = 3,

eobrd_port_mtb4c_J3_SDA0 = 0,
eobrd_port_mtb4c_J3_SDA1 = 1,
eobrd_port_mtb4c_J3_SDA2 = 2,
eobrd_port_mtb4c_J3_SDA3 = 3,

eobrd_port_pmc_J4 = 0, // I2C1
eobrd_port_pmc_J5 = 1, // I2C2
Expand All @@ -357,7 +367,7 @@ typedef enum

} eObrd_port_t;

enum { eobrd_ports_numberof = 27 };
enum { eobrd_ports_numberof = 35 };


typedef enum
Expand Down

0 comments on commit d605dbb

Please sign in to comment.