Skip to content

Commit f906aba

Browse files
pcw-mesaandypugh
authored andcommitted
Add preliminary 7I96S support
1 parent 2f1fd78 commit f906aba

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

docs/man/man9/hm2_eth.9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ hm2_eth is a device driver that interfaces Mesa's ethernet
4646
based Anything I/O boards (with the HostMot2 firmware) to the LinuxCNC
4747
HAL.
4848

49-
The supported boards are: 7i76E, 7I80DB, 7I80HD, 7i92, 7i93, 7i96.
49+
The supported boards are: 7I76E, 7I80DB, 7I80HD, 7I92, 7I93, 7I94, 7I95, 7I96, 7I96S, 7I97, 7I98.
5050

5151
The board must have its hardware loaded on the board by the mesaflash(1) program.
5252

src/hal/drivers/mesa-hostmot2/hm2_eth.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,29 @@ static int hm2_eth_probe(hm2_eth_t *board) {
12381238
board->llio.fpga_part_number = "6slx9tqg144";
12391239
board->llio.num_leds = 4;
12401240

1241+
} else if (strncmp(board_name, "7I96S", 8) == 0) {
1242+
strncpy(llio_name, board_name, 8);
1243+
llio_name[1] = tolower(llio_name[1]);
1244+
llio_name[4] = tolower(llio_name[4]);
1245+
board->llio.num_ioport_connectors = 3;
1246+
board->llio.pins_per_connector = 17;
1247+
board->llio.io_connector_pin_names = hm2_7i96_pin_names;
1248+
1249+
// DB25, 17 pins used, IO 34 to IO 50
1250+
board->llio.ioport_connector_name[0] = "P1";
1251+
1252+
// terminal block, 8 pins used, Step & Dir 0-3
1253+
board->llio.ioport_connector_name[1] = "TB1";
1254+
1255+
// terminal block, 7 pins used, Step & Dir 4, Enc A, B, Z, serial Rx/Tx, Spindle Analog
1256+
board->llio.ioport_connector_name[2] = "TB2";
1257+
1258+
// terminal block, 11 inputs, 6 SSR outputs
1259+
board->llio.ioport_connector_name[3] = "TB3";
1260+
1261+
board->llio.fpga_part_number = "t20f256";
1262+
board->llio.num_leds = 4;
1263+
12411264
} else if (strncmp(board_name, "7I97", 8) == 0) {
12421265
strncpy(llio_name, board_name, 8);
12431266
llio_name[1] = tolower(llio_name[1]);

0 commit comments

Comments
 (0)