siy
The cs3.h is a part of standard binary distribution which, I guess, you should have installed already.
AFAIK CodeSourcery/Mentor do not provide a standard binary distribution of Sourcery_G++_Lite for Mac OS X. Is there a place to retrieve one? I just install Maple, and it comes with a minimal gcc & binutils.
Are you saying the STM32Fxx standard peripheral library is ugly, or provides a good abstraction layer?
I have only looked at a few parts of the STM32F peripheral library.
I think it is pretty ugly.
While the functions appear to provide a stable API across STM32F devices, there isn't much of an abstraction.
For example the GPIO functions take structs which appear to change depending on which STM32Fx device is used. So the family leaks out into the user code. Hence, IMHO, it provides very little abstraction.
I dislike naming conventions which suffix type names with "TypeDef", or "Struct". The sort of modern IDE hardcore engineers use will tell you the definition of a name anyway. My era was initial capital for types/classes or "_t".
I like things that have sensible, working defaults, which require minimal code to get right.
But, I think it might be practical to put a thin 'veneer' over those libraries to make them more approachable.