完成LED、RS485、IIC初始化部分代码。

This commit is contained in:
2024-12-03 20:04:03 +08:00
parent 2d7e6fb6e4
commit 828721759d
8 changed files with 227 additions and 4 deletions

View File

@@ -12,6 +12,9 @@
#include "peripheral.h"
#include "RS485.h"
#include "LDC1612.h"
/*!
\brief main function
\param[in] none
@@ -22,11 +25,13 @@ int main(void)
{
/* configure systick */
systick_config();
usart_config();
led_blink_config();
RS485_config();
led_config();
delay_ms(5000);
printf("system start!\r\n");
printf("\r\n");
printf("XLSW-3DP-LDC1612! V0.0.1\r\n");
printf("\r\n");
while(1){
printf("hello world!\r\n");