mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 10:08:33 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
22
FreeRTOS/Demo/MB96340_Softune/96340_FreeRTOS_96348hs.wsp
Normal file
22
FreeRTOS/Demo/MB96340_Softune/96340_FreeRTOS_96348hs.wsp
Normal file
|
@ -0,0 +1,22 @@
|
|||
[CPUTYPE]
|
||||
CpuSerise=907
|
||||
|
||||
[PrjFile]
|
||||
Count=1
|
||||
FILE-0=FreeRTOS_96348hs_SK16FX100PMC\FreeRTOS_96348hs_SK16FX100PMC.prj
|
||||
ActivePrj=FreeRTOS_96348hs_SK16FX100PMC.prj
|
||||
|
||||
[SubPrj-FreeRTOS_96348hs_SK16FX100PMC.prj]
|
||||
Count=0
|
||||
|
||||
[DebState]
|
||||
AutoSave=1
|
||||
Exec=0
|
||||
AutoLoad=1
|
||||
|
||||
[DirInfo]
|
||||
WSP=C:\E\Dev\FreeRTOS\WorkingCopy2\Demo\MB96340_Softune\
|
||||
|
||||
[EditState]
|
||||
Count=0
|
||||
|
|
@ -0,0 +1,427 @@
|
|||
[Version]
|
||||
DLLVer=02.3005.01.0
|
||||
PRJVer=1
|
||||
|
||||
[PRJKIND]
|
||||
mode=1
|
||||
|
||||
[CPUTYPE]
|
||||
CpuSerise=907
|
||||
|
||||
[DirInfo]
|
||||
PRJ=C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\
|
||||
|
||||
[PrjInfo]
|
||||
Count=1
|
||||
PrjInfo-0=STANDALONE
|
||||
Active=STANDALONE
|
||||
|
||||
[MEMBER]
|
||||
F0=38
|
||||
F1=0 f Source Files
|
||||
F2=0 c Src\Main.c
|
||||
F3=0 a Src\mb96348hs.asm
|
||||
F4=0 * readme.txt
|
||||
F5=0 a Src\Start.asm
|
||||
F6=0 c Src\vectors.c
|
||||
F7=0 f Source Files\watchdog
|
||||
F8=0 c Src\watchdog\watchdog.c
|
||||
F9=0 f Source Files\FreeRTOS Source
|
||||
F10=0 c ..\..\..\Source\croutine.c
|
||||
F11=0 c ..\..\..\Source\list.c
|
||||
F12=0 c ..\..\..\Source\queue.c
|
||||
F13=0 c ..\..\..\Source\tasks.c
|
||||
F14=0 f Source Files\FreeRTOS Source\portable
|
||||
F15=0 c ..\..\..\Source\portable\Softune\MB96340\__STD_LIB_sbrk.c
|
||||
F16=0 c ..\..\..\Source\portable\Softune\MB96340\port.c
|
||||
F17=0 f Source Files\FreeRTOS Source\MemMang
|
||||
F18=0 c ..\..\..\Source\portable\MemMang\heap_3.c
|
||||
F19=0 f Source Files\Demo Source
|
||||
F20=0 c ..\..\Common\Minimal\BlockQ.c
|
||||
F21=0 c ..\..\Common\Minimal\blocktim.c
|
||||
F22=0 c ..\..\Common\Minimal\comtest.c
|
||||
F23=0 c Src\crflash_sk16fx100mpc.c
|
||||
F24=0 c ..\..\Common\Minimal\death.c
|
||||
F25=0 c ..\..\Common\Minimal\dynamic.c
|
||||
F26=0 c ..\..\Common\Minimal\flash.c
|
||||
F27=0 c ..\..\Common\Minimal\GenQTest.c
|
||||
F28=0 c ..\..\Common\Minimal\integer.c
|
||||
F29=0 c ..\..\Common\Minimal\PollQ.c
|
||||
F30=0 c ..\..\Common\Minimal\semtest.c
|
||||
F31=0 f Source Files\Demo Source\partest
|
||||
F32=0 c Src\partest\partest.c
|
||||
F33=0 f Source Files\Demo Source\utility
|
||||
F34=0 c Src\utility\printf_stdarg.c
|
||||
F35=0 c Src\utility\taskutility.c
|
||||
F36=0 f Source Files\Demo Source\serial
|
||||
F37=0 c Src\serial\serial.c
|
||||
F38=0 f Include Files
|
||||
|
||||
[OPTIONFILE]
|
||||
FILE=options.dat
|
||||
|
||||
[CPUTYPE-STANDALONE]
|
||||
CsvFile=Lib\907\907.csv
|
||||
CpuName=MB96F348HSA
|
||||
Count=0
|
||||
|
||||
[DirInfo-STANDALONE]
|
||||
CONFIG=STANDALONE\
|
||||
OBJ=STANDALONE\OBJ\
|
||||
LST=STANDALONE\LST\
|
||||
OPT=STANDALONE\OPT\
|
||||
|
||||
[MEMBER-STANDALONE]
|
||||
F0=28
|
||||
F1=0 m 1 STANDALONE\ABS\FreeRTOS_96348hs_SK16FX100PMC.abs
|
||||
F2=27 c 1 Src\Main.c
|
||||
F2-1=- src\mb96348hs.h
|
||||
F2-2=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F2-3=- ..\..\..\Source\include\projdefs.h
|
||||
F2-4=- ..\..\..\Source\include\portable.h
|
||||
F2-5=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F2-6=- ..\..\..\Source\include\task.h
|
||||
F2-7=- ..\..\..\Source\include\list.h
|
||||
F2-8=- ..\..\..\Source\include\semphr.h
|
||||
F2-9=- ..\..\..\Source\include\queue.h
|
||||
F2-10=- Src\watchdog\watchdog.h
|
||||
F2-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F2-12=- ..\..\Common\include\flash.h
|
||||
F2-13=- ..\..\Common\include\integer.h
|
||||
F2-14=- ..\..\Common\include\comtest2.h
|
||||
F2-15=- ..\..\Common\include\PollQ.h
|
||||
F2-16=- ..\..\Common\include\semtest.h
|
||||
F2-17=- ..\..\Common\include\BlockQ.h
|
||||
F2-18=- ..\..\Common\include\dynamic.h
|
||||
F2-19=- ..\..\Common\include\flop.h
|
||||
F2-20=- ..\..\Common\include\GenQTest.h
|
||||
F2-21=- ..\..\Common\include\QPeek.h
|
||||
F2-22=- ..\..\Common\include\blocktim.h
|
||||
F2-23=- ..\..\Common\include\death.h
|
||||
F2-24=- ..\..\Common\include\partest.h
|
||||
F2-25=- Src\utility\taskutility.h
|
||||
F2-26=- ..\..\Common\include\crflash.h
|
||||
F2-27=- Src\FreeRTOSConfig.h
|
||||
F3=0 a 1 Src\mb96348hs.asm
|
||||
F4=0 a 1 Src\Start.asm
|
||||
F5=2 c 1 Src\vectors.c
|
||||
F5-1=- src\mb96348hs.h
|
||||
F5-2=- Src\FreeRTOSConfig.h
|
||||
F6=9 c 1 ..\..\..\Source\portable\Softune\MB96340\port.c
|
||||
F6-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F6-2=- ..\..\..\Source\include\projdefs.h
|
||||
F6-3=- ..\..\..\Source\include\portable.h
|
||||
F6-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F6-5=- src\mb96348hs.h
|
||||
F6-6=- ..\..\..\Source\include\task.h
|
||||
F6-7=- ..\..\..\Source\include\list.h
|
||||
F6-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F6-9=- Src\FreeRTOSConfig.h
|
||||
F7=10 c 1 ..\..\..\Source\croutine.c
|
||||
F7-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F7-2=- ..\..\..\Source\include\projdefs.h
|
||||
F7-3=- ..\..\..\Source\include\portable.h
|
||||
F7-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F7-5=- ..\..\..\Source\include\task.h
|
||||
F7-6=- ..\..\..\Source\include\list.h
|
||||
F7-7=- ..\..\..\Source\include\croutine.h
|
||||
F7-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F7-9=- src\mb96348hs.h
|
||||
F7-10=- Src\FreeRTOSConfig.h
|
||||
F8=9 c 1 ..\..\..\Source\list.c
|
||||
F8-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F8-2=- ..\..\..\Source\include\projdefs.h
|
||||
F8-3=- ..\..\..\Source\include\portable.h
|
||||
F8-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F8-5=- ..\..\..\Source\include\list.h
|
||||
F8-6=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F8-7=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F8-8=- src\mb96348hs.h
|
||||
F8-9=- Src\FreeRTOSConfig.h
|
||||
F9=12 c 1 ..\..\..\Source\queue.c
|
||||
F9-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F9-2=- ..\..\..\Source\include\projdefs.h
|
||||
F9-3=- ..\..\..\Source\include\portable.h
|
||||
F9-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F9-5=- ..\..\..\Source\include\task.h
|
||||
F9-6=- ..\..\..\Source\include\list.h
|
||||
F9-7=- ..\..\..\Source\include\croutine.h
|
||||
F9-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F9-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F9-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\string.h
|
||||
F9-11=- src\mb96348hs.h
|
||||
F9-12=- Src\FreeRTOSConfig.h
|
||||
F10=14 c 1 ..\..\..\Source\tasks.c
|
||||
F10-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F10-2=- ..\..\..\Source\include\projdefs.h
|
||||
F10-3=- ..\..\..\Source\include\portable.h
|
||||
F10-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F10-5=- ..\..\..\Source\include\task.h
|
||||
F10-6=- ..\..\..\Source\include\list.h
|
||||
F10-7=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdio.h
|
||||
F10-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F10-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdarg.h
|
||||
F10-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F10-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\string.h
|
||||
F10-12=- src\mb96348hs.h
|
||||
F10-13=- Src\FreeRTOSConfig.h
|
||||
F10-14=- ..\..\..\Source\include\StackMacros.h
|
||||
F11=12 c 1 ..\..\Common\Minimal\BlockQ.c
|
||||
F11-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F11-2=- ..\..\..\Source\include\projdefs.h
|
||||
F11-3=- ..\..\..\Source\include\portable.h
|
||||
F11-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F11-5=- ..\..\..\Source\include\task.h
|
||||
F11-6=- ..\..\..\Source\include\list.h
|
||||
F11-7=- ..\..\..\Source\include\queue.h
|
||||
F11-8=- ..\..\Common\include\BlockQ.h
|
||||
F11-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F11-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F11-11=- src\mb96348hs.h
|
||||
F11-12=- Src\FreeRTOSConfig.h
|
||||
F12=11 c 1 ..\..\Common\Minimal\blocktim.c
|
||||
F12-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F12-2=- ..\..\..\Source\include\projdefs.h
|
||||
F12-3=- ..\..\..\Source\include\portable.h
|
||||
F12-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F12-5=- ..\..\..\Source\include\task.h
|
||||
F12-6=- ..\..\..\Source\include\list.h
|
||||
F12-7=- ..\..\..\Source\include\queue.h
|
||||
F12-8=- ..\..\Common\include\blocktim.h
|
||||
F12-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F12-10=- src\mb96348hs.h
|
||||
F12-11=- Src\FreeRTOSConfig.h
|
||||
F13=13 c 1 ..\..\Common\Minimal\comtest.c
|
||||
F13-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F13-2=- ..\..\..\Source\include\projdefs.h
|
||||
F13-3=- ..\..\..\Source\include\portable.h
|
||||
F13-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F13-5=- ..\..\..\Source\include\task.h
|
||||
F13-6=- ..\..\..\Source\include\list.h
|
||||
F13-7=- ..\..\Common\include\serial.h
|
||||
F13-8=- ..\..\Common\include\comtest.h
|
||||
F13-9=- ..\..\Common\include\partest.h
|
||||
F13-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F13-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F13-12=- src\mb96348hs.h
|
||||
F13-13=- Src\FreeRTOSConfig.h
|
||||
F14=11 c 1 ..\..\Common\Minimal\death.c
|
||||
F14-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F14-2=- ..\..\..\Source\include\projdefs.h
|
||||
F14-3=- ..\..\..\Source\include\portable.h
|
||||
F14-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F14-5=- ..\..\..\Source\include\task.h
|
||||
F14-6=- ..\..\..\Source\include\list.h
|
||||
F14-7=- ..\..\Common\include\death.h
|
||||
F14-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F14-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F14-10=- src\mb96348hs.h
|
||||
F14-11=- Src\FreeRTOSConfig.h
|
||||
F15=13 c 1 ..\..\Common\Minimal\dynamic.c
|
||||
F15-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F15-2=- ..\..\..\Source\include\projdefs.h
|
||||
F15-3=- ..\..\..\Source\include\portable.h
|
||||
F15-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F15-5=- ..\..\..\Source\include\task.h
|
||||
F15-6=- ..\..\..\Source\include\list.h
|
||||
F15-7=- ..\..\..\Source\include\semphr.h
|
||||
F15-8=- ..\..\..\Source\include\queue.h
|
||||
F15-9=- ..\..\Common\include\dynamic.h
|
||||
F15-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F15-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F15-12=- src\mb96348hs.h
|
||||
F15-13=- Src\FreeRTOSConfig.h
|
||||
F16=12 c 1 ..\..\Common\Minimal\flash.c
|
||||
F16-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F16-2=- ..\..\..\Source\include\projdefs.h
|
||||
F16-3=- ..\..\..\Source\include\portable.h
|
||||
F16-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F16-5=- ..\..\..\Source\include\task.h
|
||||
F16-6=- ..\..\..\Source\include\list.h
|
||||
F16-7=- ..\..\Common\include\partest.h
|
||||
F16-8=- ..\..\Common\include\flash.h
|
||||
F16-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F16-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F16-11=- src\mb96348hs.h
|
||||
F16-12=- Src\FreeRTOSConfig.h
|
||||
F17=13 c 1 ..\..\Common\Minimal\GenQTest.c
|
||||
F17-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F17-2=- ..\..\..\Source\include\projdefs.h
|
||||
F17-3=- ..\..\..\Source\include\portable.h
|
||||
F17-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F17-5=- ..\..\..\Source\include\task.h
|
||||
F17-6=- ..\..\..\Source\include\list.h
|
||||
F17-7=- ..\..\..\Source\include\queue.h
|
||||
F17-8=- ..\..\..\Source\include\semphr.h
|
||||
F17-9=- ..\..\Common\include\GenQTest.h
|
||||
F17-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F17-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F17-12=- src\mb96348hs.h
|
||||
F17-13=- Src\FreeRTOSConfig.h
|
||||
F18=11 c 1 ..\..\Common\Minimal\integer.c
|
||||
F18-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F18-2=- ..\..\..\Source\include\projdefs.h
|
||||
F18-3=- ..\..\..\Source\include\portable.h
|
||||
F18-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F18-5=- ..\..\..\Source\include\task.h
|
||||
F18-6=- ..\..\..\Source\include\list.h
|
||||
F18-7=- ..\..\Common\include\integer.h
|
||||
F18-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F18-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F18-10=- src\mb96348hs.h
|
||||
F18-11=- Src\FreeRTOSConfig.h
|
||||
F19=12 c 1 ..\..\Common\Minimal\PollQ.c
|
||||
F19-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F19-2=- ..\..\..\Source\include\projdefs.h
|
||||
F19-3=- ..\..\..\Source\include\portable.h
|
||||
F19-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F19-5=- ..\..\..\Source\include\task.h
|
||||
F19-6=- ..\..\..\Source\include\list.h
|
||||
F19-7=- ..\..\..\Source\include\queue.h
|
||||
F19-8=- ..\..\Common\include\PollQ.h
|
||||
F19-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F19-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F19-11=- src\mb96348hs.h
|
||||
F19-12=- Src\FreeRTOSConfig.h
|
||||
F20=13 c 1 ..\..\Common\Minimal\semtest.c
|
||||
F20-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F20-2=- ..\..\..\Source\include\projdefs.h
|
||||
F20-3=- ..\..\..\Source\include\portable.h
|
||||
F20-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F20-5=- ..\..\..\Source\include\task.h
|
||||
F20-6=- ..\..\..\Source\include\list.h
|
||||
F20-7=- ..\..\..\Source\include\semphr.h
|
||||
F20-8=- ..\..\..\Source\include\queue.h
|
||||
F20-9=- ..\..\Common\include\semtest.h
|
||||
F20-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F20-11=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F20-12=- src\mb96348hs.h
|
||||
F20-13=- Src\FreeRTOSConfig.h
|
||||
F21=12 c 1 Src\serial\serial.c
|
||||
F21-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F21-2=- ..\..\..\Source\include\projdefs.h
|
||||
F21-3=- ..\..\..\Source\include\portable.h
|
||||
F21-4=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F21-5=- ..\..\..\Source\include\queue.h
|
||||
F21-6=- ..\..\..\Source\include\task.h
|
||||
F21-7=- ..\..\..\Source\include\list.h
|
||||
F21-8=- ..\..\Common\include\serial.h
|
||||
F21-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F21-10=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F21-11=- src\mb96348hs.h
|
||||
F21-12=- Src\FreeRTOSConfig.h
|
||||
F22=10 c 1 Src\watchdog\watchdog.c
|
||||
F22-1=- src\mb96348hs.h
|
||||
F22-2=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F22-3=- ..\..\..\Source\include\projdefs.h
|
||||
F22-4=- ..\..\..\Source\include\portable.h
|
||||
F22-5=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F22-6=- ..\..\..\Source\include\task.h
|
||||
F22-7=- ..\..\..\Source\include\list.h
|
||||
F22-8=- Src\watchdog\watchdog.h
|
||||
F22-9=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F22-10=- Src\FreeRTOSConfig.h
|
||||
F23=10 c 1 Src\utility\taskutility.c
|
||||
F23-1=- src\mb96348hs.h
|
||||
F23-2=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F23-3=- ..\..\..\Source\include\projdefs.h
|
||||
F23-4=- ..\..\..\Source\include\portable.h
|
||||
F23-5=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F23-6=- ..\..\..\Source\include\task.h
|
||||
F23-7=- ..\..\..\Source\include\list.h
|
||||
F23-8=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F23-9=- Src\FreeRTOSConfig.h
|
||||
F23-10=- ..\..\..\Source\include\queue.h
|
||||
F24=12 c 1 Src\crflash_sk16fx100mpc.c
|
||||
F24-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F24-2=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F24-3=- ..\..\..\Source\include\projdefs.h
|
||||
F24-4=- ..\..\..\Source\include\portable.h
|
||||
F24-5=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F24-6=- ..\..\..\Source\include\croutine.h
|
||||
F24-7=- ..\..\..\Source\include\list.h
|
||||
F24-8=- ..\..\..\Source\include\queue.h
|
||||
F24-9=- ..\..\Common\include\partest.h
|
||||
F24-10=- ..\..\Common\include\crflash.h
|
||||
F24-11=- src\mb96348hs.h
|
||||
F24-12=- Src\FreeRTOSConfig.h
|
||||
F25=9 c 1 Src\partest\partest.c
|
||||
F25-1=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F25-2=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F25-3=- ..\..\..\Source\include\projdefs.h
|
||||
F25-4=- ..\..\..\Source\include\portable.h
|
||||
F25-5=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F25-6=- src\mb96348hs.h
|
||||
F25-7=- ..\..\..\Source\include\task.h
|
||||
F25-8=- ..\..\..\Source\include\list.h
|
||||
F25-9=- Src\FreeRTOSConfig.h
|
||||
F26=1 c 1 Src\utility\printf_stdarg.c
|
||||
F26-1=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdarg.h
|
||||
F27=4 c 1 ..\..\..\Source\portable\Softune\MB96340\__STD_LIB_sbrk.c
|
||||
F27-1=- Src\FreeRTOSConfig.h
|
||||
F27-2=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F27-3=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F27-4=- src\mb96348hs.h
|
||||
F28=10 c 1 ..\..\..\Source\portable\MemMang\heap_3.c
|
||||
F28-1=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stdlib.h
|
||||
F28-2=- ..\..\..\..\..\..\..\devtools\Softune\LIB\907\INCLUDE\stddef.h
|
||||
F28-3=- ..\..\..\Source\include\FreeRTOS.h
|
||||
F28-4=- ..\..\..\Source\include\projdefs.h
|
||||
F28-5=- Src\FreeRTOSConfig.h
|
||||
F28-6=- ..\..\..\Source\include\portable.h
|
||||
F28-7=- ..\..\..\Source\portable\Softune\MB96340\portmacro.h
|
||||
F28-8=- src\mb96348hs.h
|
||||
F28-9=- ..\..\..\Source\include\task.h
|
||||
F28-10=- ..\..\..\Source\include\list.h
|
||||
|
||||
[BUILDMODE-STANDALONE]
|
||||
kernel=1
|
||||
ABI=0
|
||||
|
||||
[RUNSET-STANDALONE]
|
||||
CONVERT=1
|
||||
CONVERTKIND=0
|
||||
|
||||
[DebState-STANDALONE]
|
||||
SupCount=1
|
||||
Supfile-0=STANDALONE\FreeRTOS_96348hs_SK16FX100PMC.sup
|
||||
Current=FreeRTOS_96348hs_SK16FX100PMC.sup
|
||||
AliasFile=
|
||||
CPURunMode=16,16,16,16,0,1,0x0:0x0,,0,0xFF
|
||||
|
||||
[AsmBefore]
|
||||
Count=0
|
||||
|
||||
[AsmAfter]
|
||||
Count=0
|
||||
|
||||
[CcBefore]
|
||||
Count=0
|
||||
|
||||
[CcAfter]
|
||||
Count=0
|
||||
|
||||
[LnkBefore]
|
||||
Count=0
|
||||
|
||||
[LnkAfter]
|
||||
Count=0
|
||||
|
||||
[LibBefore]
|
||||
Count=0
|
||||
|
||||
[LibAfter]
|
||||
Count=0
|
||||
|
||||
[CnvBefore]
|
||||
Count=0
|
||||
|
||||
[CnvAfter]
|
||||
Count=0
|
||||
|
||||
[ConfigBefore]
|
||||
Count=0
|
||||
|
||||
[ConfigAfter]
|
||||
Count=0
|
||||
|
|
@ -0,0 +1,325 @@
|
|||
# Simulator only:
|
||||
# Copy ROM-mirror area to bank 0x00
|
||||
|
||||
if %EVAL(ROMM_CONFIG & 0x01) == 0x01
|
||||
|
||||
set variable ROMM_BANK = %EVAL(ROMM_CONFIG >> 4)
|
||||
set variable ROMM_SIZE = %EVAL((ROMM_CONFIG >> 1) & 0x03)
|
||||
|
||||
print "\n\n>Set ROM-mirror memory map...\n"
|
||||
|
||||
|
||||
if %ROMM_SIZE == 0
|
||||
set map /read H'00E000..H'00FFFF
|
||||
|
||||
if %ROMM_BANK == 0x00
|
||||
show map
|
||||
move H'f0e000..H'F0FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x01
|
||||
show map
|
||||
move H'f1e000..H'F1FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x02
|
||||
show map
|
||||
move H'f2e000..H'F2FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x03
|
||||
show map
|
||||
move H'f3e000..H'F3FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x04
|
||||
show map
|
||||
move H'f4e000..H'F4FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x05
|
||||
show map
|
||||
move H'f5e000..H'F5FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x06
|
||||
show map
|
||||
move H'f6e000..H'F6FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x07
|
||||
show map
|
||||
move H'f7e000..H'F7FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x08
|
||||
show map
|
||||
move H'f8e000..H'F8FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x09
|
||||
show map
|
||||
move H'f9e000..H'F9FFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0A
|
||||
show map
|
||||
move H'fAe000..H'FAFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBe000..H'FBFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBe000..H'FBFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0C
|
||||
show map
|
||||
move H'fCe000..H'FCFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0D
|
||||
show map
|
||||
move H'fde000..H'FDFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0E
|
||||
show map
|
||||
move H'fee000..H'FEFFFF,H'e000
|
||||
|
||||
elseif %ROMM_BANK == 0x0F
|
||||
show map
|
||||
move H'ffe000..H'FFFFFF,H'e000
|
||||
|
||||
endif # ROMM_BANK selection
|
||||
|
||||
elseif %ROMM_SIZE == 1
|
||||
set map /read H'00C000..H'00FFFF
|
||||
|
||||
if %ROMM_BANK == 0x00
|
||||
show map
|
||||
move H'f0c000..H'F0FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x01
|
||||
show map
|
||||
move H'f1c000..H'F1FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x02
|
||||
show map
|
||||
move H'f2c000..H'F2FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x03
|
||||
show map
|
||||
move H'f3c000..H'F3FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x04
|
||||
show map
|
||||
move H'f4c000..H'F4FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x05
|
||||
show map
|
||||
move H'f5c000..H'F5FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x06
|
||||
show map
|
||||
move H'f6c000..H'F6FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x07
|
||||
show map
|
||||
move H'f7c000..H'F7FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x08
|
||||
show map
|
||||
move H'f8c000..H'F8FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x09
|
||||
show map
|
||||
move H'f9c000..H'F9FFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0A
|
||||
show map
|
||||
move H'fAc000..H'FAFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBc000..H'FBFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBc000..H'FBFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0C
|
||||
show map
|
||||
move H'fCc000..H'FCFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0D
|
||||
show map
|
||||
move H'fdc000..H'FDFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0E
|
||||
show map
|
||||
move H'fec000..H'FEFFFF,H'c000
|
||||
|
||||
elseif %ROMM_BANK == 0x0F
|
||||
show map
|
||||
move H'ffc000..H'FFFFFF,H'c000
|
||||
|
||||
endif # ROMM_BANK selection
|
||||
|
||||
elseif %ROMM_SIZE == 2
|
||||
set map /read H'00A000..H'00FFFF
|
||||
|
||||
if %ROMM_BANK == 0x00
|
||||
show map
|
||||
move H'f0a000..H'F0FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x01
|
||||
show map
|
||||
move H'f1a000..H'F1FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x02
|
||||
show map
|
||||
move H'f2a000..H'F2FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x03
|
||||
show map
|
||||
move H'f3a000..H'F3FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x04
|
||||
show map
|
||||
move H'f4a000..H'F4FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x05
|
||||
show map
|
||||
move H'f5a000..H'F5FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x06
|
||||
show map
|
||||
move H'f6a000..H'F6FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x07
|
||||
show map
|
||||
move H'f7a000..H'F7FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x08
|
||||
show map
|
||||
move H'f8a000..H'F8FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x09
|
||||
show map
|
||||
move H'f9a000..H'F9FFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0A
|
||||
show map
|
||||
move H'fAa000..H'FAFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBa000..H'FBFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fBa000..H'FBFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0C
|
||||
show map
|
||||
move H'fCa000..H'FCFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0D
|
||||
show map
|
||||
move H'fda000..H'FDFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0E
|
||||
show map
|
||||
move H'fea000..H'FEFFFF,H'a000
|
||||
|
||||
elseif %ROMM_BANK == 0x0F
|
||||
show map
|
||||
move H'ffa000..H'FFFFFF,H'a000
|
||||
|
||||
endif # ROMM_BANK selection
|
||||
|
||||
elseif %ROMM_SIZE == 3
|
||||
set map /read H'008000..H'00FFFF
|
||||
|
||||
if %ROMM_BANK == 0x00
|
||||
show map
|
||||
move H'f08000..H'F0FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x01
|
||||
show map
|
||||
move H'f18000..H'F1FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x02
|
||||
show map
|
||||
move H'f28000..H'F2FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x03
|
||||
show map
|
||||
move H'f38000..H'F3FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x04
|
||||
show map
|
||||
move H'f48000..H'F4FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x05
|
||||
show map
|
||||
move H'f58000..H'F5FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x06
|
||||
show map
|
||||
move H'f68000..H'F6FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x07
|
||||
show map
|
||||
move H'f78000..H'F7FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x08
|
||||
show map
|
||||
move H'f88000..H'F8FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x09
|
||||
show map
|
||||
move H'f98000..H'F9FFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0A
|
||||
show map
|
||||
move H'fA8000..H'FAFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fB8000..H'FBFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0B
|
||||
show map
|
||||
move H'fB8000..H'FBFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0C
|
||||
show map
|
||||
move H'fC8000..H'FCFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0D
|
||||
show map
|
||||
move H'fd8000..H'FDFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0E
|
||||
show map
|
||||
move H'fe8000..H'FEFFFF,H'8000
|
||||
|
||||
elseif %ROMM_BANK == 0x0F
|
||||
show map
|
||||
move H'ff8000..H'FFFFFF,H'8000
|
||||
|
||||
endif # ROMM_BANK selection
|
||||
|
||||
endif # ROMM_SIZE selection
|
||||
|
||||
print ">Copy ROMCONST for simulation..."
|
||||
print "OK"
|
||||
|
||||
print "\n-----------------------------------------------------------"
|
||||
print "\nUse command \"batch prc\\romconst.prc\" after each download"
|
||||
print "\n-----------------------------------------------------------"
|
||||
|
||||
else
|
||||
|
||||
print "\n----------------------"
|
||||
print "\nROM Mirror disabled!!!"
|
||||
print "\n----------------------"
|
||||
|
||||
endif
|
||||
|
||||
print "\n-------------------------------------------------------------------"
|
||||
print "\nSetting CKMR to 0xF0 to allow for the Clock Wait in that start.asm."
|
||||
print "\n-------------------------------------------------------------------"
|
||||
|
||||
set MEM /byte 0x0403 = 0xF0
|
|
@ -0,0 +1,16 @@
|
|||
-g
|
||||
-w 2
|
||||
-D __CONFIG__=3
|
||||
-I "C:\Fujitsu\FreeRTOS\FreeRTOS Port 16FX\96340_FreeRTOS_96348hs-v17\96340_FreeRTOS_96348hs-v17\Src\os"
|
||||
-I "C:\Fujitsu\FreeRTOS\FreeRTOS Port 16FX\96340_FreeRTOS_96348hs-v17\96340_FreeRTOS_96348hs-v17\Src\port"
|
||||
-linf ON
|
||||
-lsrc ON
|
||||
-lsec ON
|
||||
-lcros OFF
|
||||
-linc ON
|
||||
-lexp OBJ
|
||||
-pl 60
|
||||
-pw 100
|
||||
-tab 8
|
||||
-cwno
|
||||
-cpu MB96F348HSA
|
|
@ -0,0 +1,35 @@
|
|||
-dt s,d,r,a
|
||||
-pl 60
|
||||
-pw 132
|
||||
-g
|
||||
-cwno
|
||||
-cpu MB96F348HSA
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\ABS\FreeRTOS_96348hs_SK16FX100PMC.abs"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\Main.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\mb96348hs.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\Start.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\vectors.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\port.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\croutine.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\list.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\queue.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\tasks.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\BlockQ.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\blocktim.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\comtest.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\death.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\dynamic.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\flash.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\GenQTest.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\integer.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\PollQ.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\semtest.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\serial.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\watchdog.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\taskutility.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\crflash_sk16fx100mpc.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\partest.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\printf_stdarg.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\__STD_LIB_sbrk.obj"
|
||||
-a "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\heap_3.obj"
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
-g
|
||||
-w 1
|
||||
-INF LIST
|
||||
-D __CONFIG__=3
|
||||
-I ".\Src"
|
||||
-I ".\Src\config"
|
||||
-I ".\Src\watchdog"
|
||||
-I "..\..\Common\include"
|
||||
-I "..\..\..\Source\include"
|
||||
-I "..\..\..\Source\portable\Softune\MB96340"
|
||||
-I ".\Src\utility"
|
||||
-O 1
|
||||
-model MEDIUM
|
||||
-B
|
||||
-xauto 127
|
||||
-x vTaskSwitchContext,vTaskIncrementTick
|
||||
-K NOEOPT
|
||||
-K NOLIB
|
||||
-K NOUNROLL
|
||||
-c
|
||||
-cwno
|
||||
-cpu MB96F348HSA
|
||||
-INF srcin
|
||||
-D __96340
|
|
@ -0,0 +1,54 @@
|
|||
-g
|
||||
-AL 2
|
||||
-ra _INRAM01=0x000180/0x00037F
|
||||
-ra _INRAM02=0x002240/0x007FFF
|
||||
-ro _INROM03=0xF80000/0xFFFFFF
|
||||
-ro _INROM01=0xDE0000/0xDE7FFF
|
||||
-ro _INROM02=0xDF0000/0xDF7FFF
|
||||
-sc CONST/Data/BYTE=0xFF8000
|
||||
-check_rora
|
||||
-check_locate
|
||||
-rg 0
|
||||
-m "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\LST\FreeRTOS_96348hs_SK16FX100PMC.mp1"
|
||||
-pl 60
|
||||
-pw 132
|
||||
-alin "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\LST"
|
||||
-alout "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\LST"
|
||||
-Xals
|
||||
-Xalr
|
||||
-na
|
||||
-w 2
|
||||
-cwno
|
||||
-a
|
||||
-cpu MB96F348HSA
|
||||
-Xset_rora
|
||||
-o "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\ABS\FreeRTOS_96348hs_SK16FX100PMC.abs"
|
||||
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\Main.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\mb96348hs.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\Start.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\vectors.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\port.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\croutine.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\list.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\queue.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\tasks.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\BlockQ.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\blocktim.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\comtest.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\death.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\dynamic.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\flash.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\GenQTest.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\integer.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\PollQ.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\semtest.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\serial.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\watchdog.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\taskutility.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\crflash_sk16fx100mpc.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\partest.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\printf_stdarg.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\__STD_LIB_sbrk.obj"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\OBJ\heap_3.obj"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
-cwno
|
||||
-o "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\ABS\FreeRTOS_96348hs_SK16FX100PMC.mhx"
|
||||
"C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\MB96340_Softune\FreeRTOS_96348hs_SK16FX100PMC\STANDALONE\ABS\FreeRTOS_96348hs_SK16FX100PMC.abs"
|
|
@ -0,0 +1,210 @@
|
|||
[Information]
|
||||
DebChangeFlag=0
|
||||
MCUChangeFlag=0
|
||||
|
||||
[Version]
|
||||
Version=1
|
||||
Level=1
|
||||
Revision=0
|
||||
|
||||
[Debug Type]
|
||||
Type=1
|
||||
Virtual CPU File=wv907f1.dll
|
||||
Monitor Load=1
|
||||
Monitor Load Condition=Disable
|
||||
Core ID=0
|
||||
|
||||
[Device]
|
||||
Communication=LAN 141.187.6.53
|
||||
ProductID=0
|
||||
Protocol=3
|
||||
|
||||
[Target]
|
||||
AutoLoad=Enable
|
||||
Before Batch File=
|
||||
After Batch File=Prc\romconst.prc
|
||||
Non AutoMap=Disable
|
||||
Load DebInfo Only=Disable
|
||||
Ondemand Load Condition=Disable
|
||||
|
||||
[Start]
|
||||
Batch File=
|
||||
|
||||
[Window]
|
||||
Flag=Enable
|
||||
AssemblySize=0 0 0 0
|
||||
AssemblyState=0
|
||||
AssemblyFGColor=0 0 255
|
||||
Assembly Address=H'000000
|
||||
Memory Address=H'004241
|
||||
Memory Mode=H'00000001
|
||||
Memory Ascii=H'00000001
|
||||
Memory SplitRow=0
|
||||
RMemory Address=H'000000
|
||||
RMemory Mode=H'FFFFFFFF
|
||||
RMemory Ascii=H'00000001
|
||||
RMemory SplitRow=0
|
||||
Trace ViewMode=1
|
||||
Command Max History=H'00000032
|
||||
Source Display Mode=Enable
|
||||
Source Multi Mode=Enable
|
||||
Source Ask Mode=Enable
|
||||
Source Active Mode=Enable
|
||||
Source PC Color=255 255 0
|
||||
Source Scope Color=255 0 255
|
||||
Source Back Trace=255 0 255
|
||||
Register Change Color=255 0 0
|
||||
Perfomance Mode=H'00000001
|
||||
Perfomance Scale=1 0 0.000000 0.000000
|
||||
Coverage Address=H'000000
|
||||
Coverage Type=H'00000000
|
||||
RMemory Change Color=255 0 0
|
||||
RMemory Invalid Color=128 128 128
|
||||
CommandSize=0 534 359 712
|
||||
CommandState=0
|
||||
MemorySize=487 476 974 714
|
||||
MemoryState=0
|
||||
Layer0=1003,
|
||||
Coverage SplitRow=0
|
||||
Layer1=1006,
|
||||
Layer2=1004,
|
||||
Source0Name=Src\Main.c
|
||||
Source0Size=487 238 974 476
|
||||
Source0State=2
|
||||
Source0Line=21
|
||||
Source0Mode=1
|
||||
Source1Name=Src\Start.asm
|
||||
Source1Size=154 154 912 653
|
||||
Source1State=0
|
||||
Source1Line=40C
|
||||
Source1Mode=2
|
||||
RegisterSize=487 0 974 238
|
||||
RegisterState=0
|
||||
Layer3=2000,Src\Start.asm
|
||||
Register Select0=H'00000000
|
||||
Register Select1=H'00000003
|
||||
Register Select2=H'00000004
|
||||
Register Select3=H'00000005
|
||||
Register Select4=H'00000006
|
||||
Register Select5=H'00000007
|
||||
Register Select6=H'00000008
|
||||
Register Select7=H'00000010
|
||||
Register Select8=H'00000011
|
||||
Register Select9=H'00000012
|
||||
Register Select10=H'00000013
|
||||
Register Select11=H'00000014
|
||||
Register Select12=H'00000015
|
||||
Register Select13=H'00000016
|
||||
Register Select14=H'00000017
|
||||
Register Select15=H'00000018
|
||||
Register Select16=H'00000022
|
||||
Register Select17=H'00000023
|
||||
Register Select18=H'00000024
|
||||
Register Select19=H'00000025
|
||||
Register Select20=H'00000026
|
||||
Register Select21=H'00000027
|
||||
Register Select22=H'00000028
|
||||
Register Select23=H'00000029
|
||||
Register Select24=H'00000035
|
||||
WatchSize=0 357 487 714
|
||||
WatchState=0
|
||||
Watch Variable0=[pxCurrentTCB],92040000,1,-1 -1
|
||||
Watch Variable1=[pxTCB],10080000,1,-1 -1
|
||||
Watch Variable2=[usCriticalNesting],91030000,1,-1 -1
|
||||
LocalSize=388 0 582 161
|
||||
LocalState=0
|
||||
Layer4=1007,
|
||||
Layer5=2000,Src\Main.c
|
||||
TraceSize=243 178 486 356
|
||||
TraceState=0
|
||||
Watch Variable3=[*ptr],90080000,1,-1 -1
|
||||
|
||||
[Path Environment]
|
||||
Flag=Enable
|
||||
Source=
|
||||
|
||||
[Map]
|
||||
Flag=Enable
|
||||
Area0=00000000 000000EF 3 0 0
|
||||
Area2=00000100 0000017F 3 0 0
|
||||
Area3=00000180 0000018F 7 0 0
|
||||
Area4=00000190 00000369 3 0 0
|
||||
Area5=0000036A 0000037F 7 0 0
|
||||
Area6=00000380 00000BFF 3 0 0
|
||||
Area8=00002240 0000470F 3 0 0
|
||||
Area9=00004710 00007FFF 7 0 0
|
||||
Area10=00008000 0000FFFF 1 0 0
|
||||
Area12=000F0000 000F0FFF 3 0 0
|
||||
Area14=000FE000 000FFFFF 5 0 0
|
||||
Area16=00DE0000 00DE7FFF 5 0 0
|
||||
Area18=00DF0000 00DF7FFF 5 0 0
|
||||
Area20=00F80000 00FFFFFF 5 0 0
|
||||
Inrom Image=Off
|
||||
|
||||
[Radix Environment]
|
||||
Flag=Enable
|
||||
Mode=10
|
||||
Source=1
|
||||
|
||||
[Watch Environment]
|
||||
Flag=Enable
|
||||
Size=0
|
||||
Mode=0
|
||||
MBuf=0
|
||||
Check=1
|
||||
CSiz=100
|
||||
|
||||
[Exec Environment]
|
||||
Flag=Enable
|
||||
GoIntMask=0
|
||||
StepUnit=3
|
||||
StepIntMask=0
|
||||
StepIntpCtrl=4
|
||||
GoTrcCtrl=2
|
||||
OnTheFlyBreakAdmit=0
|
||||
|
||||
[Break Environment]
|
||||
Flag=Enable
|
||||
Code0=00DE00F1 1 0 1
|
||||
CodeBreakFlag0=Enable
|
||||
Code1=00DE012F 1 0 1 main.c$103
|
||||
CodeBreakFlag1=Enable
|
||||
Debug File=C:\Fujitsu\FreeRTOS\FreeRTOS Port 16FX\96340_FreeRTOS_96348hs-v17\96340_FreeRTOS_96348hs-v17\ABS\96340_FreeRTOS_96348hs.abs
|
||||
Code2=00DE013E 1 0 1
|
||||
CodeBreakFlag2=Enable
|
||||
Code3=00DE1B64 1 0 1 \prvRLT0_TICKISR
|
||||
CodeBreakFlag3=Enable
|
||||
|
||||
[Emulation Environment]
|
||||
Flag=Disable
|
||||
|
||||
[Monitor Environment]
|
||||
Flag=Enable
|
||||
MemoryWindow=1
|
||||
WatchWindow=0
|
||||
ObjectWindow=0
|
||||
ElapseTime=3E8
|
||||
Unit=1
|
||||
Mode=0
|
||||
RealtimeMemoryWindow=0
|
||||
|
||||
[Error]
|
||||
Flag=Enable
|
||||
GuiErrorOutput=2
|
||||
CommandErrorOutput=1
|
||||
BatchErrorOutput=1
|
||||
ErrorOutputLevel=0
|
||||
|
||||
[Color]
|
||||
Flag=Enable
|
||||
|
||||
[Tab Environment]
|
||||
TabSize=8
|
||||
|
||||
[Communication]
|
||||
Send=1000
|
||||
Receive=64
|
||||
|
||||
[Trace Environment]
|
||||
Trace Break=0
|
||||
Trace Status=1
|
|
@ -0,0 +1,135 @@
|
|||
/*
|
||||
FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* Having a problem? Start by reading the FAQ "My application does *
|
||||
* not run, what could be wrong? *
|
||||
* *
|
||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, training, latest information,
|
||||
license and contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool.
|
||||
|
||||
Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
|
||||
the code with commercial support, indemnification, and middleware, under
|
||||
the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
|
||||
provide a safety engineered and independently SIL3 certified version under
|
||||
the SafeRTOS brand: http://www.SafeRTOS.com.
|
||||
*/
|
||||
|
||||
#ifndef FREERTOS_CONFIG_H
|
||||
#define FREERTOS_CONFIG_H
|
||||
|
||||
/* Device specific includes. */
|
||||
#include "mb96348hs.h"
|
||||
|
||||
/*
|
||||
* The below define should be same as the option selected by the Memory
|
||||
* Model (Project->Setup Project->C Compiler->Category->Target Depend )
|
||||
*
|
||||
* Valid settings here include:
|
||||
* ------- Memory models --------- Data Code
|
||||
* portSMALL 16 Bit 16 Bit
|
||||
* portMEDIUM 16 Bit 24 Bit
|
||||
* portCOMPACT 24 Bit 16 Bit
|
||||
* portLARGE 24 Bit 24 Bit
|
||||
*/
|
||||
#define configMEMMODEL portMEDIUM
|
||||
|
||||
/* Demo specific definition - set this to 1 if you want to include the task
|
||||
that writes trace and debug information to the UART. If it is set to 0 then
|
||||
the ComTest tasks will be included in place of the trace task. */
|
||||
#define INCLUDE_TraceListTasks 0
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
* Application specific definitions.
|
||||
*
|
||||
* These definitions should be adjusted for your particular hardware and
|
||||
* application requirements.
|
||||
*
|
||||
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
|
||||
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
|
||||
*----------------------------------------------------------*/
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configUSE_IDLE_HOOK 1
|
||||
#define configUSE_TICK_HOOK 0
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 180 ) /* This can be greatly reduced when using the small or medium memory model. */
|
||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 56000000 ) /* Clock setup from start.asm in the demo application. */
|
||||
#define configCLKP1_CLOCK_HZ ( ( unsigned long ) 56000000 ) /* Clock setup from start.asm in the demo application. */
|
||||
#define configTICK_RATE_HZ ( (portTickType) 1000 )
|
||||
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 6 )
|
||||
#define configTOTAL_HEAP_SIZE ( (size_t) (20000) )
|
||||
#define configMAX_TASK_NAME_LEN ( 20 )
|
||||
#define configUSE_16_BIT_TICKS 1
|
||||
#define configIDLE_SHOULD_YIELD 1
|
||||
#define configUSE_MUTEXES 1
|
||||
#define configUSE_TRACE_FACILITY 1
|
||||
|
||||
/* Co-routine definitions. */
|
||||
#define configUSE_CO_ROUTINES 1
|
||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 4 )
|
||||
|
||||
/* Set the following definitions to 1 to include the API function, or zero
|
||||
to exclude the API function. */
|
||||
#define INCLUDE_vTaskPrioritySet 1
|
||||
#define INCLUDE_uxTaskPriorityGet 1
|
||||
#define INCLUDE_vTaskDelete 1
|
||||
#define INCLUDE_vTaskCleanUpResources 1
|
||||
#define INCLUDE_vTaskSuspend 1
|
||||
#define INCLUDE_vResumeFromISR 1
|
||||
#define INCLUDE_vTaskDelayUntil 1
|
||||
#define INCLUDE_vTaskDelay 1
|
||||
#define INCLUDE_xTaskGetSchedulerState 1
|
||||
#define INCLUDE_xTaskGetCurrentTaskHandle 1
|
||||
|
||||
|
||||
#define configKERNEL_INTERRUPT_PRIORITY 6
|
||||
|
||||
#endif /* FREERTOS_CONFIG_H */
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,254 @@
|
|||
/*
|
||||
FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* Having a problem? Start by reading the FAQ "My application does *
|
||||
* not run, what could be wrong? *
|
||||
* *
|
||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, training, latest information,
|
||||
license and contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool.
|
||||
|
||||
Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
|
||||
the code with commercial support, indemnification, and middleware, under
|
||||
the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
|
||||
provide a safety engineered and independently SIL3 certified version under
|
||||
the SafeRTOS brand: http://www.SafeRTOS.com.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This demo application file demonstrates the use of queues to pass data
|
||||
* between co-routines.
|
||||
*
|
||||
* N represents the number of 'fixed delay' co-routines that are created and
|
||||
* is set during initialisation.
|
||||
*
|
||||
* N 'fixed delay' co-routines are created that just block for a fixed
|
||||
* period then post the number of an LED onto a queue. Each such co-routine
|
||||
* uses a different block period. A single 'flash' co-routine is also created
|
||||
* that blocks on the same queue, waiting for the number of the next LED it
|
||||
* should flash. Upon receiving a number it simply toggle the instructed LED
|
||||
* then blocks on the queue once more. In this manner each LED from LED 0 to
|
||||
* LED N-1 is caused to flash at a different rate.
|
||||
*
|
||||
* The 'fixed delay' co-routines are created with co-routine priority 0. The
|
||||
* flash co-routine is created with co-routine priority 1. This means that
|
||||
* the queue should never contain more than a single item. This is because
|
||||
* posting to the queue will unblock the 'flash' co-routine, and as this has
|
||||
* a priority greater than the tasks posting to the queue it is guaranteed to
|
||||
* have emptied the queue and blocked once again before the queue can contain
|
||||
* any more date. An error is indicated if an attempt to post data to the
|
||||
* queue fails - indicating that the queue is already full.
|
||||
*
|
||||
*/
|
||||
|
||||
/* Scheduler includes. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "croutine.h"
|
||||
#include "queue.h"
|
||||
|
||||
/* Demo application includes. */
|
||||
#include "partest.h"
|
||||
#include "crflash.h"
|
||||
|
||||
/* The queue should only need to be of length 1. See the description at the
|
||||
top of the file. */
|
||||
#define crfQUEUE_LENGTH 1
|
||||
|
||||
#define crfFIXED_DELAY_PRIORITY 0
|
||||
#define crfFLASH_PRIORITY 1
|
||||
|
||||
/* Only one flash co-routine is created so the index is not significant. */
|
||||
#define crfFLASH_INDEX 0
|
||||
|
||||
/* Don't allow more than crfMAX_FLASH_TASKS 'fixed delay' co-routines to be
|
||||
created. */
|
||||
#define crfMAX_FLASH_TASKS 8
|
||||
|
||||
/* We don't want to block when posting to the queue. */
|
||||
#define crfPOSTING_BLOCK_TIME 0
|
||||
|
||||
/* Added by MPi, this define is added in order to make the vParTestToggleLED()
|
||||
work. This basically differentiates the PDR09 from PDR00. 7-seg display LEDs connected
|
||||
to PDR09 (SEG1) are used by the prvFlashCoRoutine() and PDR00 (SEG2) are used by tasks. */
|
||||
#define PDR00_Offset 8
|
||||
|
||||
/*
|
||||
* The 'fixed delay' co-routine as described at the top of the file.
|
||||
*/
|
||||
static void prvFixedDelayCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex );
|
||||
|
||||
/*
|
||||
* The 'flash' co-routine as described at the top of the file.
|
||||
*/
|
||||
static void prvFlashCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex );
|
||||
|
||||
/* The queue used to pass data between the 'fixed delay' co-routines and the
|
||||
'flash' co-routine. */
|
||||
static xQueueHandle xFlashQueue;
|
||||
|
||||
/* This will be set to pdFALSE if we detect an error. */
|
||||
static unsigned portBASE_TYPE uxCoRoutineFlashStatus = pdPASS;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* See the header file for details.
|
||||
*/
|
||||
void vStartFlashCoRoutines( unsigned portBASE_TYPE uxNumberToCreate )
|
||||
{
|
||||
unsigned portBASE_TYPE uxIndex;
|
||||
|
||||
if( uxNumberToCreate > crfMAX_FLASH_TASKS )
|
||||
{
|
||||
uxNumberToCreate = crfMAX_FLASH_TASKS;
|
||||
}
|
||||
|
||||
/* Create the queue used to pass data between the co-routines. */
|
||||
xFlashQueue = xQueueCreate( crfQUEUE_LENGTH, sizeof( unsigned portBASE_TYPE ) );
|
||||
|
||||
if( xFlashQueue )
|
||||
{
|
||||
/* Create uxNumberToCreate 'fixed delay' co-routines. */
|
||||
for( uxIndex = 0; uxIndex < uxNumberToCreate; uxIndex++ )
|
||||
{
|
||||
xCoRoutineCreate( prvFixedDelayCoRoutine, crfFIXED_DELAY_PRIORITY, uxIndex );
|
||||
}
|
||||
|
||||
/* Create the 'flash' co-routine. */
|
||||
xCoRoutineCreate( prvFlashCoRoutine, crfFLASH_PRIORITY, crfFLASH_INDEX );
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvFixedDelayCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )
|
||||
{
|
||||
/* Even though this is a co-routine the xResult variable does not need to be
|
||||
static as we do not need it to maintain its state between blocks. */
|
||||
signed portBASE_TYPE xResult;
|
||||
/* The uxIndex parameter of the co-routine function is used as an index into
|
||||
the xFlashRates array to obtain the delay period to use. */
|
||||
static const portTickType xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_RATE_MS,
|
||||
200 / portTICK_RATE_MS,
|
||||
250 / portTICK_RATE_MS,
|
||||
300 / portTICK_RATE_MS,
|
||||
350 / portTICK_RATE_MS,
|
||||
400 / portTICK_RATE_MS,
|
||||
450 / portTICK_RATE_MS,
|
||||
500 / portTICK_RATE_MS };
|
||||
|
||||
/* Co-routines MUST start with a call to crSTART. */
|
||||
crSTART( xHandle );
|
||||
|
||||
for( ;; )
|
||||
{
|
||||
/* Post our uxIndex value onto the queue. This is used as the LED to
|
||||
flash. */
|
||||
crQUEUE_SEND( xHandle, xFlashQueue, ( void * ) &uxIndex, crfPOSTING_BLOCK_TIME, &xResult );
|
||||
|
||||
if( xResult != pdPASS )
|
||||
{
|
||||
/* For the reasons stated at the top of the file we should always
|
||||
find that we can post to the queue. If we could not then an error
|
||||
has occurred. */
|
||||
uxCoRoutineFlashStatus = pdFAIL;
|
||||
}
|
||||
|
||||
crDELAY( xHandle, xFlashRates[ uxIndex ] );
|
||||
}
|
||||
|
||||
/* Co-routines MUST end with a call to crEND. */
|
||||
crEND();
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvFlashCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )
|
||||
{
|
||||
/* Even though this is a co-routine the variable do not need to be
|
||||
static as we do not need it to maintain their state between blocks. */
|
||||
signed portBASE_TYPE xResult;
|
||||
unsigned portBASE_TYPE uxLEDToFlash;
|
||||
|
||||
/* Co-routines MUST start with a call to crSTART. */
|
||||
crSTART( xHandle );
|
||||
( void ) uxIndex;
|
||||
|
||||
for( ;; )
|
||||
{
|
||||
/* Block to wait for the number of the LED to flash. */
|
||||
crQUEUE_RECEIVE( xHandle, xFlashQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );
|
||||
|
||||
if( xResult != pdPASS )
|
||||
{
|
||||
/* We would not expect to wake unless we received something. */
|
||||
uxCoRoutineFlashStatus = pdFAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* We received the number of an LED to flash - flash it! */
|
||||
/* Added by MPi, PDR00_Offset is added in order to make the
|
||||
vParTestToggleLED() work. */
|
||||
vParTestToggleLED( uxLEDToFlash + PDR00_Offset );
|
||||
}
|
||||
}
|
||||
|
||||
/* Co-routines MUST end with a call to crEND. */
|
||||
crEND();
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
portBASE_TYPE xAreFlashCoRoutinesStillRunning( void )
|
||||
{
|
||||
/* Return pdPASS or pdFAIL depending on whether an error has been detected
|
||||
or not. */
|
||||
return uxCoRoutineFlashStatus;
|
||||
}
|
||||
|
|
@ -0,0 +1,364 @@
|
|||
/*
|
||||
FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* Having a problem? Start by reading the FAQ "My application does *
|
||||
* not run, what could be wrong? *
|
||||
* *
|
||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, training, latest information,
|
||||
license and contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool.
|
||||
|
||||
Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
|
||||
the code with commercial support, indemnification, and middleware, under
|
||||
the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
|
||||
provide a safety engineered and independently SIL3 certified version under
|
||||
the SafeRTOS brand: http://www.SafeRTOS.com.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Creates all the demo application tasks, then starts the scheduler. The WEB
|
||||
* documentation provides more details of the demo application tasks.
|
||||
*
|
||||
* In addition to the standard demo tasks, the follow demo specific tasks are
|
||||
* create:
|
||||
*
|
||||
* The "Check" task. This only executes every three seconds but has the highest
|
||||
* priority so is guaranteed to get processor time. Its main function is to
|
||||
* check that all the other tasks are still operational. Most tasks maintain
|
||||
* a unique count that is incremented each time the task successfully completes
|
||||
* its function. Should any error occur within such a task the count is
|
||||
* permanently halted. The check task inspects the count of each task to ensure
|
||||
* it has changed since the last time the check task executed. If all the count
|
||||
* variables have changed all the tasks are still executing error free, and the
|
||||
* check task toggles the onboard LED. Should any task contain an error at any time
|
||||
* the LED toggle rate will change from 3 seconds to 500ms.
|
||||
*
|
||||
* The "Trace Utility" task. This can be used to obtain trace and debug
|
||||
* information via UART1.
|
||||
*/
|
||||
|
||||
|
||||
/* Scheduler includes. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
|
||||
/* Demo application includes. */
|
||||
#include "flash.h"
|
||||
#include "integer.h"
|
||||
#include "comtest2.h"
|
||||
#include "PollQ.h"
|
||||
#include "semtest.h"
|
||||
#include "BlockQ.h"
|
||||
#include "dynamic.h"
|
||||
#include "flop.h"
|
||||
#include "GenQTest.h"
|
||||
#include "QPeek.h"
|
||||
#include "blocktim.h"
|
||||
#include "death.h"
|
||||
#include "taskutility.h"
|
||||
#include "partest.h"
|
||||
#include "crflash.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
/* Library includes. */
|
||||
#include <watchdog.h>
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Demo task priorities. */
|
||||
#define WTC_TASK_PRIORITY ( tskIDLE_PRIORITY + 5 )
|
||||
#define mainCHECK_TASK_PRIORITY ( tskIDLE_PRIORITY + 4 )
|
||||
#define TASK_UTILITY_PRIORITY ( tskIDLE_PRIORITY )
|
||||
#define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 3 )
|
||||
#define mainCOM_TEST_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
#define mainQUEUE_POLL_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
#define mainQUEUE_BLOCK_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
#define mainDEATH_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
#define mainGENERIC_QUEUE_PRIORITY ( tskIDLE_PRIORITY )
|
||||
|
||||
/* Baud rate used by the COM test tasks. */
|
||||
#define mainCOM_TEST_BAUD_RATE ( ( unsigned long ) 19200 )
|
||||
|
||||
/* The frequency at which the 'Check' tasks executes. See the comments at the
|
||||
top of the page. When the system is operating error free the 'Check' task
|
||||
toggles an LED every three seconds. If an error is discovered in any task the
|
||||
rate is increased to 500 milliseconds. [in this case the '*' characters on the
|
||||
LCD represent LED's] */
|
||||
#define mainNO_ERROR_CHECK_DELAY ( (portTickType) 3000 / portTICK_RATE_MS )
|
||||
#define mainERROR_CHECK_DELAY ( (portTickType) 500 / portTICK_RATE_MS )
|
||||
|
||||
/* LED assignments for the demo tasks. */
|
||||
#define mainNUM_FLASH_CO_ROUTINES 8
|
||||
#define mainCOM_TEST_LED 0x05
|
||||
#define mainCHECK_TEST_LED 0x07
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* The function that implements the Check task. See the comments at the head
|
||||
* of the page for implementation details.
|
||||
*/
|
||||
static void vErrorChecks( void *pvParameters );
|
||||
|
||||
/*
|
||||
* Called by the Check task. Returns pdPASS if all the other tasks are found
|
||||
* to be operating without error - otherwise returns pdFAIL.
|
||||
*/
|
||||
static short prvCheckOtherTasksAreStillRunning( void );
|
||||
|
||||
/*
|
||||
* Perform any hardware setup necessary for the demo.
|
||||
*/
|
||||
static void prvSetupHardware( void );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void main( void )
|
||||
{
|
||||
InitIrqLevels(); /* Initialize interrupts */
|
||||
__set_il( 7 ); /* Allow all levels */
|
||||
|
||||
prvSetupHardware();
|
||||
|
||||
#if WATCHDOG == WTC_IN_TASK
|
||||
vStartWatchdogTask( WTC_TASK_PRIORITY );
|
||||
#endif
|
||||
|
||||
/* Start the standard demo application tasks. */
|
||||
vStartLEDFlashTasks( mainLED_TASK_PRIORITY );
|
||||
vStartIntegerMathTasks( tskIDLE_PRIORITY );
|
||||
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
|
||||
vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );
|
||||
vStartBlockingQueueTasks( mainQUEUE_BLOCK_PRIORITY );
|
||||
vStartDynamicPriorityTasks();
|
||||
vStartFlashCoRoutines( mainNUM_FLASH_CO_ROUTINES );
|
||||
vStartGenericQueueTasks( mainGENERIC_QUEUE_PRIORITY );
|
||||
vCreateBlockTimeTasks();
|
||||
|
||||
/* The definition INCLUDE_TraceListTasks is set within FreeRTOSConfig.h. */
|
||||
#if INCLUDE_TraceListTasks == 1
|
||||
vUtilityStartTraceTask( TASK_UTILITY_PRIORITY );
|
||||
#else
|
||||
vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED - 1 );
|
||||
#endif
|
||||
|
||||
/* Start the 'Check' task which is defined in this file. */
|
||||
xTaskCreate( vErrorChecks, (signed char *) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
|
||||
|
||||
/* The suicide tasks must be started last as they record the number of other
|
||||
tasks that exist within the system. The value is then used to ensure at run
|
||||
time the number of tasks that exists is within expected bounds. */
|
||||
vCreateSuicidalTasks( mainDEATH_PRIORITY );
|
||||
|
||||
/* Now start the scheduler. Following this call the created tasks should
|
||||
be executing. */
|
||||
vTaskStartScheduler( );
|
||||
|
||||
/* vTaskStartScheduler() will only return if an error occurs while the
|
||||
idle task is being created. */
|
||||
for( ;; );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvSetupHardware( void )
|
||||
{
|
||||
/* Initialise the port used by the LEDs. */
|
||||
vParTestInitialise();
|
||||
|
||||
/* See watchdog.h for definitions relating to the watchdog use. */
|
||||
#if WATCHDOG != WTC_NONE
|
||||
InitWatchdog();
|
||||
#endif
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void vErrorChecks( void *pvParameters )
|
||||
{
|
||||
portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
|
||||
|
||||
/* Just to remove compiler warnings. */
|
||||
( void ) pvParameters;
|
||||
|
||||
/* Cycle for ever, delaying then checking all the other tasks are still
|
||||
operating without error. */
|
||||
for( ;; )
|
||||
{
|
||||
/* Wait until it is time to check again. The time we wait here depends
|
||||
on whether an error has been detected or not. When an error is
|
||||
detected the time is shortened resulting in a faster LED flash rate. */
|
||||
vTaskDelay( xDelayPeriod );
|
||||
|
||||
/* See if the other tasks are all ok. */
|
||||
if( prvCheckOtherTasksAreStillRunning() != pdPASS )
|
||||
{
|
||||
/* An error occurred in one of the tasks so shorten the delay
|
||||
period - which has the effect of increasing the frequency of the
|
||||
LED toggle. */
|
||||
xDelayPeriod = mainERROR_CHECK_DELAY;
|
||||
}
|
||||
|
||||
/* Flash! */
|
||||
vParTestToggleLED( mainCHECK_TEST_LED );
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static short prvCheckOtherTasksAreStillRunning( void )
|
||||
{
|
||||
static short sNoErrorFound = pdTRUE;
|
||||
|
||||
/* The demo tasks maintain a count that increments every cycle of the task
|
||||
provided that the task has never encountered an error. This function
|
||||
checks the counts maintained by the tasks to ensure they are still being
|
||||
incremented. A count remaining at the same value between calls therefore
|
||||
indicates that an error has been detected. Only tasks that do not flash
|
||||
an LED are checked. */
|
||||
if( xAreIntegerMathsTaskStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xArePollingQueuesStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreSemaphoreTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreBlockingQueuesStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreFlashCoRoutinesStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreGenericQueueTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
if( xIsCreateTaskStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
|
||||
#if INCLUDE_TraceListTasks == 0
|
||||
{
|
||||
if( xAreComTestTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
sNoErrorFound = pdFALSE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return sNoErrorFound;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Idle hook function. */
|
||||
#if configUSE_IDLE_HOOK == 1
|
||||
void vApplicationIdleHook( void )
|
||||
{
|
||||
/* Are we using the idle task to kick the watchdog? See watchdog.h
|
||||
for watchdog kicking options. Note this is for demonstration only
|
||||
and is not a suggested method of servicing the watchdog in a real
|
||||
application. */
|
||||
#if WATCHDOG == WTC_IN_IDLE
|
||||
Kick_Watchdog();
|
||||
#endif
|
||||
|
||||
vCoRoutineSchedule();
|
||||
}
|
||||
#else
|
||||
#if WATCHDOG == WTC_IN_IDLE
|
||||
#error configUSE_IDLE_HOOK must be set to 1 in FreeRTOSConfig.h if the watchdog is being cleared in the idle task hook.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Tick hook function. */
|
||||
#if configUSE_TICK_HOOK == 1
|
||||
void vApplicationTickHook( void )
|
||||
{
|
||||
/* Are we using the tick to kick the watchdog? See watchdog.h
|
||||
for watchdog kicking options. Note this is for demonstration
|
||||
only and is not a suggested method of servicing the watchdog in
|
||||
a real application. */
|
||||
#if WATCHDOG == WTC_IN_TICK
|
||||
Kick_Watchdog();
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#if WATCHDOG == WTC_IN_TICK
|
||||
#error configUSE_TICK_HOOK must be set to 1 in FreeRTOSConfig.h if the watchdog is being cleared in the tick hook.
|
||||
#endif
|
||||
#endif
|
||||
/*-----------------------------------------------------------*/
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,185 @@
|
|||
/*
|
||||
FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* Having a problem? Start by reading the FAQ "My application does *
|
||||
* not run, what could be wrong? *
|
||||
* *
|
||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, training, latest information,
|
||||
license and contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool.
|
||||
|
||||
Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
|
||||
the code with commercial support, indemnification, and middleware, under
|
||||
the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
|
||||
provide a safety engineered and independently SIL3 certified version under
|
||||
the SafeRTOS brand: http://www.SafeRTOS.com.
|
||||
*/
|
||||
|
||||
|
||||
/* Scheduler includes. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
|
||||
#define partstNUM_LEDs 8
|
||||
|
||||
static unsigned portCHAR sState[ partstNUM_LEDs ] = { pdFALSE };
|
||||
static unsigned portCHAR sState1[ partstNUM_LEDs ] = { pdFALSE };
|
||||
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
void vParTestInitialise( void )
|
||||
{
|
||||
portBASE_TYPE x;
|
||||
|
||||
/* Set port for LED outputs. */
|
||||
DDR00 = 0xFF;
|
||||
DDR09 = 0xFF;
|
||||
|
||||
/* Start with LEDs off. */
|
||||
PDR09 = 0xff;
|
||||
PDR00 = 0xff;
|
||||
|
||||
for( x = 0; x < partstNUM_LEDs; x++ )
|
||||
{
|
||||
sState[ x ] = pdTRUE;
|
||||
sState1[ x ] = pdTRUE;
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
||||
{
|
||||
if( uxLED < partstNUM_LEDs )
|
||||
{
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
/* Toggle the state of the single genuine on board LED. */
|
||||
if( sState[ uxLED ] )
|
||||
{
|
||||
PDR09 |= ( 1 << uxLED );
|
||||
}
|
||||
else
|
||||
{
|
||||
PDR09 &= ~( 1 << uxLED );
|
||||
}
|
||||
|
||||
sState[uxLED] = !( sState[ uxLED ] );
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
else
|
||||
{
|
||||
uxLED -= partstNUM_LEDs;
|
||||
|
||||
if( uxLED < partstNUM_LEDs )
|
||||
{
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
/* Toggle the state of the single genuine on board LED. */
|
||||
if( sState1[uxLED])
|
||||
{
|
||||
PDR00 |= ( 1 << uxLED );
|
||||
}
|
||||
else
|
||||
{
|
||||
PDR00 &= ~( 1 << uxLED );
|
||||
}
|
||||
|
||||
sState1[ uxLED ] = !( sState1[ uxLED ] );
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
|
||||
{
|
||||
/* Set or clear the output [in this case show or hide the '*' character. */
|
||||
if( uxLED < partstNUM_LEDs )
|
||||
{
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
if( xValue )
|
||||
{
|
||||
PDR09 |= ( 1 << uxLED );
|
||||
sState[ uxLED ] = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
PDR09 &= ~( 1 << uxLED );
|
||||
sState[ uxLED ] = 0;
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
else
|
||||
{
|
||||
uxLED -= partstNUM_LEDs;
|
||||
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
if( xValue )
|
||||
{
|
||||
PDR00 |= ( 1 << uxLED );
|
||||
sState1[ uxLED ] = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
PDR00 &= ~( 1 << uxLED );
|
||||
sState1[ uxLED ] = 0;
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,245 @@
|
|||
/*
|
||||
FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* Having a problem? Start by reading the FAQ "My application does *
|
||||
* not run, what could be wrong? *
|
||||
* *
|
||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, training, latest information,
|
||||
license and contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool.
|
||||
|
||||
Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
|
||||
the code with commercial support, indemnification, and middleware, under
|
||||
the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
|
||||
provide a safety engineered and independently SIL3 certified version under
|
||||
the SafeRTOS brand: http://www.SafeRTOS.com.
|
||||
*/
|
||||
|
||||
/* BASIC INTERRUPT DRIVEN SERIAL PORT DRIVER.
|
||||
*
|
||||
* This file only supports UART 0
|
||||
*/
|
||||
|
||||
/* Standard includes. */
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Scheduler includes. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "queue.h"
|
||||
#include "task.h"
|
||||
|
||||
/* Demo application includes. */
|
||||
#include "serial.h"
|
||||
|
||||
/* The queue used to hold received characters. */
|
||||
static xQueueHandle xRxedChars;
|
||||
|
||||
/* The queue used to hold characters waiting transmission. */
|
||||
static xQueueHandle xCharsForTx;
|
||||
|
||||
static volatile portSHORT sTHREEmpty;
|
||||
|
||||
static volatile portSHORT queueFail = pdFALSE;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )
|
||||
{
|
||||
/* Initialise the hardware. */
|
||||
portENTER_CRITICAL();
|
||||
{
|
||||
/* Create the queues used by the com test task. */
|
||||
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof(signed portCHAR) );
|
||||
xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof(signed portCHAR) );
|
||||
|
||||
if( xRxedChars == 0 )
|
||||
{
|
||||
queueFail = pdTRUE;
|
||||
}
|
||||
|
||||
if( xCharsForTx == 0 )
|
||||
{
|
||||
queueFail = pdTRUE;
|
||||
}
|
||||
|
||||
/* Initialize UART asynchronous mode */
|
||||
BGR0 = configCLKP1_CLOCK_HZ / ulWantedBaud;
|
||||
|
||||
SCR0 = 0x17; /* 8N1 */
|
||||
SMR0 = 0x0d; /* enable SOT3, Reset, normal mode */
|
||||
SSR0 = 0x02; /* LSB first, enable receive interrupts */
|
||||
|
||||
PIER08_IE2 = 1; /* enable input */
|
||||
DDR08_D2 = 0; /* switch P08_2 to input */
|
||||
DDR08_D3 = 1; /* switch P08_3 to output */
|
||||
}
|
||||
portEXIT_CRITICAL();
|
||||
|
||||
/* Unlike other ports, this serial code does not allow for more than one
|
||||
com port. We therefore don't return a pointer to a port structure and can
|
||||
instead just return NULL. */
|
||||
return NULL;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcRxedChar, portTickType xBlockTime )
|
||||
{
|
||||
/* Get the next character from the buffer. Return false if no characters
|
||||
are available, or arrive before xBlockTime expires. */
|
||||
if( xQueueReceive(xRxedChars, pcRxedChar, xBlockTime) )
|
||||
{
|
||||
return pdTRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return pdFALSE;
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed portCHAR cOutChar, portTickType xBlockTime )
|
||||
{
|
||||
signed portBASE_TYPE xReturn;
|
||||
|
||||
/* Transmit a character. */
|
||||
portENTER_CRITICAL();
|
||||
{
|
||||
if( sTHREEmpty == pdTRUE )
|
||||
{
|
||||
/* If sTHREEmpty is true then the UART Tx ISR has indicated that
|
||||
there are no characters queued to be transmitted - so we can
|
||||
write the character directly to the shift Tx register. */
|
||||
sTHREEmpty = pdFALSE;
|
||||
TDR0 = cOutChar;
|
||||
xReturn = pdPASS;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* sTHREEmpty is false, so there are still characters waiting to be
|
||||
transmitted. We have to queue this character so it gets
|
||||
transmitted in turn. */
|
||||
|
||||
/* Return false if after the block time there is no room on the Tx
|
||||
queue. It is ok to block inside a critical section as each task
|
||||
maintains it's own critical section status. */
|
||||
if( xQueueSend(xCharsForTx, &cOutChar, xBlockTime) == pdTRUE )
|
||||
{
|
||||
xReturn = pdPASS;
|
||||
}
|
||||
else
|
||||
{
|
||||
xReturn = pdFAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if( pdPASS == xReturn )
|
||||
{
|
||||
/* Turn on the Tx interrupt so the ISR will remove the character from the
|
||||
queue and send it. This does not need to be in a critical section as
|
||||
if the interrupt has already removed the character the next interrupt
|
||||
will simply turn off the Tx interrupt again. */
|
||||
SSR0_TIE = 1;
|
||||
}
|
||||
}
|
||||
portEXIT_CRITICAL();
|
||||
|
||||
return pdPASS;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* UART RX interrupt service routine.
|
||||
*/
|
||||
__interrupt void UART0_RxISR( void )
|
||||
{
|
||||
volatile signed portCHAR cChar;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
/* Get the character from the UART and post it on the queue of Rxed
|
||||
characters. */
|
||||
cChar = RDR0;
|
||||
|
||||
xQueueSendFromISR( xRxedChars, ( const void *const ) &cChar, &xHigherPriorityTaskWoken );
|
||||
|
||||
if( xHigherPriorityTaskWoken )
|
||||
{
|
||||
/*If the post causes a task to wake force a context switch
|
||||
as the woken task may have a higher priority than the task we have
|
||||
interrupted. */
|
||||
portYIELD_FROM_ISR();
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* UART Tx interrupt service routine.
|
||||
*/
|
||||
__interrupt void UART0_TxISR( void )
|
||||
{
|
||||
signed portCHAR cChar;
|
||||
signed portBASE_TYPE xTaskWoken = pdFALSE;
|
||||
|
||||
/* The previous character has been transmitted. See if there are any
|
||||
further characters waiting transmission. */
|
||||
if( xQueueReceiveFromISR(xCharsForTx, &cChar, &xTaskWoken) == pdTRUE )
|
||||
{
|
||||
/* There was another character queued - transmit it now. */
|
||||
TDR0 = cChar;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* There were no other characters to transmit. */
|
||||
sTHREEmpty = pdTRUE;
|
||||
|
||||
/* Disable transmit interrupts */
|
||||
SSR0_TIE = 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,286 @@
|
|||
/*
|
||||
Copyright 2001, 2002 Georges Menie (www.menie.org)
|
||||
stdarg version contributed by Christian Ettinger
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
putchar is the only external dependency for this file,
|
||||
if you have a working putchar, leave it commented out.
|
||||
If not, uncomment the define below and
|
||||
replace outbyte(c) by your own function call.
|
||||
|
||||
#define putchar(c) outbyte(c)
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
static void printchar(char **str, int c)
|
||||
{
|
||||
extern int putchar(int c);
|
||||
|
||||
if (str) {
|
||||
**str = c;
|
||||
++(*str);
|
||||
}
|
||||
else (void)putchar(c);
|
||||
}
|
||||
|
||||
#define PAD_RIGHT 1
|
||||
#define PAD_ZERO 2
|
||||
|
||||
static int prints(char **out, const char *string, int width, int pad)
|
||||
{
|
||||
register int pc = 0, padchar = ' ';
|
||||
|
||||
if (width > 0) {
|
||||
register int len = 0;
|
||||
register const char *ptr;
|
||||
for (ptr = string; *ptr; ++ptr) ++len;
|
||||
if (len >= width) width = 0;
|
||||
else width -= len;
|
||||
if (pad & PAD_ZERO) padchar = '0';
|
||||
}
|
||||
if (!(pad & PAD_RIGHT)) {
|
||||
for ( ; width > 0; --width) {
|
||||
printchar (out, padchar);
|
||||
++pc;
|
||||
}
|
||||
}
|
||||
for ( ; *string ; ++string) {
|
||||
printchar (out, *string);
|
||||
++pc;
|
||||
}
|
||||
for ( ; width > 0; --width) {
|
||||
printchar (out, padchar);
|
||||
++pc;
|
||||
}
|
||||
|
||||
return pc;
|
||||
}
|
||||
|
||||
/* the following should be enough for 32 bit int */
|
||||
#define PRINT_BUF_LEN 12
|
||||
|
||||
static int printi(char **out, int i, int b, int sg, int width, int pad, int letbase)
|
||||
{
|
||||
char print_buf[PRINT_BUF_LEN];
|
||||
register char *s;
|
||||
register int t, neg = 0, pc = 0;
|
||||
register unsigned int u = i;
|
||||
|
||||
if (i == 0) {
|
||||
print_buf[0] = '0';
|
||||
print_buf[1] = '\0';
|
||||
return prints (out, print_buf, width, pad);
|
||||
}
|
||||
|
||||
if (sg && b == 10 && i < 0) {
|
||||
neg = 1;
|
||||
u = -i;
|
||||
}
|
||||
|
||||
s = print_buf + PRINT_BUF_LEN-1;
|
||||
*s = '\0';
|
||||
|
||||
while (u) {
|
||||
t = u % b;
|
||||
if( t >= 10 )
|
||||
t += letbase - '0' - 10;
|
||||
*--s = t + '0';
|
||||
u /= b;
|
||||
}
|
||||
|
||||
if (neg) {
|
||||
if( width && (pad & PAD_ZERO) ) {
|
||||
printchar (out, '-');
|
||||
++pc;
|
||||
--width;
|
||||
}
|
||||
else {
|
||||
*--s = '-';
|
||||
}
|
||||
}
|
||||
|
||||
return pc + prints (out, s, width, pad);
|
||||
}
|
||||
|
||||
static int print( char **out, const char *format, va_list args )
|
||||
{
|
||||
register int width, pad;
|
||||
register int pc = 0;
|
||||
char scr[2];
|
||||
|
||||
for (; *format != 0; ++format) {
|
||||
if (*format == '%') {
|
||||
++format;
|
||||
width = pad = 0;
|
||||
if (*format == '\0') break;
|
||||
if (*format == '%') goto out;
|
||||
if (*format == '-') {
|
||||
++format;
|
||||
pad = PAD_RIGHT;
|
||||
}
|
||||
while (*format == '0') {
|
||||
++format;
|
||||
pad |= PAD_ZERO;
|
||||
}
|
||||
for ( ; *format >= '0' && *format <= '9'; ++format) {
|
||||
width *= 10;
|
||||
width += *format - '0';
|
||||
}
|
||||
if( *format == 's' ) {
|
||||
register char *s = (char *)va_arg( args, int );
|
||||
pc += prints (out, s?s:"(null)", width, pad);
|
||||
continue;
|
||||
}
|
||||
if( *format == 'd' ) {
|
||||
pc += printi (out, va_arg( args, int ), 10, 1, width, pad, 'a');
|
||||
continue;
|
||||
}
|
||||
if( *format == 'x' ) {
|
||||
pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'a');
|
||||
continue;
|
||||
}
|
||||
if( *format == 'X' ) {
|
||||
pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'A');
|
||||
continue;
|
||||
}
|
||||
if( *format == 'u' ) {
|
||||
pc += printi (out, va_arg( args, int ), 10, 0, width, pad, 'a');
|
||||
continue;
|
||||
}
|
||||
if( *format == 'c' ) {
|
||||
/* char are converted to int then pushed on the stack */
|
||||
scr[0] = (char)va_arg( args, int );
|
||||
scr[1] = '\0';
|
||||
pc += prints (out, scr, width, pad);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else {
|
||||
out:
|
||||
printchar (out, *format);
|
||||
++pc;
|
||||
}
|
||||
}
|
||||
if (out) **out = '\0';
|
||||
va_end( args );
|
||||
return pc;
|
||||
}
|
||||
|
||||
int printf(const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start( args, format );
|
||||
return print( 0, format, args );
|
||||
}
|
||||
|
||||
int sprintf(char *out, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start( args, format );
|
||||
return print( &out, format, args );
|
||||
}
|
||||
|
||||
|
||||
int snprintf( char *buf, unsigned int count, const char *format, ... )
|
||||
{
|
||||
va_list args;
|
||||
|
||||
( void ) count;
|
||||
|
||||
va_start( args, format );
|
||||
return print( &buf, format, args );
|
||||
}
|
||||
|
||||
|
||||
#ifdef TEST_PRINTF
|
||||
int main(void)
|
||||
{
|
||||
char *ptr = "Hello world!";
|
||||
char *np = 0;
|
||||
int i = 5;
|
||||
unsigned int bs = sizeof(int)*8;
|
||||
int mi;
|
||||
char buf[80];
|
||||
|
||||
mi = (1 << (bs-1)) + 1;
|
||||
printf("%s\n", ptr);
|
||||
printf("printf test\n");
|
||||
printf("%s is null pointer\n", np);
|
||||
printf("%d = 5\n", i);
|
||||
printf("%d = - max int\n", mi);
|
||||
printf("char %c = 'a'\n", 'a');
|
||||
printf("hex %x = ff\n", 0xff);
|
||||
printf("hex %02x = 00\n", 0);
|
||||
printf("signed %d = unsigned %u = hex %x\n", -3, -3, -3);
|
||||
printf("%d %s(s)%", 0, "message");
|
||||
printf("\n");
|
||||
printf("%d %s(s) with %%\n", 0, "message");
|
||||
sprintf(buf, "justif: \"%-10s\"\n", "left"); printf("%s", buf);
|
||||
sprintf(buf, "justif: \"%10s\"\n", "right"); printf("%s", buf);
|
||||
sprintf(buf, " 3: %04d zero padded\n", 3); printf("%s", buf);
|
||||
sprintf(buf, " 3: %-4d left justif.\n", 3); printf("%s", buf);
|
||||
sprintf(buf, " 3: %4d right justif.\n", 3); printf("%s", buf);
|
||||
sprintf(buf, "-3: %04d zero padded\n", -3); printf("%s", buf);
|
||||
sprintf(buf, "-3: %-4d left justif.\n", -3); printf("%s", buf);
|
||||
sprintf(buf, "-3: %4d right justif.\n", -3); printf("%s", buf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* if you compile this file with
|
||||
* gcc -Wall $(YOUR_C_OPTIONS) -DTEST_PRINTF -c printf.c
|
||||
* you will get a normal warning:
|
||||
* printf.c:214: warning: spurious trailing `%' in format
|
||||
* this line is testing an invalid % at the end of the format string.
|
||||
*
|
||||
* this should display (on 32bit int machine) :
|
||||
*
|
||||
* Hello world!
|
||||
* printf test
|
||||
* (null) is null pointer
|
||||
* 5 = 5
|
||||
* -2147483647 = - max int
|
||||
* char a = 'a'
|
||||
* hex ff = ff
|
||||
* hex 00 = 00
|
||||
* signed -3 = unsigned 4294967293 = hex fffffffd
|
||||
* 0 message(s)
|
||||
* 0 message(s) with %
|
||||
* justif: "left "
|
||||
* justif: " right"
|
||||
* 3: 0003 zero padded
|
||||
* 3: 3 left justif.
|
||||
* 3: 3 right justif.
|
||||
* -3: -003 zero padded
|
||||
* -3: -3 left justif.
|
||||
* -3: -3 right justif.
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* To keep linker happy. */
|
||||
int write( int i, char* c, int n)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,227 @@
|
|||
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
|
||||
|
||||
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
|
||||
|
||||
/* ELIGIBILITY FOR ANY PURPOSES. */
|
||||
|
||||
/* (C) Fujitsu Microelectronics Europe GmbH */
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
taskutility.C
|
||||
-
|
||||
-------------------------------------------------------------------------*/
|
||||
|
||||
/*************************@INCLUDE_START************************/
|
||||
#include "mb96348hs.h"
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "queue.h"
|
||||
|
||||
static void vUART0Task( void *pvParameters );
|
||||
|
||||
/**************************@INCLUDE_END*************************/
|
||||
|
||||
/*********************@GLOBAL_VARIABLES_START*******************/
|
||||
const char ASCII[] = "0123456789ABCDEF";
|
||||
|
||||
xTaskHandle UART_TaskHandle;
|
||||
|
||||
static xQueueHandle xQueue;
|
||||
void InitUart0( void )
|
||||
{
|
||||
/* Initialize UART asynchronous mode */
|
||||
BGR0 = configCLKP1_CLOCK_HZ / 9600; /* 9600 Baud @ CLKP1 - 56 MHz */
|
||||
|
||||
SCR0 = 0x17; /* 8N1 */
|
||||
SMR0 = 0x0d; /* enable SOT3, Reset, normal mode */
|
||||
SSR0 = 0x02; /* LSB first, enable receive interrupts */
|
||||
|
||||
PIER08_IE2 = 1; /* enable input */
|
||||
DDR08_D2 = 0; /* switch P08_2 to input */
|
||||
DDR08_D3 = 1; /* switch P08_3 to output */
|
||||
}
|
||||
|
||||
void Putch0( char ch ) /* sends a char */
|
||||
{
|
||||
while( SSR0_TDRE == 0 );
|
||||
|
||||
/* wait for transmit buffer empty */
|
||||
TDR0 = ch; /* put ch into buffer */
|
||||
}
|
||||
|
||||
char Getch0( void ) /* waits for and returns incomming char */
|
||||
{
|
||||
volatile unsigned ch;
|
||||
|
||||
while( SSR0_RDRF == 0 );
|
||||
|
||||
/* wait for data received */
|
||||
if( SSR0_ORE ) /* overrun error */
|
||||
{
|
||||
ch = RDR0; /* reset error flags */
|
||||
return ( char ) ( -1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
return( RDR0 ); /* return char */
|
||||
}
|
||||
}
|
||||
|
||||
void Puts0( const char *Name1 ) /* Puts a String to UART */
|
||||
{
|
||||
volatile portSHORT i, len;
|
||||
len = strlen( Name1 );
|
||||
|
||||
for( i = 0; i < len; i++ ) /* go through string */
|
||||
{
|
||||
if( Name1[i] == 10 )
|
||||
{
|
||||
Putch0( 13 );
|
||||
}
|
||||
|
||||
Putch0( Name1[i] ); /* send it out */
|
||||
}
|
||||
}
|
||||
|
||||
void Puthex0( unsigned long n, unsigned char digits )
|
||||
{
|
||||
unsigned portCHAR digit = 0, div = 0, i;
|
||||
|
||||
div = ( 4 * (digits - 1) ); /* init shift divisor */
|
||||
for( i = 0; i < digits; i++ )
|
||||
{
|
||||
digit = ( (n >> div) & 0xF ); /* get hex-digit value */
|
||||
Putch0( digit + ((digit < 0xA) ? '0' : 'A' - 0xA) );
|
||||
div -= 4; /* next digit shift */
|
||||
}
|
||||
}
|
||||
|
||||
void Putdec0( unsigned long x, int digits )
|
||||
{
|
||||
portSHORT i;
|
||||
portCHAR buf[10], sign = 1;
|
||||
|
||||
if( digits < 0 )
|
||||
{ /* should be print of zero? */
|
||||
digits *= ( -1 );
|
||||
sign = 1;
|
||||
}
|
||||
|
||||
buf[digits] = '\0'; /* end sign of string */
|
||||
|
||||
for( i = digits; i > 0; i-- )
|
||||
{
|
||||
buf[i - 1] = ASCII[x % 10];
|
||||
x = x / 10;
|
||||
}
|
||||
|
||||
if( sign )
|
||||
{
|
||||
for( i = 0; buf[i] == '0'; i++ )
|
||||
{ /* no print of zero */
|
||||
if( i < digits - 1 )
|
||||
{
|
||||
buf[i] = ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Puts0( buf ); /* send string */
|
||||
}
|
||||
|
||||
void vUtilityStartTraceTask( unsigned portBASE_TYPE uxPriority )
|
||||
{
|
||||
xQueue = xQueueCreate( 5, sizeof( char ) );
|
||||
|
||||
if( xQueue != NULL )
|
||||
{
|
||||
portENTER_CRITICAL();
|
||||
InitUart0();
|
||||
portENTER_CRITICAL();
|
||||
xTaskCreate( vUART0Task, (signed portCHAR *) "UART1", configMINIMAL_STACK_SIZE * 3, ( void * ) NULL, uxPriority, &UART_TaskHandle );
|
||||
}
|
||||
}
|
||||
|
||||
static void vUART0Task( void *pvParameters )
|
||||
{
|
||||
static portCHAR buff[ 800 ] = { 0 };
|
||||
unsigned portLONG trace_len;
|
||||
signed portLONG i, j, l = 0;
|
||||
|
||||
unsigned portCHAR ch;
|
||||
( void ) pvParameters;
|
||||
|
||||
SSR0_RIE = 1;
|
||||
|
||||
Puts0( "\n -------------MB96348 FreeRTOS DEMO Task List and Trace Utility----------- \n" );
|
||||
|
||||
for( ;; )
|
||||
{
|
||||
Puts0( "\n\rPress any of the following keys for the corresponding functionality: " );
|
||||
|
||||
Puts0( "\n\r1: To call vTaskList() and display current task status " );
|
||||
|
||||
Puts0( "\n\r2: To call vTaskStartTrace() and to display trace results once the trace ends" );
|
||||
|
||||
/* Block on the semaphore. The UART interrupt will use the semaphore to
|
||||
wake this task when required. */
|
||||
xQueueReceive( xQueue, &ch, portMAX_DELAY );
|
||||
|
||||
switch( ch )
|
||||
{
|
||||
case '1':
|
||||
vTaskList( (signed char *) buff );
|
||||
Puts0( "\n\rThe current task list is as follows...." );
|
||||
Puts0( "\n\r----------------------------------------------" );
|
||||
Puts0( "\n\rName State Priority Stack Number" );
|
||||
Puts0( "\n\r----------------------------------------------" );
|
||||
Puts0( buff );
|
||||
Puts0( "\r----------------------------------------------" );
|
||||
break;
|
||||
|
||||
case '2':
|
||||
vTaskStartTrace( (signed char *) buff, sizeof( buff ) );
|
||||
Puts0( "\n\rThe trace started!!" );
|
||||
vTaskDelay( (portTickType) 500 );
|
||||
trace_len = ulTaskEndTrace();
|
||||
Puts0( "\n\rThe trace ended!!" );
|
||||
Puts0( "\n\rThe trace is as follows...." );
|
||||
Puts0( "\n\r--------------------------------------------------------" );
|
||||
Puts0( "\n\r Tick | Task Number | Tick | Task Number |" );
|
||||
Puts0( "\n\r--------------------------------------------------------\n\r" );
|
||||
|
||||
for( i = 0; i < trace_len; i += 4 )
|
||||
{
|
||||
for( j = i + 3; j >= i; j-- )
|
||||
{
|
||||
Puthex0( buff[j], 2 );
|
||||
}
|
||||
|
||||
Puts0( " | " );
|
||||
l++;
|
||||
if( l == 4 )
|
||||
{
|
||||
Puts0( "\n" );
|
||||
l = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Puts0( "\r--------------------------------------------------------" );
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Puts0( "\n" );
|
||||
}
|
||||
}
|
||||
|
||||
__interrupt void UART0_TraceRxISR( void )
|
||||
{
|
||||
unsigned portCHAR ch;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
ch = RDR0;
|
||||
xQueueSendFromISR( xQueue, &ch, &xHigherPriorityTaskWoken );
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef TASK_UTILITY_H
|
||||
#define TASK_UTILITY_H
|
||||
|
||||
/* Start the task that writes the tace information to the UART. */
|
||||
void vUtilityStartTraceTask( unsigned portBASE_TYPE uxPriority );
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,182 @@
|
|||
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
|
||||
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
|
||||
/* ELIGIBILITY FOR ANY PURPOSES. */
|
||||
/* (C) Fujitsu Microelectronics Europe GmbH */
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
VECTORS.C
|
||||
- Interrupt level (priority) setting
|
||||
- Interrupt vector definition
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "mb96348hs.h"
|
||||
#include "FreeRTOSConfig.h"
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
InitIrqLevels()
|
||||
This function pre-sets all interrupt control registers. It can be used
|
||||
to set all interrupt priorities in static applications. If this file
|
||||
contains assignments to dedicated resources, verify that the
|
||||
appropriate controller is used.
|
||||
NOTE: value 7 disables the interrupt and value 0 sets highest priority.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#define MIN_ICR 12
|
||||
#define MAX_ICR 96
|
||||
|
||||
#define DEFAULT_ILM_MASK 7
|
||||
|
||||
void InitIrqLevels( void )
|
||||
{
|
||||
volatile int irq;
|
||||
|
||||
for( irq = MIN_ICR; irq <= MAX_ICR; irq++ )
|
||||
{
|
||||
ICR = ( irq << 8 ) | DEFAULT_ILM_MASK;
|
||||
}
|
||||
|
||||
ICR = ( (51 & 0xFF) << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* Reload Timer 0 of MB9634x Series */
|
||||
ICR = ( (12 & 0xFF) << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* Delayed interrupt of 16FX Family */
|
||||
|
||||
ICR = ( 79 << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* UART 0 Rx of MB9634x Series */
|
||||
ICR = ( 80 << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* UART 0 Tx of MB9634x Series */
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
Prototypes
|
||||
Add your own prototypes here. Each vector definition needs is proto-
|
||||
type. Either do it here or include a header file containing them.
|
||||
-----------------------------------------------------------------------------*/
|
||||
__interrupt void DefaultIRQHandler( void );
|
||||
|
||||
extern __interrupt void prvRLT0_TICKISR( void );
|
||||
|
||||
extern __interrupt void UART0_RxISR( void );
|
||||
extern __interrupt void UART0_TxISR( void );
|
||||
extern __interrupt void UART0_TraceRxISR( void );
|
||||
extern __interrupt void vPortYield( void );
|
||||
extern __interrupt void vPortYieldDelayed( void );
|
||||
|
||||
#if ( INCLUDE_TraceListTasks == 1 )
|
||||
extern __interrupt void UART1_RxISR( void );
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
Vector definiton for MB9634x
|
||||
Use following statements to define vectors. All resource related
|
||||
vectors are predefined. Remaining software interrupts can be added here
|
||||
as well.
|
||||
NOTE: If software interrupts 0 to 7 are defined here, this might
|
||||
conflict with the reset vector in the start-up file.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#pragma intvect DefaultIRQHandler 11 /* Non-maskable Interrupt */
|
||||
|
||||
#pragma intvect vPortYieldDelayed 12 /* Delayed Interrupt */
|
||||
|
||||
#pragma intvect DefaultIRQHandler 13 /* RC Timer */
|
||||
#pragma intvect DefaultIRQHandler 14 /* Main Clock Timer */
|
||||
#pragma intvect DefaultIRQHandler 15 /* Sub Clock Timer */
|
||||
#pragma intvect DefaultIRQHandler 16 /* Reserved */
|
||||
#pragma intvect DefaultIRQHandler 17 /* EXT0 */
|
||||
#pragma intvect DefaultIRQHandler 18 /* EXT1 */
|
||||
#pragma intvect DefaultIRQHandler 19 /* EXT2 */
|
||||
#pragma intvect DefaultIRQHandler 20 /* EXT3 */
|
||||
#pragma intvect DefaultIRQHandler 21 /* EXT4 */
|
||||
#pragma intvect DefaultIRQHandler 22 /* EXT5 */
|
||||
#pragma intvect DefaultIRQHandler 23 /* EXT6 */
|
||||
#pragma intvect DefaultIRQHandler 24 /* EXT7 */
|
||||
#pragma intvect DefaultIRQHandler 25 /* EXT8 */
|
||||
#pragma intvect DefaultIRQHandler 26 /* EXT9 */
|
||||
#pragma intvect DefaultIRQHandler 27 /* EXT10 */
|
||||
#pragma intvect DefaultIRQHandler 28 /* EXT11 */
|
||||
#pragma intvect DefaultIRQHandler 29 /* EXT12 */
|
||||
#pragma intvect DefaultIRQHandler 30 /* EXT13 */
|
||||
#pragma intvect DefaultIRQHandler 31 /* EXT14 */
|
||||
#pragma intvect DefaultIRQHandler 32 /* EXT15 */
|
||||
#pragma intvect DefaultIRQHandler 33 /* CAN0 */
|
||||
#pragma intvect DefaultIRQHandler 34 /* CAN1 */
|
||||
#pragma intvect DefaultIRQHandler 35 /* PPG0 */
|
||||
#pragma intvect DefaultIRQHandler 36 /* PPG1 */
|
||||
#pragma intvect DefaultIRQHandler 37 /* PPG2 */
|
||||
#pragma intvect DefaultIRQHandler 38 /* PPG3 */
|
||||
#pragma intvect DefaultIRQHandler 39 /* PPG4 */
|
||||
#pragma intvect DefaultIRQHandler 40 /* PPG5 */
|
||||
#pragma intvect DefaultIRQHandler 41 /* PPG6 */
|
||||
#pragma intvect DefaultIRQHandler 42 /* PPG7 */
|
||||
#pragma intvect DefaultIRQHandler 43 /* PPG8 */
|
||||
#pragma intvect DefaultIRQHandler 44 /* PPG9 */
|
||||
#pragma intvect DefaultIRQHandler 45 /* PPG10 */
|
||||
#pragma intvect DefaultIRQHandler 46 /* PPG11 */
|
||||
#pragma intvect DefaultIRQHandler 47 /* PPG12 */
|
||||
#pragma intvect DefaultIRQHandler 48 /* PPG13 */
|
||||
#pragma intvect DefaultIRQHandler 49 /* PPG14 */
|
||||
#pragma intvect DefaultIRQHandler 50 /* PPG15 */
|
||||
|
||||
#pragma intvect prvRLT0_TICKISR 51 /* RLT0 */
|
||||
|
||||
#pragma intvect DefaultIRQHandler 52 /* RLT1 */
|
||||
#pragma intvect DefaultIRQHandler 53 /* RLT2 */
|
||||
#pragma intvect DefaultIRQHandler 54 /* RLT3 */
|
||||
#pragma intvect DefaultIRQHandler 55 /* PPGRLT - RLT6 */
|
||||
#pragma intvect DefaultIRQHandler 56 /* ICU0 */
|
||||
#pragma intvect DefaultIRQHandler 57 /* ICU1 */
|
||||
#pragma intvect DefaultIRQHandler 58 /* ICU2 */
|
||||
#pragma intvect DefaultIRQHandler 59 /* ICU3 */
|
||||
#pragma intvect DefaultIRQHandler 60 /* ICU4 */
|
||||
#pragma intvect DefaultIRQHandler 61 /* ICU5 */
|
||||
#pragma intvect DefaultIRQHandler 62 /* ICU6 */
|
||||
#pragma intvect DefaultIRQHandler 63 /* ICU7 */
|
||||
#pragma intvect DefaultIRQHandler 64 /* OCU0 */
|
||||
#pragma intvect DefaultIRQHandler 65 /* OCU1 */
|
||||
#pragma intvect DefaultIRQHandler 66 /* OCU2 */
|
||||
#pragma intvect DefaultIRQHandler 67 /* OCU3 */
|
||||
#pragma intvect DefaultIRQHandler 68 /* OCU4 */
|
||||
#pragma intvect DefaultIRQHandler 69 /* OCU5 */
|
||||
#pragma intvect DefaultIRQHandler 70 /* OCU6 */
|
||||
#pragma intvect DefaultIRQHandler 71 /* OCU7 */
|
||||
#pragma intvect DefaultIRQHandler 72 /* FRT0 */
|
||||
#pragma intvect DefaultIRQHandler 73 /* FRT1 */
|
||||
#pragma intvect DefaultIRQHandler 74 /* I2C0 */
|
||||
#pragma intvect DefaultIRQHandler 75 /* I2C1 */
|
||||
#pragma intvect DefaultIRQHandler 76 /* ADC */
|
||||
#pragma intvect DefaultIRQHandler 77 /* ALARM0 */
|
||||
#pragma intvect DefaultIRQHandler 78 /* ALARM1 */
|
||||
|
||||
#if ( INCLUDE_TraceListTasks == 1 )
|
||||
#pragma intvect UART0_TraceRxISR 79 /* LIN-UART 0 RX */
|
||||
#pragma intvect DefaultIRQHandler 80 /* LIN-UART 0 TX */
|
||||
#else
|
||||
#pragma intvect UART0_RxISR 79 /* LIN-UART 0 RX */
|
||||
#pragma intvect UART0_TxISR 80 /* LIN-UART 0 TX */
|
||||
#endif
|
||||
|
||||
#pragma intvect DefaultIRQHandler 81 /* LIN-UART 1 RX */
|
||||
#pragma intvect DefaultIRQHandler 82 /* LIN-UART 1 TX */
|
||||
#pragma intvect DefaultIRQHandler 83 /* LIN-UART 2 RX */
|
||||
#pragma intvect DefaultIRQHandler 84 /* LIN-UART 2 TX */
|
||||
#pragma intvect DefaultIRQHandler 85 /* LIN-UART 3 RX */
|
||||
#pragma intvect DefaultIRQHandler 86 /* LIN-UART 3 TX */
|
||||
#pragma intvect DefaultIRQHandler 87 /* MAIN FLASH IRQ */
|
||||
#pragma intvect DefaultIRQHandler 88 /* SATELLITE FLASH IRQ (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 89 /* LIN-UART 7 RX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 90 /* LIN-UART 7 TX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 91 /* LIN-UART 8 RX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 92 /* LIN-UART 8 TX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 93 /* LIN-UART 9 RX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 94 /* LIN-UART 9 TX (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 95 /* RTC (not on all devices) */
|
||||
#pragma intvect DefaultIRQHandler 96 /* CAL (not on all devices) */
|
||||
|
||||
#pragma intvect vPortYield 122 /* INT #122 */
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
DefaultIRQHandler()
|
||||
This function is a placeholder for all vector definitions. Either use
|
||||
your own placeholder or add necessary code here.
|
||||
-----------------------------------------------------------------------------*/
|
||||
__interrupt void DefaultIRQHandler( void )
|
||||
{
|
||||
__DI(); /* disable interrupts */
|
||||
while( 1 )
|
||||
{
|
||||
__wait_nop(); /* halt system */
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
|
||||
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
|
||||
/* ELIGIBILITY FOR ANY PURPOSES. */
|
||||
/* (C) Fujitsu Microelectronics Europe GmbH */
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
watchdog.c
|
||||
- This file contains the function deefinition for hardware watchdog.
|
||||
-------------------------------------------------------------------------*/
|
||||
#include "mb96348hs.h"
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* Setup Watchdog
|
||||
*---------------------------------------------------------------------------*/
|
||||
#if WATCHDOG != WTC_NONE
|
||||
void InitWatchdog( void )
|
||||
{
|
||||
WDTC_WTI = WTC_PER_2_23; /* 2^23/CLKWT */
|
||||
WDTC_WTCS = WTC_CLKMC; /* CLKWT=CLKMC, Watchdog expiration delay = 2.097s @ 4MHZ CLKMC*/
|
||||
WDTCP = 0x00; /* Activate Watchdog, Clear Pattern 0x00 */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* The below task clears the watchdog and blocks itself for WTC_CLR_PER ticks.
|
||||
*---------------------------------------------------------------------------*/
|
||||
#if WATCHDOG == WTC_IN_TASK
|
||||
static void prvWatchdogTask( void *pvParameters )
|
||||
{
|
||||
const portTickType xFrequency = WTC_CLR_PER;
|
||||
portTickType xLastWakeTime;
|
||||
( void ) pvParameters;
|
||||
|
||||
/* Get currrent tick count */
|
||||
xLastWakeTime = xTaskGetTickCount();
|
||||
|
||||
for( ;; )
|
||||
{
|
||||
/* Get currrent tick count */
|
||||
xLastWakeTime = xTaskGetTickCount();
|
||||
|
||||
Kick_Watchdog();
|
||||
|
||||
/* Block the task for WTC_CLR_PER ticks (1s) at watchdog overflow period of WTC_PER_2_23 CLKMC cycles */
|
||||
vTaskDelayUntil( &xLastWakeTime, xFrequency );
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* The below function creates hardware watchdog task.
|
||||
*---------------------------------------------------------------------------*/
|
||||
#if WATCHDOG == WTC_IN_TASK
|
||||
void vStartWatchdogTask( unsigned portBASE_TYPE uxPriority )
|
||||
{
|
||||
xTaskCreate( prvWatchdogTask, (signed portCHAR *) "KickWTC", portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );
|
||||
}
|
||||
|
||||
#endif
|
|
@ -0,0 +1,90 @@
|
|||
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
|
||||
|
||||
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
|
||||
|
||||
/* ELIGIBILITY FOR ANY PURPOSES. */
|
||||
|
||||
/* (C) Fujitsu Microelectronics Europe GmbH */
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
watchdog.h
|
||||
- This file contains the defines and function declaration for hardware watchdog.
|
||||
-------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Clear watchdog defines
|
||||
*/
|
||||
#define WTC_NONE 0 /* Don't initialize and clear watchdog */
|
||||
#define WTC_IN_TASK 1 /* Clear Watchdog in dedicated task */
|
||||
#define WTC_IN_TICK 2 /* Clear Watchdog in TICK Hook */
|
||||
#define WTC_IN_IDLE 3 /* Clear Watchdog in Idle Hook */
|
||||
|
||||
#define WATCHDOG WTC_NONE /* Clear Watchdog in vWatchdogTask() */
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Watchdog period defines
|
||||
*/
|
||||
#define WTC_PER_2_9 0 /* The watchdog period is 2^9/CLKWT */
|
||||
#define WTC_PER_2_10 1 /* The watchdog period is 2^10/CLKWT */
|
||||
#define WTC_PER_2_11 2 /* The watchdog period is 2^11/CLKWT */
|
||||
#define WTC_PER_2_12 3 /* The watchdog period is 2^12/CLKWT */
|
||||
#define WTC_PER_2_13 4 /* The watchdog period is 2^13/CLKWT */
|
||||
#define WTC_PER_2_14 5 /* The watchdog period is 2^14/CLKWT */
|
||||
#define WTC_PER_2_15 6 /* The watchdog period is 2^15/CLKWT */
|
||||
#define WTC_PER_2_16 7 /* The watchdog period is 2^16/CLKWT */
|
||||
#define WTC_PER_2_17 8 /* The watchdog period is 2^17/CLKWT */
|
||||
#define WTC_PER_2_18 9 /* The watchdog period is 2^18/CLKWT */
|
||||
#define WTC_PER_2_19 10 /* The watchdog period is 2^19/CLKWT */
|
||||
#define WTC_PER_2_20 11 /* The watchdog period is 2^20/CLKWT */
|
||||
#define WTC_PER_2_21 12 /* The watchdog period is 2^21/CLKWT */
|
||||
#define WTC_PER_2_22 13 /* The watchdog period is 2^22/CLKWT */
|
||||
#define WTC_PER_2_23 14 /* The watchdog period is 2^23/CLKWT */
|
||||
#define WTC_PER_2_24 15 /* The watchdog period is 2^24/CLKWT */
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Watchdog Clock source defines
|
||||
*/
|
||||
#define WTC_CLKRC0 0 /* The watchdog clock is CLKRC */
|
||||
#define WTC_CLKRC1 1 /* The watchdog clock is CLKRC,
|
||||
changing RC clock while watchdog opeation causes reset */
|
||||
#define WTC_CLKMC 2 /* The watchdog clock is CLKMC */
|
||||
#define WTC_CLKSC 3 /* The watchdog clock is CLKSC */
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Watchdog Reset at transition to Stop mode defines
|
||||
*/
|
||||
#define WTC_RSTP_0 0 /* No watchdog reset at transition to Stop mode */
|
||||
#define WTC_RSTP_1 1 /* watchdog reset at transition to Stop mode */
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* After every WTC_CLR_PER ticks the watchdog would be cleared in the prvWatchdogTask().
|
||||
* This period needs to be chosed in accordance with the current CLKWT and the above
|
||||
* setting WTC_PER_2_XX.
|
||||
*/
|
||||
#define WTC_CLR_PER 100 /* The watchdog clear period in RTOS ticks */
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Kick_watchdog Macro to clear watchdog
|
||||
*/
|
||||
#define Kick_Watchdog() \
|
||||
{ \
|
||||
WDTCP = 0x00; \
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Watchdog function declarations
|
||||
*/
|
||||
void InitWatchdog( void );
|
||||
void vStartWatchdogTask( unsigned portBASE_TYPE uxPriority );
|
|
@ -0,0 +1,98 @@
|
|||
$CPUSERIES-907
|
||||
$Prj-STANDALONE
|
||||
$0
|
||||
-g
|
||||
-w 1
|
||||
-INF LIST
|
||||
-D __CONFIG__=3
|
||||
-I ".\Src"
|
||||
-I ".\Src\config"
|
||||
-I ".\Src\watchdog"
|
||||
-I "..\..\Common\include"
|
||||
-I "..\..\..\Source\include"
|
||||
-I "..\..\..\Source\portable\Softune\MB96340"
|
||||
-I ".\Src\utility"
|
||||
-O 1
|
||||
-model MEDIUM
|
||||
-B
|
||||
-Xdof
|
||||
-xauto 127
|
||||
-x vTaskSwitchContext,vTaskIncrementTick
|
||||
-K NOEOPT
|
||||
-K NOLIB
|
||||
-K NOUNROLL
|
||||
$other
|
||||
-INF srcin
|
||||
-D __96340
|
||||
$time
|
||||
1203265443
|
||||
$end
|
||||
$1
|
||||
-g
|
||||
-w 2
|
||||
-D __CONFIG__=3
|
||||
-I "C:\Fujitsu\FreeRTOS\FreeRTOS Port 16FX\96340_FreeRTOS_96348hs-v17\96340_FreeRTOS_96348hs-v17\Src\os"
|
||||
-I "C:\Fujitsu\FreeRTOS\FreeRTOS Port 16FX\96340_FreeRTOS_96348hs-v17\96340_FreeRTOS_96348hs-v17\Src\port"
|
||||
-linf ON
|
||||
-lsrc ON
|
||||
-lsec ON
|
||||
-lcros OFF
|
||||
-linc ON
|
||||
-lexp OBJ
|
||||
-pl 60
|
||||
-pw 100
|
||||
-tab 8
|
||||
-lf
|
||||
-Xdof
|
||||
$other
|
||||
$time
|
||||
1202902449
|
||||
$end
|
||||
$2
|
||||
-g
|
||||
-AL 2
|
||||
-ra _INRAM01=0x000180/0x00037F
|
||||
-ra _INRAM02=0x002240/0x007FFF
|
||||
-ro _INROM03=0xF80000/0xFFFFFF
|
||||
-ro _INROM01=0xDE0000/0xDE7FFF
|
||||
-ro _INROM02=0xDF0000/0xDF7FFF
|
||||
-sc CONST/Data/BYTE=0xFF8000
|
||||
-check_rora
|
||||
-check_locate
|
||||
-rg 0
|
||||
-m
|
||||
-pl 60
|
||||
-pw 132
|
||||
-Xals
|
||||
-Xalr
|
||||
-na
|
||||
-w 2
|
||||
-Xdof
|
||||
$other
|
||||
-Xset_rora
|
||||
$time
|
||||
1203262255
|
||||
$end
|
||||
$3
|
||||
-dt s,d,r,a
|
||||
-pl 60
|
||||
-pw 132
|
||||
-g
|
||||
-Xdof
|
||||
$other
|
||||
$time
|
||||
1203262255
|
||||
$end
|
||||
$4
|
||||
-Xdof
|
||||
$other
|
||||
$time
|
||||
1202902449
|
||||
$end
|
||||
$5
|
||||
$other
|
||||
$time
|
||||
1202902449
|
||||
$end
|
||||
$Prjend
|
||||
$CPUSERIESEND
|
|
@ -0,0 +1,147 @@
|
|||
==========================================================================
|
||||
Template Project for MB96348HS Series
|
||||
==========================================================================
|
||||
Fujitsu Microelectronics Europe GmbH
|
||||
|
||||
The following software is for demonstration purposes only. It is not
|
||||
fully tested, nor validated in order to fullfill its task under all
|
||||
circumstances. Therefore, this software or any part of it must only be
|
||||
used in an evaluation laboratory environment.
|
||||
This software is subject to the rules of our standard DISCLAIMER, that is
|
||||
delivered with our SW-tools on the Fujitsu Microcontrollers DVD
|
||||
(V5.0 or higher "\START.HTM").
|
||||
==========================================================================
|
||||
|
||||
History
|
||||
Date Ver Author Softune Description
|
||||
2007-10-29 1.0 MPi V30L33R11 original version
|
||||
2007-11-02 1.1 MPi V30L33R11 Added the watchdog functionality
|
||||
Used vTaskStartScheduler() instead
|
||||
of xPortStartScheduler()
|
||||
2007-11-12 1.2 MPi V30L33R11 Updated FreeRTOS 4.6.1 and tested
|
||||
2007-11-23 1.3 MPi V30L33R11 Seperated watchdog functionality in watchdog.c
|
||||
and watchdog.h
|
||||
2008-01-03 1.4 MPi V30L33R11 Added portYIELDFromISR() and now all the
|
||||
demo application functions are working.
|
||||
2008-01-04 1.5 MPi V30L33R11 Updated FreeRTOS 4.7.0 and tested
|
||||
2008-01-10 1.6 MPi V30L33R11 Replaced INT9 with INT #122 in macro portYIELD()
|
||||
2008-01-14 1.7 MPi V30L33R11 Modified the code to work with SK-16FX-100PMC V1.1
|
||||
2008-01-15 1.8 MPi V30L33R11 Integrated SVN releases 1.5 and 1.6.
|
||||
==========================================================================
|
||||
1.0.
|
||||
This is a project is to test the FreeRTOS port for 16FX and the demo application
|
||||
which runs on FLASH-CAN-100P-240.
|
||||
|
||||
This FreeRTOS port uses the Task Stack pointed by User Stack pointer (USB:USP) for
|
||||
tasks and the system stack pointed by System Stack pointer (SSB:SSP) for everything
|
||||
else.
|
||||
|
||||
This port is tested with MEDIUM and LARGE memory model and seems to be working fine.
|
||||
The define MEMMODEL has to be configured in order to use the corresponding memory
|
||||
model.
|
||||
|
||||
This port doesnt use any register banking and always uses bank 0. It also consider that
|
||||
the parameters to the tasks is passed via stack and not via registers.
|
||||
|
||||
In this port the implemetation of portENTER_CRITICAL() and portEXIT_CRITICAL() macros
|
||||
is changed in order to make them more efficient. Now usCriticalNesting variable is not
|
||||
used to keep track of global interrupt enable. Rather the current PS is stored on to
|
||||
the stack and interrupts are disabled for portENTER_CRITICAL(). And for portEXIT_CRITICAL()
|
||||
simply the PS is restored from stack.
|
||||
|
||||
1.1.
|
||||
In this port, the functionality is added to initialize and clear the watchdog in the
|
||||
dedicated task, Tick Hook or the Idle Hook. The place exactly where the wtachdog can be
|
||||
cleared can be configured. Though Idle Hook is not an approproiate place to clear the
|
||||
watchdog, its done here for demonstration purpose only.
|
||||
|
||||
Also from Main function vTaskStartScheduler() function is called instead of xPortStartScheduler().
|
||||
After doing this change now no more IDLE task is required to be added seperately as
|
||||
vTaskStartScheduler() adds prvIdleTask() on its own.
|
||||
|
||||
1.2.
|
||||
Updated the FreeRTOS version to 4.6.1 and tested with the same.
|
||||
|
||||
1.3.
|
||||
Moved the watchdog functionality to watchdog.c and watchdog.h.
|
||||
|
||||
1.4.
|
||||
Added portYIELDFromISR() which uses delayed interrupt. This macro needs to be used from the
|
||||
application ISRs in order to force a context switch from them if required. It should be noted
|
||||
that the interrupt priority of such application ISRs MUST be always higher than the dealyed
|
||||
interrupt (currently 23) in order to perform the context switch correctly.
|
||||
|
||||
It should be also noted that the RLT0 and Delayed Interrupt priority MUST be always same in order
|
||||
to assure correct working of this port.
|
||||
|
||||
Now portYIELD() used software interrupt INT9 instead of delayed interrupt.
|
||||
|
||||
Now all the queue functions works ok.
|
||||
|
||||
Tested with the heap_1.c, heap_2.c and heap_3.c.
|
||||
|
||||
At one time, either of heap_1.c or heap_2.c or heap_3.c needs to be used. Hence the files those are not
|
||||
required to be used should be removed from the target of the build.
|
||||
|
||||
Added the __STD_LIB_sbrk.c file in order to define the *sbrk() function. This is required while using
|
||||
heap_3.c file which uses the dynamic memory allocation.
|
||||
|
||||
Made changes to the demo application files crhook.c. Please refer the file and grep for "Added by MPi"
|
||||
to find the changes. It should be noted that if INCLUDE_StartHookCoRoutines is defined as 0 (i.e. if
|
||||
vStartHookCoRoutines() functionality is NOT required) then crhook.c file should be removed from target
|
||||
build and uncomment the vApplicationTickHook() function from main.c should be uncommnented.
|
||||
|
||||
Added taskutility.c file. This file contains vUART2Task() which calls vTaskList() and vTaskStartTrace()
|
||||
functions.
|
||||
|
||||
If vCreateBlockTimeTasks() is not called then the LED at PDR00_P7 blinks at normal rate (3s).
|
||||
|
||||
This port is tested with MEDIUM and LARGE memory model and working fine.
|
||||
|
||||
configMINIMAL_STACK_SIZE value changed to 172 from 70 in order to make the port work.
|
||||
|
||||
1.5.
|
||||
Updated the FreeRTOS version to 4.7.0 and tested with the same. Tested for pre-emptive as well as
|
||||
co-operative approach.
|
||||
|
||||
1.6.
|
||||
portYIELD() macro now uses INT #122 instead of INT9.
|
||||
|
||||
Optimized functions vParTestToggleLED() and vParTestSetLED() in main.c.
|
||||
|
||||
Now watchdog uses 2^23 as clock prescaler instead of 2^24. Also updated the WTC_CLR_PER in watchdog.h.
|
||||
|
||||
1.7.
|
||||
Modified the code to work with SK-16FX-100PMC V1.1.
|
||||
|
||||
Made changes to the demo application files crflash.c. Please refer the file and grep for "Added by MPi"
|
||||
to find the changes.
|
||||
|
||||
Made changes to taskutility.c and vectors.c in order to use UART1 instead of UART2.
|
||||
|
||||
Made changes to main.c file in order to handle use the 7-segment display (SEG1) connected to Port09 for tasks
|
||||
and 7-segment display (SEG2) connected to Port00 for co-routines.
|
||||
|
||||
Added config.h and moved the demo application configs there.
|
||||
|
||||
1.8.
|
||||
It should be noted that the readme, appnote and SVN tag version numbers may be different for the same release.
|
||||
|
||||
This readme is specific to project FreeRTOS_96348hs_SK16FX100PMC. And this project specifically works
|
||||
on board SK-16FX-100PMC V1.1 along with EUROScope debugger.
|
||||
|
||||
Created 4 different configuration Config_1 to Config_4. Each config includes certain demo application function.
|
||||
More details specific to each configuration can be found in the appnote.
|
||||
|
||||
Used relative path to include files instead of absolute.
|
||||
|
||||
Created config, MemMang, serial and utility subdirectories and moved corresponding functionlaity there.
|
||||
|
||||
Updated config.h, main.c and start.asm in order to have configuration specific build.
|
||||
|
||||
Clock settings:
|
||||
---------------
|
||||
Crystal: 4 MHz
|
||||
CLKB: 56 MHz
|
||||
CLKP1: 56 MHz
|
||||
CLKP2: 56 MHz
|
Loading…
Add table
Add a link
Reference in a new issue