An operating system for the eZ8 microcontroller