From 2c5cfe4bcf6de5e13a06ec2cbcf4233e1f4cfa28 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Thu, 29 May 2014 12:35:17 +0800 Subject: [PATCH] ls1b: cleanup code --- bsp/ls1bdev/applications/startup.c | 2 +- bsp/ls1bdev/rtconfig.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bsp/ls1bdev/applications/startup.c b/bsp/ls1bdev/applications/startup.c index e73900485d..36ec17e46c 100644 --- a/bsp/ls1bdev/applications/startup.c +++ b/bsp/ls1bdev/applications/startup.c @@ -85,7 +85,7 @@ void rtthread_startup(void) rt_system_scheduler_start(); /* never reach here */ - return ; + return; } /*@}*/ diff --git a/bsp/ls1bdev/rtconfig.py b/bsp/ls1bdev/rtconfig.py index af4c27878c..8373448a37 100644 --- a/bsp/ls1bdev/rtconfig.py +++ b/bsp/ls1bdev/rtconfig.py @@ -13,14 +13,9 @@ if os.getenv('RTT_CC'): if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin' -elif CROSS_TOOL == 'keil': +else: print '================ERROR============================' - print 'Not support keil yet!' - print '=================================================' - exit(0) -elif CROSS_TOOL == 'iar': - print '================ERROR============================' - print 'Not support iar yet!' + print 'Not support %s yet!' % CROSS_TOOL print '=================================================' exit(0)