/* Before you start, select your target, on the right of the "Load" button */
void BUTTON1_EventHandler(TM_BUTTON_PressType_t type)
/* Before you start, select your target, on the right of the "Load" button */
void BUTTON1_EventHandler(TM_BUTTON_PressType_t type)
{
		TM_USART_Puts(USART2, "Button 1 onPressed\n");
	} else if (type == TM_BUTTON_PressType_Normal) {
		TM_USART_Puts(USART2, "Normal press detected on button 1\n");
	} else {
		TM_USART_Puts(USART2, "Long press detected on button 1\n");
	}
}