563d11f8cd
修改文件头信息 修改ACM32F030 BSP的文件格式 新增BSP驱动中的lib文件 IAR和GCC支持备份 1. 修复不能包含HAL_EFLASH.h问题, 2. 消除GCC编译的几个警告 1. gcc启动文件重命名;2. 文件头信息修改; 3. 硬件timer支持修改 移动 .ignore_format.yml到bsp的目录下 修改目录成相对目录
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2021-08-23 AisinoChip the first version
|
|
*/
|
|
|
|
#include <rthw.h>
|
|
#include <rtthread.h>
|
|
#include "board.h"
|
|
|
|
/*******************************************************************************
|
|
* Function Name : assert_failed
|
|
* Description : Reports the name of the source file and the source line number
|
|
* where the assert error has occurred.
|
|
* Input : - file: pointer to the source file name
|
|
* - line: assert error line source number
|
|
* Output : None
|
|
* Return : None
|
|
*******************************************************************************/
|
|
|
|
void assert_failed(uint8_t *file, uint32_t line)
|
|
{
|
|
rt_kprintf("\n\r Wrong parameter value detected on\r\n");
|
|
rt_kprintf(" file %s\r\n", file);
|
|
rt_kprintf(" line %d\r\n", line);
|
|
|
|
while (1) ;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
rt_hw_led_init();
|
|
while(1)
|
|
{
|
|
rt_hw_led_on(0);
|
|
rt_thread_delay(RT_TICK_PER_SECOND/2);
|
|
rt_hw_led_off(0);
|
|
rt_thread_delay(RT_TICK_PER_SECOND/2);
|
|
}
|
|
}
|
|
|