summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2014-08-18 15:19:06 +0800
committerGrissiom <[email protected]>2014-08-18 15:19:06 +0800
commit39ac8baeac378b802f63b583a2a7dee040c561ed (patch)
treee43ebdffa4db5e88cd2a0d487ec3ba47da60bf81
parentbfc140826a1301746ccf8a63b3596112a1d5cb83 (diff)
ls1bdev: format code in startup.c
-rw-r--r--bsp/ls1bdev/applications/startup.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/bsp/ls1bdev/applications/startup.c b/bsp/ls1bdev/applications/startup.c
index 215ed398e4..bfd8214027 100644
--- a/bsp/ls1bdev/applications/startup.c
+++ b/bsp/ls1bdev/applications/startup.c
@@ -38,49 +38,49 @@ extern void irq_exception(void);
*/
void rtthread_startup(void)
{
- /* disable interrupt first */
- rt_hw_interrupt_disable();
+ /* disable interrupt first */
+ rt_hw_interrupt_disable();
- /* init cache */
- rt_hw_cache_init();
- /* init hardware interrupt */
- rt_hw_interrupt_init();
+ /* init cache */
+ rt_hw_cache_init();
+ /* init hardware interrupt */
+ rt_hw_interrupt_init();
- /* copy vector */
- memcpy((void *)A_K0BASE, tlb_refill_exception, 0x20);
- memcpy((void *)(A_K0BASE + 0x180), general_exception, 0x20);
- memcpy((void *)(A_K0BASE + 0x200), irq_exception, 0x20);
+ /* copy vector */
+ rt_memcpy((void *)A_K0BASE, tlb_refill_exception, 0x20);
+ rt_memcpy((void *)(A_K0BASE + 0x180), general_exception, 0x20);
+ rt_memcpy((void *)(A_K0BASE + 0x200), irq_exception, 0x20);
- /* init board */
- rt_hw_board_init();
+ /* init board */
+ rt_hw_board_init();
- /* show version */
- rt_show_version();
+ /* show version */
+ rt_show_version();
#ifdef RT_USING_HEAP
- rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END);
+ rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END);
#endif
- /* init scheduler system */
- rt_system_scheduler_init();
+ /* init scheduler system */
+ rt_system_scheduler_init();
/* initialize timer */
rt_system_timer_init();
- /* initialize timer thread */
- rt_system_timer_thread_init();
+ /* initialize timer thread */
+ rt_system_timer_thread_init();
- /* init idle thread */
- rt_thread_idle_init();
+ /* init idle thread */
+ rt_thread_idle_init();
- /* init application */
- rt_application_init();
+ /* init application */
+ rt_application_init();
- /* start scheduler */
- rt_system_scheduler_start();
+ /* start scheduler */
+ rt_system_scheduler_start();
- /* never reach here */
- return;
+ /* never reach here */
+ return;
}
/*@}*/