I just saw that sdcc 3.0.0 has been released and remembered something
that I've been meaning to do for a long time. Is anyone interested in
free header files with register definitions for the Cypress EZ-USB and
A lot of header files with different licenses were floating around on
the internet, some versions seemed to be from cypress themselves, some
from the keil compiler, and some from the USRP project, and most of them
with rather unclear license. So I was reluctant to use any of them for
my projects, especially since I wanted to reuse my hobby project for
some commercial stuff for my employer.
So, I basically did a clean room implementation of the header files. I
read through the Cypress documentation and based on that wrote a Python
program to generate EZ-USB and FX2 register definition header files.
then I compared the generated header files with the existing ones from
cypress, keil and USRP and tried to make my header files at least
somewhat compatible with them, or document where and why my header files
differed from them.
The script to generate the header files can be found at:
(And I've noticed that my spelling in the header comments is awful, I
really do know how to spell "definitions", I just didn't manage to do it
back then :-)
And a bit more documentation about my project at:
The current license for the header files is a MIT license, I wanted the
header files to be usable for any purpose, commercial or not, but if you
want to relicense the headers under GPL+LE, that's quite fine with me.