Robot-firmware is a project mainly written in ..., it's free.
Firmware used in microcontroller
Firmware to provide USB HID support on PIC 18f2455 You'll need jallib-pack-bee to compile