#include "mcc_generated_files/mcc.h"

void processButtonTouch(enum mtouch_button_names button)
{
}

void processButtonRelease(enum mtouch_button_names button)
{
}

void processProximityActivate(enum mtouch_proximity_names prox)
{
}

void processProximityNotActivate(enum mtouch_proximity_names prox)
{
}

/*
                         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_Proximity_SetActivatedCallback(processProximityActivate);
    MTOUCH_Proximity_SetNotActivatedCallback(processProximityNotActivate);

    while (1)
    {
        // Add your application code
        MTOUCH_Service_Mainloop();
    }
}