A simple operating system for MSP430 microcontrollers