From e8e11e82bd02e63ebc167b69fc3e585a99d78276 Mon Sep 17 00:00:00 2001
From: guanjiao ren <guanjiao.ren@ninebot.com>
Date: 星期五, 18 五月 2018 23:10:57 +0800
Subject: [PATCH] 蜂鸣器、led、spi、systick调试完成

---
 源码/核心板/Src/main.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
index 0100b5a..8d90fc3 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
@@ -26,6 +26,7 @@
 #include "Spi.h"
 #include "dw_driver.h"
 #include "led.h"
+#include "beep.h"
 
 /* Example application name and version to display on LCD screen. */
 #define APP_NAME "DS TWR INIT v1.1"
@@ -210,18 +211,27 @@
 uint32_t rec_dist, hex_dist;
 uint16_t check;
 
+uint8_t tempaaaa[5] = {0};
+
 void Device_Init(void)
 {
 	Rcc_Init();
 	Nvic_Init();
 	Systick_Init();
 	Led_Init();
+	Beep_Init();
 	DW_GPIO_Init();
 	Usart_Init();
 	Spi_Init();
 	
 	GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
-	
+	while(1)
+	{
+		dwt_readsystime(tempaaaa);
+		delay_ms(500);
+//		dwt_readsystime(&tempb);
+//		delay_ms(500);
+	}
 }
 
 int main(void)

--
Gitblit v1.9.3