ports/cad/linuxcnc-devel/files/patch-src_hal_drivers_hal__ppmc.c
Edward Tomasz Napierala a6e3152224 LinuxCNC controls CNC machines. It can drive milling machines,
lathes, 3d printers, laser cutters, plasma cutters, robot arms,
hexapods, and more.

- Accepts G-code input, drives CNC machines in response.
- Active user community.
- Several different GUIs available.
- Compatible with many popular machine control hardware interfaces.
- Supports rigid tapping, cutter compensation, and many other advanced
  control features.

WARNING: This port is simulation-only for now.

WWW: http://linuxcnc.org/
2016-07-13 09:18:47 +00:00

17 lines
481 B
C

--- src/hal/drivers/hal_ppmc.c.orig 2016-06-25 02:19:12 UTC
+++ src/hal/drivers/hal_ppmc.c
@@ -81,6 +81,9 @@
MODULE_AUTHOR("John Kasunich");
MODULE_DESCRIPTION("HAL driver for Universal PWM Controller");
MODULE_LICENSE("GPL");
+
+#ifdef __linux__
+
int port_addr[MAX_BUS] = { 0x378, [1 ... MAX_BUS-1] = -1 };
/* default, 1 bus at 0x0378 */
hal_parport_t port_registration[MAX_BUS];
@@ -2428,3 +2431,4 @@ static void WrtMore(unsigned char byte,
return;
}
+#endif