[Fx2lib-devel] GPIF conversion script
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2009-01-29 19:36:31
|
I just pushed a script that converts the gpif designer output to a state usable by sdcc and the fx2lib library functions. fx2lib/utils/gpif2dat usage: gpif2dat <gpif designer exported c> <save file name> example: gpif2dat gpif.c gpif_dat.c Create a rel file from the data file: sdcc -c gpif_dat.c Then, in your firmware, you can make reference to the variables: extern const char WaveData[]; etc. And use the gpif functions from fx2lib gpif_init(WaveData,InitData); And then compile your firmware sdcc firmware.c gpif_dat.rel I haven't yet added a gpif example to fx2lib yet because I haven't thought of a good example to add. The ez-usb development board doesn't have a device connected to the gpif and everyone elses boards have extremely custom gpif waveforms. Hope this makes things more convenient though. I use these commands within a makefile so that I don't have to do anything manually after I export the gpif code from the designer. Just a side note: the gpif designer works very well under Wine on Linux. -Dennis |