summaryrefslogtreecommitdiff
path: root/bsp/rm48x50
diff options
context:
space:
mode:
authoryangjie <[email protected]>2021-04-09 10:52:34 +0800
committeryangjie <[email protected]>2021-04-09 10:52:34 +0800
commit75e4c9dd0a065f8a5a548a4f557277a48d6e3c24 (patch)
treec403c732d79bac61d5defba1ed996d2d0bfb1a4d /bsp/rm48x50
parent31cb379daeaeda2b1d4dba7670a90ea59e115ac8 (diff)
[bsp]update GPL license to Apache-2.0, and format files
Diffstat (limited to 'bsp/rm48x50')
-rw-r--r--bsp/rm48x50/application/startup.c66
1 files changed, 31 insertions, 35 deletions
diff --git a/bsp/rm48x50/application/startup.c b/bsp/rm48x50/application/startup.c
index 40b69e2c95..a49c9f1810 100644
--- a/bsp/rm48x50/application/startup.c
+++ b/bsp/rm48x50/application/startup.c
@@ -1,11 +1,7 @@
/*
- * File : startup.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006-2013, RT-Thread Develop Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -75,21 +71,21 @@ void rtthread_startup(void)
*rt_hw_cpu_dcache_enable();
*/
- /* init hardware interrupt */
- rt_hw_interrupt_init();
+ /* init hardware interrupt */
+ rt_hw_interrupt_init();
- /* init board */
- rt_hw_board_init();
+ /* init board */
+ rt_hw_board_init();
- rt_show_version();
+ rt_show_version();
- /* init timer system */
- rt_system_timer_init();
+ /* init timer system */
+ rt_system_timer_init();
- /* init memory system */
+ /* init memory system */
#ifdef RT_USING_HEAP
#ifdef __CC_ARM
- rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)MEMEND);
+ rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)MEMEND);
#elif defined(__GNUC__)
rt_system_heap_init((void*)&__bss_end, (void*)MEMEND);
#elif defined(__TI_COMPILER_VERSION__)
@@ -99,40 +95,40 @@ void rtthread_startup(void)
#endif
#endif
- /* init scheduler system */
- rt_system_scheduler_init();
+ /* init scheduler system */
+ rt_system_scheduler_init();
- /* init application */
- rt_application_init();
+ /* init application */
+ rt_application_init();
#ifdef RT_USING_FINSH
- /* init finsh */
- finsh_system_init();
- finsh_set_device("sci2");
+ /* init finsh */
+ finsh_system_init();
+ finsh_set_device("sci2");
#endif
- /* init soft timer thread */
- rt_system_timer_thread_init();
+ /* init soft timer thread */
+ rt_system_timer_thread_init();
- /* init idle thread */
- rt_thread_idle_init();
+ /* init idle thread */
+ rt_thread_idle_init();
- /* start scheduler */
- rt_system_scheduler_start();
+ /* start scheduler */
+ rt_system_scheduler_start();
- /* never reach here */
- return ;
+ /* never reach here */
+ return ;
}
int main(void)
{
- /* disable interrupt first */
- rt_hw_interrupt_disable();
+ /* disable interrupt first */
+ rt_hw_interrupt_disable();
- /* invoke rtthread_startup */
- rtthread_startup();
+ /* invoke rtthread_startup */
+ rtthread_startup();
- return 0;
+ return 0;
}
/*@}*/