A lightweight task manager system for MSP430 controllers with drivers