From 2a9e893c79f4ede3e893059551e415e1597312df Mon Sep 17 00:00:00 2001 From: Grissiom Date: Mon, 21 Oct 2013 00:31:10 +0800 Subject: initialize timer in bsp With new timer algorithm, timer should be initialized during startup. So add them to the bsps. Use these commands to get which bsp is missing calling the function: % git grep rt_system_timer_init bsp|sed -n 's|bsp/\([^/]*\).*|\1|p' | sort | uniq > have_tm_init % ls -1 bsp |sed -n 's|\([^/]*\).*|\1|p' | sort > all_bsp % comm -3 all_bsp have_tm_init beaglebone lpc176x lpc178x ls1bdev mb9bf506r stm32f10x xplorer4330 --- bsp/ls1bdev/applications/startup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bsp/ls1bdev') diff --git a/bsp/ls1bdev/applications/startup.c b/bsp/ls1bdev/applications/startup.c index 2fdfa700ba..e73900485d 100644 --- a/bsp/ls1bdev/applications/startup.c +++ b/bsp/ls1bdev/applications/startup.c @@ -72,6 +72,9 @@ void rtthread_startup(void) /* init application */ rt_application_init(); + /* initialize timer */ + rt_system_timer_init(); + /* initialize timer thread */ rt_system_timer_thread_init(); -- cgit v1.3.1