generated from hulk/gd32e23x_template
完成LED、RS485、IIC初始化部分代码。
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -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");
|
||||
|
Reference in New Issue
Block a user