This is our ADC example ported to FreeRTOS.