From: richardbarry Date: Sat, 7 May 2011 18:29:53 +0000 (+0000) Subject: Complete the Keil full FM3 demo. X-Git-Tag: V7.0.1~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=211ff0856eed8539af547e3d422c39348bf4aff4;p=freertos Complete the Keil full FM3 demo. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1417 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvopt b/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvopt index 31aec00d7..fc3f48421 100644 --- a/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvopt +++ b/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvopt @@ -24,6 +24,197 @@ Blinky 0x4 ARM-ADS + + 4000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 0 + + 255 + + + 0 + Data Sheet + DATASHTS\FUJITSU\MB9BF500NR-DS.pdf + + + 1 + User Manual + DATASHTS\FUJITSU\MB9Bxxx-MN.pdf + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 0 + 0 + 1 + + + + + + + + + + + BIN\UL2CM3.DLL + + + + 0 + DLGTARM + (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0) + + + 0 + ARMDBGFLAGS + + + + 0 + DLGUARM + (105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(107=-1,-1,-1,-1,0) + + + 0 + UL2CM3 + -UM1129BUE -O207 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000 + + + + + 1 + 0 + 0 + + + + + 2 + 0 + 0 + + + + + 3 + 0 + 0xaa8 + + + + + 4 + 0 + 0x40000000 + + + + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + Full + 0x4 + ARM-ADS 4000000 @@ -211,14 +402,205 @@ + + Full_with_optimisation + 0x4 + ARM-ADS + + 4000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 0 + + 255 + + + 0 + Data Sheet + DATASHTS\FUJITSU\MB9BF500NR-DS.pdf + + + 1 + User Manual + DATASHTS\FUJITSU\MB9Bxxx-MN.pdf + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 0 + 0 + 1 + + + + + + + + + + + BIN\UL2CM3.DLL + + + + 0 + DLGTARM + (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0) + + + 0 + ARMDBGFLAGS + + + + 0 + DLGUARM + (105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(107=-1,-1,-1,-1,0) + + + 0 + UL2CM3 + -UM1129BUE -O207 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000 + + + + + 1 + 0 + 0 + + + + + 2 + 0 + 0 + + + + + 3 + 0 + 0xaa8 + + + + + 4 + 0 + 0x40000000 + + + + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + Fujitsu Source - 1 + 0 0 0 - 0 - 0 + 1 + 1 1 0 0 @@ -231,8 +613,8 @@ system_mb9bf50x.c - 0 - 0 + 1 + 2 1 0 0 @@ -245,8 +627,8 @@ core_cm3.c - 0 - 0 + 1 + 3 2 0 0 @@ -266,8 +648,8 @@ 0 0 - 0 - 0 + 2 + 4 1 0 0 @@ -280,8 +662,8 @@ TimerDemo.c - 0 - 0 + 2 + 5 1 0 0 @@ -294,8 +676,8 @@ BlockQ.c - 0 - 0 + 2 + 6 1 0 0 @@ -308,8 +690,8 @@ blocktim.c - 0 - 0 + 2 + 7 1 0 0 @@ -322,8 +704,8 @@ comtest.c - 0 - 0 + 2 + 8 1 0 0 @@ -336,8 +718,8 @@ countsem.c - 0 - 0 + 2 + 9 1 0 0 @@ -350,22 +732,22 @@ death.c - 0 - 0 + 2 + 10 1 0 0 0 0 - 0 - 0 + 360 + 369 0 ..\Common\Minimal\dynamic.c dynamic.c - 0 - 0 + 2 + 11 1 0 0 @@ -378,22 +760,22 @@ flash.c - 0 - 0 + 2 + 12 1 0 0 0 0 - 0 - 0 + 285 + 294 0 ..\Common\Minimal\GenQTest.c GenQTest.c - 0 - 0 + 2 + 13 1 0 0 @@ -406,8 +788,8 @@ PollQ.c - 0 - 0 + 2 + 14 1 0 0 @@ -420,8 +802,8 @@ QPeek.c - 0 - 0 + 2 + 15 1 0 0 @@ -434,8 +816,8 @@ recmutex.c - 0 - 0 + 2 + 16 1 0 0 @@ -455,8 +837,8 @@ 0 0 - 0 - 0 + 3 + 17 1 0 0 @@ -469,8 +851,8 @@ timers.c - 0 - 0 + 3 + 18 1 0 0 @@ -483,8 +865,8 @@ list.c - 0 - 0 + 3 + 19 1 0 0 @@ -497,8 +879,8 @@ queue.c - 0 - 0 + 3 + 20 1 0 0 @@ -511,22 +893,22 @@ tasks.c - 0 - 0 + 3 + 21 1 0 0 0 0 - 0 - 0 + 191 + 200 0 ..\..\Source\portable\RVDS\ARM_CM3\port.c port.c - 0 - 0 + 3 + 22 1 0 0 @@ -542,54 +924,54 @@ Demo_Source - 1 + 0 0 0 - 0 - 0 + 4 + 23 1 0 0 - 0 + 9 0 - 0 - 0 + 36 + 62 0 .\serial.c serial.c - 0 - 0 + 4 + 24 1 0 0 0 0 - 161 - 170 + 58 + 58 0 .\main_blinky.c main_blinky.c - 0 - 0 + 4 + 25 1 0 0 - 0 + 19 0 - 0 - 0 + 56 + 56 0 .\main-full.c main-full.c - 0 - 0 + 4 + 26 1 0 0 @@ -608,19 +990,19 @@ 0 100 - 1 + 0 .\main_blinky.c 0 - 161 - 170 + 58 + 58 - ..\..\Source\tasks.c - 0 - 1975 - 1984 + .\main-full.c + 19 + 56 + 56 diff --git a/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvproj b/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvproj index 5a545356c..1df538c09 100644 --- a/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvproj +++ b/Demo/CORTEX_MB9B500_IAR_Keil/RTOSDemo_Keil.uvproj @@ -706,6 +706,1484 @@ + + Full + 0x4 + ARM-ADS + + + MB9BF506N + Fujitsu Semiconductors + IRAM(0x20000000-0x20007FFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) + 5215 + MB9BF506N.h + + + + + + + + + + + 0 + + + + Fujitsu\MB9B500\ + Fujitsu\MB9B500\ + + 0 + 0 + 0 + 0 + 1 + + .\output\ + RTOSDemo_Keil + 1 + 0 + 0 + 1 + 1 + .\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + 0 + 1 + + + + + + + + + + + + + + BIN\UL2CM3.DLL + + + + + 1 + 0 + 0 + 1 + 1 + 4096 + + BIN\UL2CM3.DLL + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 1 + 0x0 + 0x80000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x80000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff8000 + 0x10000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 4 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + ..\CORTEX_MB9B500_IAR_Keil;.\Fujitu_source;..\Common\include;..\..\Source\include;..\..\Source\portable\RVDS\ARM_CM3 + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x20000000 + + + + + + + + + + + + Fujitsu Source + + + system_mb9bf50x.c + 1 + .\Fujitu_source\system_mb9bf50x.c + + + core_cm3.c + 1 + .\Fujitu_source\core_cm3.c + + + startup_mb9bf50x.s + 2 + .\Fujitu_source\startup_keil\startup_mb9bf50x.s + + + + + Common_Demo_Source + + + 0 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + TimerDemo.c + 1 + ..\Common\Minimal\TimerDemo.c + + + BlockQ.c + 1 + ..\Common\Minimal\BlockQ.c + + + blocktim.c + 1 + ..\Common\Minimal\blocktim.c + + + comtest.c + 1 + ..\Common\Minimal\comtest.c + + + countsem.c + 1 + ..\Common\Minimal\countsem.c + + + death.c + 1 + ..\Common\Minimal\death.c + + + dynamic.c + 1 + ..\Common\Minimal\dynamic.c + + + flash.c + 1 + ..\Common\Minimal\flash.c + + + GenQTest.c + 1 + ..\Common\Minimal\GenQTest.c + + + PollQ.c + 1 + ..\Common\Minimal\PollQ.c + + + QPeek.c + 1 + ..\Common\Minimal\QPeek.c + + + recmutex.c + 1 + ..\Common\Minimal\recmutex.c + + + semtest.c + 1 + ..\Common\Minimal\semtest.c + + + + + FreeRTOS_Source + + + timers.c + 1 + ..\..\Source\timers.c + + + list.c + 1 + ..\..\Source\list.c + + + queue.c + 1 + ..\..\Source\queue.c + + + tasks.c + 1 + ..\..\Source\tasks.c + + + port.c + 1 + ..\..\Source\portable\RVDS\ARM_CM3\port.c + + + heap_2.c + 1 + ..\..\Source\portable\MemMang\heap_2.c + + + + + Demo_Source + + + serial.c + 1 + .\serial.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + main_blinky.c + 1 + .\main_blinky.c + + + 2 + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + main-full.c + 1 + .\main-full.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + ParTest.c + 1 + .\ParTest.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + + + + + Full_with_optimisation + 0x4 + ARM-ADS + + + MB9BF506N + Fujitsu Semiconductors + IRAM(0x20000000-0x20007FFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) + 5215 + MB9BF506N.h + + + + + + + + + + + 0 + + + + Fujitsu\MB9B500\ + Fujitsu\MB9B500\ + + 0 + 0 + 0 + 0 + 1 + + .\output\ + RTOSDemo_Keil + 1 + 0 + 0 + 1 + 1 + .\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + 0 + 1 + + + + + + + + + + + + + + BIN\UL2CM3.DLL + + + + + 1 + 0 + 0 + 1 + 1 + 4096 + + BIN\UL2CM3.DLL + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 1 + 0x0 + 0x80000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x80000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff8000 + 0x10000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + ..\CORTEX_MB9B500_IAR_Keil;.\Fujitu_source;..\Common\include;..\..\Source\include;..\..\Source\portable\RVDS\ARM_CM3 + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x20000000 + + + + + + + + + + + + Fujitsu Source + + + system_mb9bf50x.c + 1 + .\Fujitu_source\system_mb9bf50x.c + + + core_cm3.c + 1 + .\Fujitu_source\core_cm3.c + + + startup_mb9bf50x.s + 2 + .\Fujitu_source\startup_keil\startup_mb9bf50x.s + + + + + Common_Demo_Source + + + 0 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + TimerDemo.c + 1 + ..\Common\Minimal\TimerDemo.c + + + BlockQ.c + 1 + ..\Common\Minimal\BlockQ.c + + + blocktim.c + 1 + ..\Common\Minimal\blocktim.c + + + comtest.c + 1 + ..\Common\Minimal\comtest.c + + + countsem.c + 1 + ..\Common\Minimal\countsem.c + + + death.c + 1 + ..\Common\Minimal\death.c + + + dynamic.c + 1 + ..\Common\Minimal\dynamic.c + + + flash.c + 1 + ..\Common\Minimal\flash.c + + + GenQTest.c + 1 + ..\Common\Minimal\GenQTest.c + + + PollQ.c + 1 + ..\Common\Minimal\PollQ.c + + + QPeek.c + 1 + ..\Common\Minimal\QPeek.c + + + recmutex.c + 1 + ..\Common\Minimal\recmutex.c + + + semtest.c + 1 + ..\Common\Minimal\semtest.c + + + + + FreeRTOS_Source + + + timers.c + 1 + ..\..\Source\timers.c + + + list.c + 1 + ..\..\Source\list.c + + + queue.c + 1 + ..\..\Source\queue.c + + + tasks.c + 1 + ..\..\Source\tasks.c + + + port.c + 1 + ..\..\Source\portable\RVDS\ARM_CM3\port.c + + + heap_2.c + 1 + ..\..\Source\portable\MemMang\heap_2.c + + + + + Demo_Source + + + serial.c + 1 + .\serial.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + main_blinky.c + 1 + .\main_blinky.c + + + 2 + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + main-full.c + 1 + .\main-full.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + ParTest.c + 1 + .\ParTest.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + + + + + + + + + + + + + + diff --git a/Demo/CORTEX_MB9B500_IAR_Keil/serial.c b/Demo/CORTEX_MB9B500_IAR_Keil/serial.c index 389bb9ed8..57658f26e 100644 --- a/Demo/CORTEX_MB9B500_IAR_Keil/serial.c +++ b/Demo/CORTEX_MB9B500_IAR_Keil/serial.c @@ -59,7 +59,7 @@ is done to demonstrate queues being used in an interrupt, and to deliberately load the system to test the FreeRTOS port. It is *NOT* meant to be an example of an efficient implementation. An efficient implementation should - use FIFO's or DMA if available, and only use FreeRTOS API functions when + use FIFOs or DMA if available, and only use FreeRTOS API functions when enough has been received to warrant a task being unblocked to process the data. */ @@ -106,8 +106,6 @@ static xQueueHandle xCharsForTx; */ xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength ) { -xComPortHandle xReturn; - /* Create the queues used to hold Rx/Tx characters. */ xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) ); xCharsForTx = xQueueCreate( uxQueueLength + 1, ( unsigned portBASE_TYPE ) sizeof( signed char ) ); @@ -159,14 +157,10 @@ xComPortHandle xReturn; are called in the interrupt handler. */ NVIC_SetPriority( MFS0TX_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); } - else - { - xReturn = ( xComPortHandle ) 0; - } /* This demo file only supports a single port but we have to return something to comply with the standard demo header file. */ - return xReturn; + return ( xComPortHandle ) 0; } /*-----------------------------------------------------------*/