Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
andypugh committed Oct 15, 2019
2 parents a9980b2 + b6304e2 commit c2c4838
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/hal/drivers/mesa_uart.comp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Note that no spaces are allowed in the string unless it is delimited by double
quotes.

The UART instance names are printed to the dmesg buffer during the Hostmot2
setup sequence, one for each bspi instance included in the bitfile loaded to
setup sequence, one for each UART instance included in the bitfile loaded to
each installed card during the Hostmot2 setup sequence. Type "dmesg" at the
terminal prompt to view the output.

Expand All @@ -30,8 +30,8 @@ The above example will output data on UART channels 0 and 7 and the pins will
have the names of the individual UARTS. (they need not be on the same card, or
even the same bus).

Read the documents on "comp" for help with writing realtime components:
http://www.linuxcnc.org/docview/html/hal/comp.html""";
Read the documents on "halcompile" for help with writing realtime components:
http://linuxcnc.org/docs/html/hal/comp.html""";

author "Andy Pugh [email protected]";
license "GPL";
Expand Down Expand Up @@ -90,7 +90,8 @@ EXTRA_SETUP(){ // the names parameters are passed in 'prefix'. You just have to
"parameter, see man mesa_uart for details\n");
return -1;
}
name = prefix;
name = hal_malloc(strlen(prefix)+1);
strcpy(name, prefix);
// 250000bps, no delay, tx enable)
hm2_uart_setup(name, 250000, 0x40, -1);
return 0;
Expand Down

0 comments on commit c2c4838

Please sign in to comment.