#include "mcc_generated_files/mcc.h" void processButtonTouch(enum mtouch_button_names button) { } void processButtonRelease(enum mtouch_button_names button) { } void processSliderPressed(enum mtouch_slider_names slider) { } void processSliderRelease() { } void processSliderPositionChange(enum mtouch_slider_names slider) { } /* Main application */ void main(void) { // initialize the device SYSTEM_Initialize(); // When using interrupts, you need to set the Global and Peripheral Interrupt Enable bits // Use the following macros to: // Enable the Global Interrupts INTERRUPT_GlobalInterruptEnable(); // Enable the Peripheral Interrupts INTERRUPT_PeripheralInterruptEnable(); // Disable the Global Interrupts //INTERRUPT_GlobalInterruptDisable(); // Disable the Peripheral Interrupts //INTERRUPT_PeripheralInterruptDisable(); MTOUCH_Button_SetPressedCallback(processButtonTouch); MTOUCH_Button_SetNotPressedCallback(processButtonRelease); MTOUCH_Slider_SetPressedCallback(processSliderPressed); MTOUCH_Slider_SetPositionChangedCallback(processSliderPositionChange); MTOUCH_Slider_SetReleasedCallback(processSliderRelease); while (1) { // Add your application code MTOUCH_Service_Mainloop(); } }