First, pardon if this isn't the right forum; should that be a case, I'd appreciate a push in the correct direction.
I'm trying to use the excellent CSS->SDCC migration kit found at http://particle.teco.edu/software/sdcc/sdccmigration.html to port a GPLed Dallas One-Wire implementation over to SDCC. I'm having some problems, however, on account of macros defined within the migration kit appearing to be inconsistent -- and I don't know enough about behavior of the CSS API to decide what to do about it. A representative snippet from the migration kit's compat.h follows: > #define output_bit3(port, pin, value) do {LAT##port##bits.LAT##port##pin = > value; set_mode_##port(FALSE, pin); } while(0) > #define output_bit2(pin, value) output_bit3(pin, value) > #define output_bit(dest, value) output_bit2(PIN(dest),value) So -- output_bit2(pin,value) just calls output_bit3 with the exact same parameters. As output_bit3() requires a port argument, however, we have a problem: > onewire.c:44:4: macro "output_bit3" requires 3 arguments, but only 2 given > onewire.c:46:4: macro "output_float_set" requires 2 arguments, but only 1 > given > onewire.c:48:9: macro "input_from_pin2" requires 2 arguments, but only 1 given ...and so forth along that line. Hints, anyone? I'm hoping folks here have familiarity with the toolkit, since the web page covering it doesn't provide contact info. That said, pointers to alternate implementations of these CSS-provided macros would be similarly welcome. :) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
