AXIS: EMC2 Blog
Blog
About AXIS
Get EMC2
Documentation
Translations
ETCH CNC
Developer Homepages:
Chris Radek
Jeff Epler
Related sites:
linuxcnc.org
linuxcnc wiki

« image-to-gcode improvements | Newest entries | comp 0.2: A tool to write HAL boilerplate »

When writing HAL modules, a large amount of boilerplate code is required to register the pins, parameters, and functions. comp (working name) is a tool to automatically generate that code.

Here is one of the simplest useful components that can be created with comp:

    component charge_pump;
    option singleton yes;
    pin out bit w;
    function update nofp;
    ;;
    MODULE_LICENSE("GPL");
    FUNCTION(update) { out = !out; }

it simply creates a bit which is toggled each time its update function is called, and can be connected to the 'charge pump' watchdog pin of the PDMX-121 and similar breakout boards.

(See 'README' inside link for more information)

Files currently attached to this page:

comp-0.1.tar.bz26.2kB



Entry first conceived on 4 September 2006, 3:08 UTC, last modified on 4 September 2006, 3:14 UTC



Copyright © 2004-2009 Jeff Epler
[æ]