/**************************************************************************** * Copyright: (C)2018 Î人ÁèÔÆÎïÍøÖÇ¿ÆÊµÑéÊÒ www.iot-yun.com * Author: GuoWenxue QQ: 281143292 * Description: ·Ü¶·STM32v5¿ª·¢°å ´®¿ÚʹÓóÌÐò * * ChangeLog: * °æ±¾ºÅ ÈÕÆÚ ×÷Õß ËµÃ÷ * V1.0.0 2018.05.11 GuoWenxue ·¢²¼¸Ã°æ±¾ ****************************************************************************/ #include #include "stm32f10x.h" #include "stm32v5_led.h" #include "stm32v5_usart.h" #include "stm32v5_systick.h" int main(void) { uint32_t start_time; init_led_gpio(); init_dbg_uart(USART_PORT1, 115200); init_systick(); printf("Systick programe start running\n\n"); while(1) { turn_led(LED1, ON); start_time = jiffies; while( time_before(jiffies, start_time+10) ) printf("*"); turn_led(LED1, OFF); printf("\njiffies[ %010u ==> ", jiffies); msleep(1000); printf("%010u ]\n\n", jiffies); } }