/* main function 
, V1.0.0, firmware for GD32F1x0(x=3,5) , V2.0.0, firmware for GD32F1x0(x=3,5,7,9) , V3.0.0, firmware update for GD32F1x0(x=3,5,7,9) */
int main(void)
/* main function 
, V1.0.0, firmware for GD32F1x0(x=3,5) , V2.0.0, firmware for GD32F1x0(x=3,5,7,9) , V3.0.0, firmware update for GD32F1x0(x=3,5,7,9) */
int main(void)
{
    systick_config();
    gd_eval_ledinit(LED1);
    gd_eval_keyinit(KEY_TAMPER,KEY_MODE_GPIO);
    while(1){
        if(RESET == gd_eval_keygetstate(KEY_TAMPER)){
            delay_1ms(100);
            if(RESET == gd_eval_keygetstate(KEY_TAMPER)){
                gd_eval_ledtoggle(LED1);
            }
        }
    }
}