Mikroelektronika has a series of compilers, including Pascal and C with very good libraries for most of the stuff you'll need, such as CompactFlash, USB, LCD and etc.
It's not free, but the free version has enough juice to allow you do to most of the basic stuff.