diff --git a/.vscode/ipch/413505fefa786156/TASK.ipch b/.vscode/ipch/413505fefa786156/TASK.ipch new file mode 100644 index 0000000..9b223f1 Binary files /dev/null and b/.vscode/ipch/413505fefa786156/TASK.ipch differ diff --git a/.vscode/ipch/413505fefa786156/mmap_address.bin b/.vscode/ipch/413505fefa786156/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/413505fefa786156/mmap_address.bin differ diff --git a/.vscode/ipch/492e2bcfcadb622c/STM32F4XX_IT.ipch b/.vscode/ipch/492e2bcfcadb622c/STM32F4XX_IT.ipch new file mode 100644 index 0000000..cd5b464 Binary files /dev/null and b/.vscode/ipch/492e2bcfcadb622c/STM32F4XX_IT.ipch differ diff --git a/.vscode/ipch/492e2bcfcadb622c/mmap_address.bin b/.vscode/ipch/492e2bcfcadb622c/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/492e2bcfcadb622c/mmap_address.bin differ diff --git a/.vscode/ipch/68dce2bc9e36deda/mmap_address.bin b/.vscode/ipch/68dce2bc9e36deda/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/68dce2bc9e36deda/mmap_address.bin differ diff --git a/.vscode/ipch/795ba1913d342780/QUEUE.ipch b/.vscode/ipch/795ba1913d342780/QUEUE.ipch new file mode 100644 index 0000000..6f9e58f Binary files /dev/null and b/.vscode/ipch/795ba1913d342780/QUEUE.ipch differ diff --git a/.vscode/ipch/795ba1913d342780/mmap_address.bin b/.vscode/ipch/795ba1913d342780/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/795ba1913d342780/mmap_address.bin differ diff --git a/.vscode/ipch/a281c2cef98b28b/HASH.ipch b/.vscode/ipch/a281c2cef98b28b/HASH.ipch new file mode 100644 index 0000000..dc3952c Binary files /dev/null and b/.vscode/ipch/a281c2cef98b28b/HASH.ipch differ diff --git a/.vscode/ipch/a281c2cef98b28b/mmap_address.bin b/.vscode/ipch/a281c2cef98b28b/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/a281c2cef98b28b/mmap_address.bin differ diff --git a/.vscode/ipch/bc8d0a4ee43bb5c7/UART.ipch b/.vscode/ipch/bc8d0a4ee43bb5c7/UART.ipch new file mode 100644 index 0000000..d0d1bae Binary files /dev/null and b/.vscode/ipch/bc8d0a4ee43bb5c7/UART.ipch differ diff --git a/.vscode/ipch/bc8d0a4ee43bb5c7/mmap_address.bin b/.vscode/ipch/bc8d0a4ee43bb5c7/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/bc8d0a4ee43bb5c7/mmap_address.bin differ diff --git a/.vscode/ipch/d124d2473e24b407/mmap_address.bin b/.vscode/ipch/d124d2473e24b407/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/d124d2473e24b407/mmap_address.bin differ diff --git a/.vscode/ipch/d3a59eb8223e849e/MAIN.ipch b/.vscode/ipch/d3a59eb8223e849e/MAIN.ipch new file mode 100644 index 0000000..40f54b7 Binary files /dev/null and b/.vscode/ipch/d3a59eb8223e849e/MAIN.ipch differ diff --git a/.vscode/ipch/d3a59eb8223e849e/mmap_address.bin b/.vscode/ipch/d3a59eb8223e849e/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/d3a59eb8223e849e/mmap_address.bin differ diff --git a/.vscode/ipch/e703c5b1bf8b9228/GPIO.ipch b/.vscode/ipch/e703c5b1bf8b9228/GPIO.ipch new file mode 100644 index 0000000..58b4efd Binary files /dev/null and b/.vscode/ipch/e703c5b1bf8b9228/GPIO.ipch differ diff --git a/.vscode/ipch/e703c5b1bf8b9228/mmap_address.bin b/.vscode/ipch/e703c5b1bf8b9228/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/e703c5b1bf8b9228/mmap_address.bin differ diff --git a/.vscode/ipch/fd506e2e935eca54/mmap_address.bin b/.vscode/ipch/fd506e2e935eca54/mmap_address.bin new file mode 100644 index 0000000..862b842 Binary files /dev/null and b/.vscode/ipch/fd506e2e935eca54/mmap_address.bin differ diff --git a/Src/main.c b/Src/main.c index e307bc3..ace28e5 100644 --- a/Src/main.c +++ b/Src/main.c @@ -48,6 +48,10 @@ void SystemClock_Config(void); +//LI-FI data +uint8_t rx3_data; +uint8_t tx_data[5]="hello"; + int main(void) { int tag; @@ -63,9 +67,19 @@ int main(void) integ_mac_init(); - + printf("$ "); while(1) { + + +/////////////LI-FI////////////////////////// +//send "HELLO from huart5 to huart3" +/* + HAL_UART_Transmit(&huart5,tx_data,5,1000); + HAL_Delay(1000); +*/ +//////////////Li-FI///////////////////////// + __disable_interrupt(); tag = task_delete(&task); __enable_interrupt(); @@ -79,6 +93,18 @@ int main(void) * @brief System Clock Configuration * @retval None */ + + //LI-FI callback function + /* + void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) +{ + if(huart->Instance ==USART3) + { + HAL_UART_Receive_IT(&huart3,&rx3_data,5); + HAL_UART_Transmit(&huart3,&rx3_data,5,10); + } +} +*/ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; diff --git "a/Src/\354\204\240\353\257\274.txt" "b/Src/\354\204\240\353\257\274.txt" new file mode 100644 index 0000000..ffde547 --- /dev/null +++ "b/Src/\354\204\240\353\257\274.txt" @@ -0,0 +1 @@ +sdfsdf \ No newline at end of file