[Fx2lib-devel] Firmware Frameworks and IIC generation
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2009-04-10 20:46:58
|
The examples in the fx2lib directory are fine and dandy for learning and getting started, but there is still quite a lot of code to get together when writing a real firmware. I decided to go the same route the Cypress did with their Keil Uv2 frameworks and provide a framework example that one can easily extend to build their own firmware. Today I committed a new directory: fx2lib/fw. Therein, you'll find fw.c, which shouldn't need modification and device.c, which you add your own code to. dscr.a51, which all you may or may not need to customize to get your own USB descriptors. Features: Sleep, Resume USB commands (config descritors, get/set feature etc) Easily add your own vendor commands. I also added a python script for generating iic files for loading on eeprom images. I originally borrowed the script from gnuradio but then enhanced it to be generic for any ihx file and also to compress the iic output the same way the Cypress utility does it. (This makes a big difference if you want to fit your image on a smaller prom!). Anyhow, enjoy. I committed a number of other enhancements and minor changes in the last few days too. You can look at the changelog on github: http://github.com/mulicheng/fx2lib/commits/master You can |