63 lines
1.8 KiB
C
63 lines
1.8 KiB
C
|
/*
|
|||
|
* @Author: mbw
|
|||
|
* @Date: 2024-08-19 10:10:06
|
|||
|
* @LastEditors: mbw && 1600520629@qq.com
|
|||
|
* @LastEditTime: 2024-08-22 14:55:12
|
|||
|
* @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c
|
|||
|
* @Description:
|
|||
|
*
|
|||
|
* Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
|||
|
*/
|
|||
|
/************************************************************************************************/
|
|||
|
/**
|
|||
|
* @file main.c
|
|||
|
* @author MCU Ecosystem Development Team
|
|||
|
* @brief Ӧ<EFBFBD>ó<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̡<EFBFBD>
|
|||
|
*
|
|||
|
*
|
|||
|
**************************************************************************************************
|
|||
|
* @attention
|
|||
|
* Copyright (c) CEC Huada Electronic Design Co.,Ltd. All rights reserved.
|
|||
|
*
|
|||
|
**************************************************************************************************
|
|||
|
*/
|
|||
|
|
|||
|
/*------------------------------------------includes--------------------------------------------*/
|
|||
|
|
|||
|
#include "rtthread.h"
|
|||
|
#include "drv_uart.h"
|
|||
|
|
|||
|
|
|||
|
#define LOG_TAG "main"
|
|||
|
#define LOG_LVL LOG_LVL_DBG
|
|||
|
#include <ulog.h>
|
|||
|
|
|||
|
/*--------------------------------------------variables-----------------------------------------*/
|
|||
|
#define LED1_PIN GPIO_PIN_14
|
|||
|
#define LED1_GPIO_PORT GPIOB
|
|||
|
#define LED1_TOGGLE() std_gpio_toggle_pin(LED1_GPIO_PORT, LED1_PIN)
|
|||
|
/*-------------------------------------------functions------------------------------------------*/
|
|||
|
|
|||
|
int main(void)
|
|||
|
{
|
|||
|
LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
|||
|
LOG_D("test CIU32 L051 RT-Thread!\r\n");
|
|||
|
LOG_W("test CIU32 L051 RT-Thread!\r\n");
|
|||
|
|
|||
|
UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
|
|||
|
|
|||
|
while (1)
|
|||
|
{
|
|||
|
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
|
|||
|
rt_thread_mdelay(10000);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
|
|||
|
void System_Reset(void)
|
|||
|
{
|
|||
|
NVIC_SystemReset(); // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
|
|||
|
}
|
|||
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> msh <20><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD> */
|
|||
|
MSH_CMD_EXPORT(System_Reset, System_Reset);
|