mkoval / hax

Hardware Abstraction for VEX is a C hardware abstraction layer for the VEX Robotics PIC18 and ARM Cortex M3 micrcontrollers. See the Wiki for a more detailed overview and for a guide to get started.
http://ieee.rutgers.edu/content/hax
6 stars 8 forks source link

SDCC PIC Support #9

Open mkoval opened 14 years ago

mkoval commented 14 years ago

To avoid using Wine and nasty wrapper scripts, the PIC code should be modified so it is SDCC compatible. This would move all of the build tools to native *nix programs and greatly reduce the chance of running into obscure errors.

mkoval commented 14 years ago

I have successfully installed SDCC and am curious how extensive our changes will be. I would like to avoid using OpenVex since it is under the GPL license and most of our code should not be tied to MCC18.

codyps commented 14 years ago

we'll need to implement some of the mcc18 hardware libraries (to set up spi and usart) interrupt paragmas probably need changing.

mkoval commented 14 years ago

Updating the interrupt pragmas should be relatively straightforward. Hopefully the SPI and USART initialization is a great deal simpler on the PIC than on the ARM (it should be).

mkoval commented 14 years ago

I nuked auto-depend support for the PIC architecture until we make the switch to SDCC. It was never fully functional and some of our recent changes broke it on HAX system headers.

codyps commented 14 years ago

I've started to run up against the library issue (spi, uasrt, adc, and delay) in my develop branch. Other things appear fine.