]> git.sur5r.net Git - freertos/commitdiff
Final check in before tagging V9.0.0. V9.0.0
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 25 May 2016 11:47:42 +0000 (11:47 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 25 May 2016 11:47:42 +0000 (11:47 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2463 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

13 files changed:
FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/main.c
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/CreateRepoDirectoryStructure.bat [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mld [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mss [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.tcl [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_microblaze [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_ps7_cortexa9 [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/portZynq7000.c [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/port_asm_vectors.S [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/MicroBlazeV8/portmicroblaze.c [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.mss [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.tcl [deleted file]
FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c [deleted file]

index a07e648dd221fe40e37171cdeeb31dc2175134a9..12935c525dfaa2bfe64fe39e38f477ce8e12e73f 100644 (file)
  * !!! IMPORTANT NOTE !!!\r
  * The GCC libraries that ship with the Xilinx SDK make use of the floating\r
  * point registers.  To avoid this causing corruption it is necessary to avoid\r
- * their use.  For this reason main.c contains very basic C implementations of\r
- * the standard C library functions memset(), memcpy() and memcmp(), which are\r
- * are used by FreeRTOS itself.  Defining these functions in the project\r
- * prevents the linker pulling them in from the library.  Any other standard C\r
- * library functions that are used by the application must likewise be defined\r
- * in C.\r
+ * their use unless a task has been given a floating point context.  See\r
+ * http://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html\r
+ * for information on how to give a task a floating point context, and how to\r
+ * handle floating point operations in interrupts.  As this demo does not give\r
+ * all tasks a floating point context main.c contains very basic C\r
+ * implementations of the standard C library functions memset(), memcpy() and\r
+ * memcmp(), which are are used by FreeRTOS itself.  Defining these functions in\r
+ * the project prevents the linker pulling them in from the library.  Any other\r
+ * standard C library functions that are used by the application must likewise\r
+ * be defined in C.\r
  *\r
  * ENSURE TO READ THE DOCUMENTATION PAGE FOR THIS PORT AND DEMO APPLICATION ON\r
  * THE http://www.FreeRTOS.org WEB SITE FOR FULL INFORMATION ON USING THIS DEMO\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/CreateRepoDirectoryStructure.bat b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/CreateRepoDirectoryStructure.bat
deleted file mode 100644 (file)
index 7ff3800..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-REM Copy the FreeRTOS source files, including the Cortex-A9 and Microblaze port\r
-REM layers into the repository directory structure.\r
-\r
-copy ..\..\Source\*.c .\repo\bsp\freertos822_xilinx_v1_0\src\Source\r
-copy ..\..\Source\include\*.h .\repo\bsp\freertos822_xilinx_v1_0\src\Source\include\r
-copy ..\..\Source\portable\GCC\ARM_CA9\*.* .\repo\bsp\freertos822_xilinx_v1_0\src\Source\portable\GCC\ARM_CA9\r
-copy ..\..\Source\portable\GCC\MicroBlazeV8\*.* .\repo\bsp\freertos822_xilinx_v1_0\src\Source\portable\GCC\MicroBlazeV8\r
-copy ..\..\Source\portable\MemMang\heap_4.c .\repo\bsp\freertos822_xilinx_v1_0\src\Source\portable\MemMang\r
-\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mld b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mld
deleted file mode 100644 (file)
index d8529ce..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-#\r
-# Copyright (C) 2015 Xilinx, Inc.\r
-#\r
-# This file is part of the FreeRTOS port.\r
-#\r
-# FreeRTOS is free software; you can redistribute it and/or modify it under\r
-# the terms of the GNU General Public License (version 2) as published by the\r
-# Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-#\r
-# NOTE: The modification to the GPL is included to allow you to distribute a\r
-# combined work that includes FreeRTOS without being obliged to provide the\r
-# source code for proprietary components outside of the FreeRTOS kernel.\r
-#\r
-# FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-# FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-# link: http://www.freertos.org/a00114.html\r
-#\r
-\r
-OPTION psf_version = 2.1.0 ;\r
-BEGIN OS freertos822_xilinx\r
-\r
-OPTION DRC = FreeRTOS_drc ;\r
-# _RB_ Not sure if line below is valid.\r
-OPTION supported_peripherals = ps7_cortexa9 microblaze\r
-OPTION COPYFILES = all;\r
-OPTION NAME = freertos822_xilinx;\r
-OPTION VERSION = 1.0;\r
-OPTION DEPENDS = (standalone_v5_0);\r
-OPTION APP_LINKER_FLAGS = "-Wl,--start-group,-lxil,-lfreertos,-lgcc,-lc,--end-group";\r
-OPTION DESC = "FreeRTOS is a market leading open source RTOS";\r
-\r
-# STDIN/STDOUT\r
-PARAM name = stdin, desc = "stdin peripheral", type = peripheral_instance, requires_interface = stdin, default=none, range = (ps7_uart, ps7_coresight_comp, iomodule, axi_uartlite, axi_uart16550, mdm);\r
-PARAM name = stdout, desc = "stdout peripheral", type = peripheral_instance, requires_interface = stdout, default=none, range = (ps7_uart, ps7_coresight_comp, iomodule, axi_uartlite, axi_uart16550, mdm);\r
-\r
-BEGIN CATEGORY kernel_behavior\r
-       PARAM name = kernel_behavior, type = bool, default = true, desc = "Parameters relating to the kernel behavior", permit = none;\r
-       PARAM name = max_api_call_interrupt_priority, type = int, default = 18, desc = "The maximum interrupt priority from which interrupt safe FreeRTOS API calls can be made.";\r
-       PARAM name = use_preemption, type = bool, default = true, desc = "Set to true to use the preemptive scheduler, or false to use the cooperative scheduler.";\r
-       PARAM name = tick_rate, type = int, default = 100, desc = "Number of RTOS ticks per sec";\r
-       PARAM name = idle_yield, type = bool, default = true, desc = "Set to true if the Idle task should yield if another idle priority task is able to run, or false if the idle task should always use its entire time slice unless it is preempted.";\r
-       PARAM name = max_priorities, type = int, default = 4, desc = "The number of task priorities that will be available.  Priorities can be assigned from zero to (max_priorities - 1)";\r
-       PARAM name = minimal_stack_size, type = int, default = 180, desc = "The size of the stack allocated to the Idle task. Also used by standard demo and test tasks found in the main FreeRTOS download.";\r
-       PARAM name = total_heap_size, type = int, default = 32768, desc = "Sets the amount of RAM reserved for use by FreeRTOS - used when tasks, queues, semaphores and event groups are created.";\r
-       PARAM name = max_task_name_len, type = int, default = 8, desc = "The maximum number of characters that can be in the name of a task.";\r
-       PARAM name = use_timeslicing, type = bool, default = true, desc = "When true equal priority ready tasks will share CPU time with a context switch on each tick interrupt.";\r
-       PARAM name = use_port_optimized_task_selection, type = bool, default = true, desc ="When true task selection will be faster at the cost of limiting the maximum number of unique priorities to 32.";\r
-END CATEGORY\r
-\r
-BEGIN CATEGORY kernel_features\r
-       PARAM name = kernel_features, type = bool, default = true, desc = "Include or exclude kernel features", permit = none;\r
-       PARAM name = use_freertos_asserts, type = bool, default = true, desc = "Defines configASSERT() to assist development and debugging.  The application can override the default implementation of vApplicationAssert( char *pcFile, uint32_t ulLine )";\r
-       PARAM name = use_mutexes, type = bool, default = true, desc = "Set to true to include mutex functionality, or false to exclude mutex functionality.";\r
-       PARAM name = use_recursive_mutexes, type = bool, default = true, desc = "Set to true to include recursive mutex functionality, or false to exclude recursive mutex functionality.";\r
-       PARAM name = use_counting_semaphores, type = bool, default = true, desc = "Set to true to include counting semaphore functionality, or false to exclude recursive mutex functionality.";\r
-       PARAM name = queue_registry_size, type = int, default = 10, desc = "The maximum number of queues that can be registered at any one time. Only registered queues can be viewed in the Eclipse/GDB kernel aware debugger plug-in.";\r
-       PARAM name = use_trace_facility, type = bool, default = true, desc = "Set to true to include the legacy trace functionality, and a few other features.  traceMACROS are the preferred method of tracing now.";\r
-       PARAM name = use_newlib_reent, type = bool, default = false, desc = "When true each task will have its own Newlib reent structure.";\r
-       PARAM name = use_queue_sets, type = bool, default = false, desc = "Set to true to include queue set functionality.";\r
-       PARAM name = use_task_notifications, type = bool, default = true, desc = "Set to true to include direct to task notification functionality.";\r
-       PARAM name = check_for_stack_overflow, type = int, default = 2, desc = "Set to 0 for no overflow checking.  Set to 1 to include basic run time task stack checking.  Set to 2 to include more comprehensive run time task stack checking.";\r
-       PARAM name = use_stats_formatting_functions, type = bool, default = true, desc = "Set to 1 to include the vTaskList() and vTaskGetRunTimeStats() functions, which format run-time data into human readable text.";\r
-       PARAM name = num_thread_local_storage_pointers, type = int, default = 0, desc ="Sets the number of pointers each task has to store thread local values.";\r
-END CATEGORY\r
-\r
-BEGIN CATEGORY hook_functions\r
-       PARAM name = hook_functions, type = bool, default = true, desc = "Include or exclude application defined hook (callback) functions.  Callback functions must be defined by the application that is using FreeRTOS", permit = none;\r
-       PARAM name = use_idle_hook, type = bool, default = false, desc = "Set to true for the kernel to call vApplicationIdleHook() on each iteration of the idle task.  The application must provide an implementation of vApplicationIdleHook().";\r
-       PARAM name = use_tick_hook, type = bool, default = false, desc = "Set to true for the kernel to call vApplicationTickHook() during each tick interrupt.  The application must provide an implementation of vApplicationTickHook().";\r
-       PARAM name = use_malloc_failed_hook, type = bool, default = true, desc = "Only used if a FreeRTOS memory manager (heap_n.c) is included in the project.  Set to true for the kernel to call vApplicationMallocFailedHookHook() if there is insufficient FreeRTOS heap available for a task, queue or semaphore to be created.  The application can override the default implementation of vApplicationMallocFailedHook().";\r
-END CATEGORY\r
-\r
-BEGIN CATEGORY software_timers\r
-       PARAM name = software_timers, type = bool, default = true, desc = "Options relating to the software timers functionality", permit = user;\r
-       PARAM name = use_timers, type = bool, default = true, desc = "Set to true to include software timer functionality, or false to exclude software timer functionality";\r
-       PARAM name = timer_task_priority, type = string, default = "(configMAX_PRIORITIES - 1)", desc = "The priority at which the software timer service/daemon task will execute.";\r
-       PARAM name = timer_command_queue_length, type = int, default = 10, desc = "The number of commands the timer command queue can hold at any one time.";\r
-       PARAM name = timer_task_stack_depth, type = string, default = "(configMINIMAL_STACK_SIZE), desc = "The size of the stack allocated to the timer service/daemon task.";\r
-END CATEGORY\r
-\r
-END OS\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mss b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.mss
deleted file mode 100644 (file)
index ed1ab46..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#\r
-# Copyright (C) 2015 Xilinx, Inc.\r
-#\r
-# This file is part of the FreeRTOS port.\r
-#\r
-# FreeRTOS is free software; you can redistribute it and/or modify it under\r
-# the terms of the GNU General Public License (version 2) as published by the\r
-# Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-#\r
-# NOTE: The modification to the GPL is included to allow you to distribute a\r
-# combined work that includes FreeRTOS without being obliged to provide the\r
-# source code for proprietary components outside of the FreeRTOS kernel.\r
-#\r
-# FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-# FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-# link: http://www.freertos.org/a00114.html\r
-#\r
-\r
-PARAMETER VERSION = 2.2.0\r
-\r
-BEGIN OS\r
- PARAMETER OS_NAME = freertos822_xilinx\r
- PARAMETER STDIN =  *\r
- PARAMETER STDOUT = *\r
- PARAMETER SYSTMR_SPEC = true\r
- PARAMETER SYSTMR_DEV = *\r
- PARAMETER SYSINTC_SPEC = *\r
-END\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.tcl b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/data/freertos822_xilinx.tcl
deleted file mode 100644 (file)
index 27451fc..0000000
+++ /dev/null
@@ -1,766 +0,0 @@
-#\r
-# Copyright (C) 2015 Xilinx, Inc.\r
-#\r
-# This file is part of the FreeRTOS port.\r
-#\r
-# FreeRTOS is free software; you can redistribute it and/or modify it under\r
-# the terms of the GNU General Public License (version 2) as published by the\r
-# Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-#\r
-# NOTE: The modification to the GPL is included to allow you to distribute a\r
-# combined work that includes FreeRTOS without being obliged to provide the\r
-# source code for proprietary components outside of the FreeRTOS kernel.\r
-#\r
-# FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-# FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-# link: http://www.freertos.org/a00114.html\r
-#\r
-\r
-\r
-# standalone bsp version. set this to the latest "ACTIVE" version.\r
-set standalone_version standalone_v5_0\r
-\r
-proc FreeRTOS_drc {os_handle} {\r
-\r
-       global env\r
-\r
-       set sw_proc_handle [hsi::get_sw_processor]\r
-       set hw_proc_handle [hsi::get_cells [common::get_property HW_INSTANCE $sw_proc_handle] ]\r
-       set proctype [common::get_property IPNAME $hw_proc_handle]\r
-\r
-       if { $proctype == "microblaze" } {\r
-               mb_drc_checks\r
-       }\r
-}\r
-\r
-proc generate {os_handle} {\r
-\r
-       variable standalone_version\r
-       set have_tick_timer 0\r
-       set sw_proc_handle [hsi::get_sw_processor]\r
-       set hw_proc_handle [hsi::get_cells [common::get_property HW_INSTANCE $sw_proc_handle] ]\r
-       set proctype [common::get_property IP_NAME $hw_proc_handle]\r
-       set need_config_file "false"\r
-\r
-       set commonsrcdir "../${standalone_version}/src/common"\r
-       set mbsrcdir "../${standalone_version}/src/microblaze"\r
-       set arma9srcdir "../${standalone_version}/src/cortexa9"\r
-       set arma9gccdir "../${standalone_version}/src/cortexa9/gcc"\r
-       set arma9armccdir "../${standalone_version}/src/cortexa9/armcc"\r
-       set arma9iarccdir "../${standalone_version}/src/cortexa9/iarcc"\r
-\r
-       foreach entry [glob -nocomplain [file join $commonsrcdir *]] {\r
-               file copy -force $entry [file join ".." "${standalone_version}" "src"]\r
-       }\r
-\r
-       switch $proctype {\r
-\r
-               "ps7_cortexa9"  {\r
-                               puts "In start copy ps7_cortexa9"\r
-                               file copy -force "./src/Makefile_ps7_cortexa9" "./src/Makefile"\r
-                               file copy -force "./src/Makefile" "./src/Makefile_dep"\r
-\r
-                               foreach entry [glob -nocomplain [file join $arma9srcdir *]] {\r
-                                       file copy -force $entry [file join ".." "${standalone_version}" "src"]\r
-                               }\r
-\r
-                               foreach entry [glob -nocomplain [file join $arma9gccdir *]] {\r
-                                       file copy -force $entry [file join ".." "${standalone_version}" "src"]\r
-                               }\r
-\r
-                               file delete -force "../${standalone_version}/src/gcc"\r
-\r
-                               set need_config_file "true"\r
-\r
-                               set file_handle [::hsi::utils::open_include_file "xparameters.h"]\r
-                               puts $file_handle "#include \"xparameters_ps.h\""\r
-                               puts $file_handle ""\r
-                               close $file_handle\r
-                       }\r
-\r
-               "microblaze"  {\r
-                               puts "In start copy microblaze"\r
-                               file copy -force "./src/Makefile_microblaze" "./src/Makefile"\r
-                               file copy -force "./src/Makefile" "./src/Makefile_dep"\r
-\r
-                               foreach entry [glob -nocomplain [file join $mbsrcdir *]] {\r
-                                       if { [string first "microblaze_interrupt_handler" $entry] == -1 } { ;# Do not copy over the Standalone BSP exception handler\r
-                                               file copy -force $entry [file join ".." "${standalone_version}" "src"]\r
-                                       }\r
-                               }\r
-\r
-                               set need_config_file "true"\r
-                       }\r
-\r
-               "default" {\r
-                       puts "processor type $proctype not supported\n"\r
-               }\r
-       }\r
-\r
-       # Write the Config.make file\r
-       set makeconfig [open "../${standalone_version}/src/config.make" w]\r
-       file rename -force -- "../${standalone_version}/src/Makefile" "../${standalone_version}/src/Makefile_depends"\r
-\r
-       if { $proctype == "ps7_cortexa9" || $proctype == "microblaze" } {\r
-               puts $makeconfig "LIBSOURCES = *.c *.S"\r
-               puts $makeconfig "LIBS = standalone_libs"\r
-       }\r
-\r
-       close $makeconfig\r
-\r
-       # Remove arm directory...\r
-       file delete -force $arma9srcdir\r
-       file delete -force $mbsrcdir\r
-\r
-       # Copy core kernel files to the main src directory\r
-       file copy -force [file join src Source tasks.c] ./src\r
-       file copy -force [file join src Source queue.c] ./src\r
-       file copy -force [file join src Source list.c] ./src\r
-       file copy -force [file join src Source timers.c] ./src\r
-       file copy -force [file join src Source event_groups.c] ./src\r
-       file copy -force [file join src Source portable MemMang heap_4.c] ./src\r
-\r
-       if { $proctype == "ps7_cortexa9" } {\r
-               file copy -force [file join src Source portable GCC ARM_CA9 port.c] ./src\r
-               file copy -force [file join src Source portable GCC ARM_CA9 portASM.S] ./src\r
-               file copy -force [file join src Source portable GCC ARM_CA9 port_asm_vectors.S] ./src\r
-               file copy -force [file join src Source portable GCC ARM_CA9 portmacro.h] ./src\r
-               file copy -force [file join src Source portable GCC ARM_CA9 portZynq7000.c] ./src\r
-       }\r
-\r
-       if { $proctype == "microblaze" } {\r
-               file copy -force [file join src Source portable GCC MicroBlazeV8 port.c] ./src\r
-               file copy -force [file join src Source portable GCC MicroBlazeV8 port_exceptions.c] ./src\r
-               file copy -force [file join src Source portable GCC MicroBlazeV8 portasm.S] ./src\r
-               file copy -force [file join src Source portable GCC MicroBlazeV8 portmacro.h] ./src\r
-               file copy -force [file join src Source portable GCC MicroBlazeV8 portmicroblaze.c] ./src\r
-\r
-               # Create config file for microblaze interrupt handling\r
-               if {[string compare -nocase $need_config_file "true"] == 0} {\r
-                       xhandle_mb_interrupts\r
-               }\r
-\r
-               # Create config files for Microblaze exception handling\r
-               if { [mb_has_exceptions $hw_proc_handle] } {\r
-                       xcreate_mb_exc_config_file\r
-               }\r
-\r
-               # Create bspconfig file\r
-               set bspcfg_fn [file join ".." "${standalone_version}" "src"  "bspconfig.h"]\r
-               file delete $bspcfg_fn\r
-               set bspcfg_fh [open $bspcfg_fn w]\r
-               xprint_generated_header $bspcfg_fh "Configurations for Standalone BSP"\r
-\r
-               if { [mb_has_pvr $hw_proc_handle] } {\r
-\r
-                       set pvr [get_property CONFIG.C_PVR $hw_proc_handle]\r
-\r
-                       switch $pvr {\r
-                               "0" {\r
-                                       puts $bspcfg_fh "#define MICROBLAZE_PVR_NONE"\r
-                               }\r
-                               "1" {\r
-                                       puts $bspcfg_fh "#define MICROBLAZE_PVR_BASIC"\r
-                               }\r
-                               "2" {\r
-                                       puts $bspcfg_fh "#define MICROBLAZE_PVR_FULL"\r
-                               }\r
-                               "default" {\r
-                                       puts $bspcfg_fh "#define MICROBLAZE_PVR_NONE"\r
-                               }\r
-                       }\r
-               }\r
-\r
-               close $bspcfg_fh\r
-       }\r
-\r
-       set headers [glob -join ./src/Source/include *.\[h\]]\r
-       foreach header $headers {\r
-               file copy -force $header src\r
-       }\r
-\r
-       file delete -force [file join src Source]\r
-\r
-       # Remove microblaze, cortexa9 and common directories...\r
-       file delete -force $mbsrcdir\r
-       file delete -force $commonsrcdir\r
-       file delete -force $arma9srcdir\r
-       file delete -force $arma9gccdir\r
-       file delete -force $arma9armccdir\r
-       file delete -force $arma9iarccdir\r
-\r
-       # Handle stdin and stdout\r
-       ::hsi::utils::handle_stdin $os_handle\r
-       ::hsi::utils::handle_stdout $os_handle\r
-\r
-       file copy -force "./src/outbyte.c" "../${standalone_version}/src/"\r
-       file copy -force "./src/inbyte.c" "../${standalone_version}/src/"\r
-\r
-       set file_handle [::hsi::utils::open_include_file "xparameters.h"]\r
-       puts $file_handle "\n/******************************************************************/\n"\r
-       close $file_handle\r
-\r
-       ############################################################################\r
-       ## Add constants common to all architectures to the configuration file.\r
-       ############################################################################\r
-\r
-       set config_file [xopen_new_include_file "./src/FreeRTOSConfig.h" "FreeRTOS Configuration parameters"]\r
-       puts $config_file "\#include \"xparameters.h\" \n"\r
-\r
-       set val [common::get_property CONFIG.use_preemption $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_PREEMPTION" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_PREEMPTION" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_mutexes $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_MUTEXES" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_MUTEXES" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_recursive_mutexes $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_RECURSIVE_MUTEXES" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_RECURSIVE_MUTEXES" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_counting_semaphores $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_COUNTING_SEMAPHORES" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_COUNTING_SEMAPHORES" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_timers $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_TIMERS" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_TIMERS" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_idle_hook $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_IDLE_HOOK"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_IDLE_HOOK"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_tick_hook $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_TICK_HOOK"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_TICK_HOOK"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_malloc_failed_hook $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_MALLOC_FAILED_HOOK" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_MALLOC_FAILED_HOOK" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_trace_facility $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_TRACE_FACILITY" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_TRACE_FACILITY" "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_task_notifications $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_TASK_NOTIFICATIONS" "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_TASK_NOTIFICATIONS" "1"\r
-       }\r
-\r
-       xput_define $config_file "configUSE_16_BIT_TICKS"                  "0"\r
-       xput_define $config_file "configUSE_APPLICATION_TASK_TAG"   "0"\r
-       xput_define $config_file "configUSE_CO_ROUTINES"                        "0"\r
-\r
-       set tick_rate [common::get_property CONFIG.tick_rate $os_handle]\r
-       xput_define $config_file "configTICK_RATE_HZ"    "($tick_rate)"\r
-\r
-       set max_priorities [common::get_property CONFIG.max_priorities $os_handle]\r
-       xput_define $config_file "configMAX_PRIORITIES"   "($max_priorities)"\r
-       xput_define $config_file "configMAX_CO_ROUTINE_PRIORITIES" "2"\r
-\r
-       set min_stack [common::get_property CONFIG.minimal_stack_size $os_handle]\r
-       set min_stack [expr [expr $min_stack + 3] & 0xFFFFFFFC]\r
-       xput_define $config_file "configMINIMAL_STACK_SIZE" "( ( unsigned short ) $min_stack)"\r
-\r
-       set total_heap_size [common::get_property CONFIG.total_heap_size $os_handle]\r
-       xput_define $config_file "configTOTAL_HEAP_SIZE"  "( ( size_t ) ( $total_heap_size ) )"\r
-\r
-       set max_task_name_len [common::get_property CONFIG.max_task_name_len $os_handle]\r
-       xput_define $config_file "configMAX_TASK_NAME_LEN"  $max_task_name_len\r
-\r
-       set val [common::get_property CONFIG.idle_yield $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configIDLE_SHOULD_YIELD"  "0"\r
-       } else {\r
-               xput_define $config_file "configIDLE_SHOULD_YIELD"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.timer_task_priority $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configTIMER_TASK_PRIORITY"  "0"\r
-       } else {\r
-               xput_define $config_file "configTIMER_TASK_PRIORITY"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.timer_command_queue_length $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configTIMER_QUEUE_LENGTH"  "0"\r
-       } else {\r
-               xput_define $config_file "configTIMER_QUEUE_LENGTH"  "10"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.timer_task_stack_depth $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configTIMER_TASK_STACK_DEPTH"  "0"\r
-       } else {\r
-               xput_define $config_file "configTIMER_TASK_STACK_DEPTH"  $min_stack\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_newlib_reent $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_NEWLIB_REENTRANT"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_NEWLIB_REENTRANT"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_timeslicing $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_TIME_SLICING"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_TIME_SLICING"  "1"\r
-       }\r
-\r
-       set val [get_property CONFIG.use_freertos_asserts $os_handle]\r
-       if {$val == "true"} {\r
-               puts $config_file "#define configASSERT( x ) if( ( x ) == 0 ) vApplicationAssert( __FILE__, __LINE__ )\n"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.use_queue_sets $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_QUEUE_SETS"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_QUEUE_SETS"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.check_for_stack_overflow $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configCHECK_FOR_STACK_OVERFLOW"  "0"\r
-       } else {\r
-               if { $val > 2 } {\r
-                       error "ERROR: check_for_stack_overflow must be between 0 and 2"\r
-               } else {\r
-                       xput_define $config_file "configCHECK_FOR_STACK_OVERFLOW"  $val\r
-               }\r
-       }\r
-\r
-\r
-       set val [common::get_property CONFIG.queue_registry_size $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configQUEUE_REGISTRY_SIZE"  "0"\r
-       } else {\r
-               xput_define $config_file "configQUEUE_REGISTRY_SIZE"  $val\r
-       }\r
-\r
-\r
-       set val [common::get_property CONFIG.use_stats_formatting_functions  $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configUSE_STATS_FORMATTING_FUNCTIONS"  "0"\r
-       } else {\r
-               xput_define $config_file "configUSE_STATS_FORMATTING_FUNCTIONS"  "1"\r
-       }\r
-\r
-       set val [common::get_property CONFIG.num_thread_local_storage_pointers $os_handle]\r
-       if {$val == "false"} {\r
-               xput_define $config_file "configNUM_THREAD_LOCAL_STORAGE_POINTERS"  "0"\r
-       } else {\r
-               xput_define $config_file "configNUM_THREAD_LOCAL_STORAGE_POINTERS"  $val\r
-       }\r
-\r
-       puts $config_file "#define configTASK_RETURN_ADDRESS    NULL"\r
-\r
-       puts $config_file "#define INCLUDE_vTaskPrioritySet             1"\r
-       puts $config_file "#define INCLUDE_uxTaskPriorityGet            1"\r
-       puts $config_file "#define INCLUDE_vTaskDelete                  1"\r
-       puts $config_file "#define INCLUDE_vTaskCleanUpResources        0"\r
-       puts $config_file "#define INCLUDE_vTaskSuspend                 1"\r
-       puts $config_file "#define INCLUDE_vTaskDelayUntil              1"\r
-       puts $config_file "#define INCLUDE_vTaskDelay                   1"\r
-       puts $config_file "#define INCLUDE_uxTaskGetStackHighWaterMark  1"\r
-       puts $config_file "#define INCLUDE_xTaskGetSchedulerState       1"\r
-       puts $config_file "#define INCLUDE_xTimerGetTimerTaskHandle     1"\r
-       puts $config_file "#define INCLUDE_xTaskGetIdleTaskHandle       1"\r
-       puts $config_file "#define INCLUDE_xQueueGetMutexHolder         1"\r
-       puts $config_file "#define INCLUDE_eTaskGetState                1"\r
-       puts $config_file "#define INCLUDE_xEventGroupSetBitsFromISR    1"\r
-       puts $config_file "#define INCLUDE_xTimerPendFunctionCall       1"\r
-       puts $config_file "#define INCLUDE_pcTaskGetTaskName            1"\r
-       puts $config_file "#define INCLUDE_xTaskResumeFromISR           1"\r
-       puts $config_file "#define INCLUDE_xTaskGetCurrentTaskHandle    1"\r
-       puts $config_file "#define INCLUDE_xSemaphoreGetMutexHolder     1"\r
-\r
-\r
-       ############################################################################\r
-       ## Add constants specific to the ps7_cortexa9\r
-       ############################################################################\r
-       if { $proctype == "ps7_cortexa9" } {\r
-               set max_api_call_interrupt_priority [common::get_property CONFIG.max_api_call_interrupt_priority $os_handle]\r
-               xput_define $config_file "configMAX_API_CALL_INTERRUPT_PRIORITY"   "($max_api_call_interrupt_priority)"\r
-\r
-               set val [common::get_property CONFIG.use_port_optimized_task_selection $os_handle]\r
-               if {$val == "false"} {\r
-                       xput_define $config_file "configUSE_PORT_OPTIMISED_TASK_SELECTION"  "0"\r
-               } else {\r
-                       xput_define $config_file "configUSE_PORT_OPTIMISED_TASK_SELECTION"  "1"\r
-               }\r
-\r
-               puts $config_file "#define configINTERRUPT_CONTROLLER_BASE_ADDRESS         ( XPAR_PS7_SCUGIC_0_DIST_BASEADDR )"\r
-               puts $config_file "#define configINTERRUPT_CONTROLLER_CPU_INTERFACE_OFFSET ( -0xf00 )"\r
-               puts $config_file "#define configUNIQUE_INTERRUPT_PRIORITIES                32"\r
-\r
-               # Function prototypes cannot be in the common code as some compilers or\r
-               # ports require pre-processor guards to ensure they are not visible from\r
-               # assembly files.\r
-               puts $config_file "void vApplicationAssert( const char *pcFile, uint32_t ulLine );"\r
-               puts $config_file "void FreeRTOS_SetupTickInterrupt( void );"\r
-               puts $config_file "#define configSETUP_TICK_INTERRUPT() FreeRTOS_SetupTickInterrupt()\n"\r
-               puts $config_file "void FreeRTOS_ClearTickInterrupt( void );"\r
-               puts $config_file "#define configCLEAR_TICK_INTERRUPT() FreeRTOS_ClearTickInterrupt()\n"\r
-       }\r
-       # end of if $proctype == "ps7_cortexa9"\r
-\r
-\r
-\r
-       ############################################################################\r
-       ## Add constants specific to the microblaze\r
-       ############################################################################\r
-       if { $proctype == "microblaze" } {\r
-               # Interrupt controller setting assumes only one is in use.\r
-               puts $config_file "#define configINTERRUPT_CONTROLLER_TO_USE XPAR_INTC_SINGLE_DEVICE_ID"\r
-               puts $config_file "#define configINSTALL_EXCEPTION_HANDLERS 1"\r
-\r
-               # Avoid non #define statements getting included in assembly files.\r
-               puts $config_file "#ifndef __ASSEMBLER__"\r
-               puts $config_file "void vApplicationAssert( const char *pcFile, uint32_t ulLine );"\r
-               puts $config_file "#endif"\r
-       }\r
-       # end of if $proctype == "microblaze"\r
-\r
-\r
-       # complete the header protectors\r
-       puts $config_file "\#endif"\r
-       close $config_file\r
-}\r
-\r
-proc xopen_new_include_file { filename description } {\r
-       set inc_file [open $filename w]\r
-       xprint_generated_header $inc_file $description\r
-       set newfname [string map {. _} [lindex [split $filename {\/}] end]]\r
-       puts $inc_file "\#ifndef _[string toupper $newfname]"\r
-       puts $inc_file "\#define _[string toupper $newfname]\n\n"\r
-       return $inc_file\r
-}\r
-\r
-proc xput_define { config_file parameter param_value } {\r
-       puts $config_file "#define $parameter $param_value\n"\r
-}\r
-\r
-proc xhandle_mb_interrupts {} {\r
-\r
-       set default_interrupt_handler "XNullHandler"\r
-       set default_arg "XNULL"\r
-\r
-       set source_interrupt_handler $default_interrupt_handler\r
-       set source_handler_arg $default_arg\r
-\r
-       # Handle the interrupt pin\r
-       set sw_proc_handle [get_sw_processor]\r
-       set periph [get_cells $sw_proc_handle]\r
-       set source_ports [xget_interrupt_sources $periph]\r
-       if {[llength $source_ports] > 1} {\r
-               error "Too many interrupting ports on the MicroBlaze.  Should only find 1" "" "error"\r
-               return\r
-       }\r
-\r
-       if {[llength $source_ports] == 1} {\r
-               set source_port [lindex $source_ports 0]\r
-               if {[llength $source_port] != 0} {\r
-                       set source_port_name [get_property NAME $source_port]\r
-                       set source_periph [get_cells -of_objects $source_port]\r
-                       set source_name [get_property NAME $source_periph]\r
-                       set source_driver [get_drivers $source_name]\r
-\r
-                       if {[string compare -nocase $source_driver ""] != 0} {\r
-                               set int_array [get_arrays -of_objects $source_driver]\r
-                               if {[llength $int_array] != 0} {\r
-                                       set size [get_property PROPERTY.size $int_array]\r
-                                       for {set i 0 } { $i < $size } { incr $i } {\r
-                                               set int_port [lindex [get_property PARAM.int_port $int_array] $i]\r
-                                               if {[llength $int_port] != 0} {\r
-                                                       if {[string compare -nocase $int_port $source_port_name] == 0 } {\r
-                                                               set source_interrupt_handler [lindex [get_property PARAM.int_handler $int_array] $i ]\r
-                                                               set source_handler_arg [lindex [get_property PARAM.int_handler_arg $int_array] $i ]\r
-                                                               if {[string compare -nocase $source_handler_arg DEVICE_ID] == 0 } {\r
-                                                                       set source_handler_arg [xget_name $source_periph "DEVICE_ID"]\r
-                                                               } else {\r
-                                                                       if {[llength $source_periph] == 0} {\r
-                                                                               set source_handler_arg $default_arg\r
-                                                                       } else {\r
-                                                                               set source_handler_arg [xget_name $source_periph "C_BASEADDR"]\r
-                                                                       }\r
-                                                               }\r
-                                                               break\r
-                                                       }\r
-                                               }\r
-                                       }\r
-                               }\r
-                       }\r
-               }\r
-    }\r
-\r
-    # Generate microblaze_interrupts_g.c file...\r
-    xcreate_mb_intr_config_file $source_interrupt_handler $source_handler_arg\r
-}\r
-\r
-proc xcreate_mb_intr_config_file {handler arg} {\r
-\r
-    set mb_table "MB_InterruptVectorTable"\r
-       variable standalone_version\r
-\r
-       set filename [file join ".." "${standalone_version}" "src" "microblaze_interrupts_g.c"]\r
-    file delete $filename\r
-    set config_file [open $filename w]\r
-\r
-    xprint_generated_header $config_file "Interrupt Handler Table for MicroBlaze Processor"\r
-\r
-    puts $config_file "#include \"microblaze_interrupts_i.h\""\r
-    puts $config_file "#include \"xparameters.h\""\r
-    puts $config_file "\n"\r
-    puts $config_file [format "extern void %s (void *);" $handler]\r
-    puts $config_file "\n/*"\r
-    puts $config_file "* The interrupt handler table for microblaze processor"\r
-    puts $config_file "*/\n"\r
-    puts $config_file [format "%sEntry %s\[\] =" $mb_table $mb_table]\r
-    puts $config_file "\{"\r
-    puts -nonewline $config_file [format "\{\t%s" $handler]\r
-    puts -nonewline $config_file [format ",\n\t(void*) %s\}" $arg]\r
-    puts -nonewline $config_file "\n\};"\r
-    puts $config_file "\n"\r
-    close $config_file\r
-}\r
-\r
-# --------------------------------------\r
-# Return true if this MB has\r
-# exception handling support\r
-# --------------------------------------\r
-proc mb_has_exceptions { hw_proc_handle } {\r
-\r
-    # Check if the following parameters exist on this MicroBlaze's MPD\r
-    set ee [get_property CONFIG.C_UNALIGNED_EXCEPTIONS $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-\r
-    set ee [get_property CONFIG.C_ILL_OPCODE_EXCEPTION $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_IOPB_BUS_EXCEPTION  $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_DOPB_BUS_EXCEPTION  $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_DIV_BY_ZERO_EXCEPTION $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_DIV_ZERO_EXCEPTION $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_FPU_EXCEPTION   $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    set ee [get_property CONFIG.C_USE_MMU    $hw_proc_handle]\r
-    if { $ee != "" } {\r
-        return true\r
-    }\r
-    return false\r
-}\r
-\r
-# -------------------------------------------\r
-# Tcl procedure xcreate_mb_exc_config file\r
-# -------------------------------------------\r
-proc xcreate_mb_exc_config_file { } {\r
-\r
-    set hfilename [file join "src" "microblaze_exceptions_g.h"]\r
-    file delete $hfilename\r
-    set hconfig_file [open $hfilename w]\r
-\r
-    xprint_generated_header $hconfig_file "Exception Handling Header for MicroBlaze Processor"\r
-\r
-    puts $hconfig_file "\n"\r
-\r
-    set sw_proc_handle [get_sw_processor]\r
-    set hw_proc_handle [get_cells [get_property HW_INSTANCE $sw_proc_handle] ]\r
-    set proctype [get_property IP_NAME $hw_proc_handle]\r
-    set procver [get_ip_version $hw_proc_handle]\r
-\r
-    if { ![mb_has_exceptions $hw_proc_handle]} { ;# NO exceptions are enabled\r
-        close $hconfig_file              ;# Do not generate any info in either the header or the C file\r
-        return\r
-    }\r
-\r
-    puts $hconfig_file "\#define MICROBLAZE_EXCEPTIONS_ENABLED 1"\r
-    if { [mb_can_handle_exceptions_in_delay_slots $procver] } {\r
-        puts $hconfig_file "#define MICROBLAZE_CAN_HANDLE_EXCEPTIONS_IN_DELAY_SLOTS"\r
-    }\r
-\r
-    close $hconfig_file\r
-}\r
-\r
-# --------------------------------------\r
-# Return true if MB ver 'procver' has\r
-# support for handling exceptions in\r
-# delay slots\r
-# --------------------------------------\r
-proc mb_can_handle_exceptions_in_delay_slots { procver } {\r
-\r
-    if { [string compare -nocase $procver "5.00.a"] >= 0 } {\r
-        return true\r
-    } else {\r
-        return false\r
-    }\r
-}\r
-\r
-# --------------------------------------\r
-# Return true if this MB has PVR support\r
-# --------------------------------------\r
-proc mb_has_pvr { hw_proc_handle } {\r
-\r
-    # Check if the following parameters exist on this MicroBlaze's MPD\r
-    set pvr [get_property CONFIG.C_PVR $hw_proc_handle]\r
-    if { $pvr != "" } {\r
-        return true\r
-    }\r
-\r
-    return false\r
-}\r
-\r
-# --------------------------------------\r
-# Microblaze config checks\r
-# --------------------------------------\r
-proc mb_drc_checks { } {\r
-       set compiler [common::get_property CONFIG.compiler $sw_proc_handle]\r
-\r
-       # check for valid compiler\r
-       if { [string first "mb-gcc" $compiler] == 0 && [string first "mb-g++" $compiler] == 0} {\r
-               error "Wrong compiler requested. FreeRTOS can be compiled only with the GNU compiler for MicroBlaze." "" "mdt_error"\r
-       }\r
-\r
-       # check for valid stdio parameters\r
-       set stdin  [common::get_property CONFIG.stdin  $os_handle]\r
-       set stdout [common::get_property CONFIG.stdout $os_handle]\r
-       if { $stdin == "none" || $stdout == "none" } {\r
-               error "The STDIN/STDOUT parameters are not set. FreeRTOS requires stdin/stdout to be set." "" "mdt_error"\r
-       }\r
-\r
-       # check if the design has a intc\r
-       set intr_port [hsi::get_pins -of_objects $hw_proc_handle Interrupt]\r
-       set intr_flag 1\r
-       if { [llength $intr_port] == 0 } {\r
-               set intr_flag 0\r
-       } else {\r
-               set intr_net [hsi::get_nets -of_objects $intr_port]\r
-               if  { [llength $intr_port] == 0 }  {\r
-                       set intr_flag 0\r
-               }\r
-       }\r
-\r
-       if {$intr_flag == 0 } {\r
-               error "CPU has no connection to Interrupt controller." "" "mdt_error"\r
-       }\r
-\r
-       # support only AXI/PLB\r
-       set bus_name ""\r
-       set interconnect [common::get_property CONFIG.C_INTERCONNECT $hw_proc_handle]\r
-       puts [format "hw_proc_handle is %s" $hw_proc_handle]\r
-       if { $interconnect == 2 } {\r
-               set intf_pin [hsi::get_intf_pins -of_objects $hw_proc_handle "M_AXI_DP"]\r
-               if { [llength $intf_pin] } {\r
-                       set bus_name [hsi::get_intf_nets -of_objects $intf_pin]\r
-               }\r
-       } else {\r
-               error "FreeRTOS supports Microblaze with only a AXI interconnect" "" "mdt_error"\r
-       }\r
-\r
-       if { [llength $bus_name] == 0 } {\r
-               error "Microblaze M_AXI_DP is not connected to slave peripherals"\r
-       }\r
-\r
-       # obtain handles to all the peripherals in the design\r
-       set slave_ifs [hsi::get_intf_pins -of_objects $bus_name -filter "TYPE==SLAVE"]\r
-       puts [format "slave_ifs %s bus_name %s" $slave_ifs $bus_name]\r
-       set timer_count 0\r
-       set timer_has_intr 0\r
-\r
-       # check for a valid timer\r
-       foreach if $slave_ifs {\r
-               set ip_handle [hsi::get_cells -of_objects $if]\r
-\r
-               if {$ip_handle != $hw_proc_handle} {\r
-                       set type [common::get_property IP_NAME $ip_handle]\r
-                       if { $type == "axi_timer" } {\r
-                               incr timer_count\r
-\r
-                               # check if the timer interrupts are enabled\r
-                               set intr_port [hsi::get_pins -of_objects $ip_handle interrupt]\r
-                               if { [llength $intr_port] != 0 } {\r
-                                       set intr_net [hsi::get_nets -of_objects $intr_port]\r
-                                       if { [llength $intr_net] !=  0 } {\r
-                                               set timer_has_intr 1\r
-                                       }\r
-                               }\r
-                       }\r
-               }\r
-       }\r
-\r
-       if { $timer_count == 0 } {\r
-               error "FreeRTOS for Microblaze requires an axi_timer or xps_timer. The HW platform doesn't have a valid timer." "" "mdt_error"\r
-       }\r
-\r
-       if { $timer_has_intr == 0 } {\r
-               error "FreeRTOS for Microblaze requires interrupts enabled for a timer." "" "mdt_error"\r
-       }\r
-\r
-       set systmr_interval_ms [common::get_property CONFIG.systmr_interval $os_handle]\r
-       if { $systmr_interval_ms <= 0 } {\r
-               error "Invalid value for parameter systmr_interval specified. Please specify a positive value." "" "mdt_error"\r
-       }\r
-}\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_microblaze b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_microblaze
deleted file mode 100644 (file)
index fc24930..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-#\r
-# Copyright (C) 2012-2013 Xilinx, Inc.\r
-#\r
-# This file is part of the port for FreeRTOS made by Xilinx to allow FreeRTOS\r
-# to operate with Xilinx Zynq devices.\r
-#\r
-# This file is free software; you can redistribute it and/or modify it under\r
-# the terms of the GNU General Public License (version 2) as published by the\r
-# Free Software Foundation AND MODIFIED BY the FreeRTOS exception\r
-# (see text further below).\r
-#\r
-# This file is distributed in the hope that it will be useful, but\r
-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
-# more details.\r
-#\r
-# You should have received a copy of the GNU General Public License; if not it\r
-# can be viewed here: <http://www.gnu.org/licenses/>\r
-#\r
-# The following exception language was found at\r
-# http://www.freertos.org/a00114.html on May 8, 2012.\r
-#\r
-# GNU General Public License Exception\r
-#\r
-# Any FreeRTOS source code, whether modified or in its original release form,\r
-# or whether in whole or in part, can only be distributed by you under the\r
-# terms of the GNU General Public License plus this exception. An independent\r
-# module is a module which is not derived from or based on FreeRTOS.\r
-#\r
-# EXCEPTION TEXT:\r
-#\r
-# Clause 1\r
-#\r
-# Linking FreeRTOS statically or dynamically with other modules is making a\r
-# combined work based on FreeRTOS. Thus, the terms and conditions of the\r
-# GNU General Public License cover the whole combination.\r
-#\r
-# As a special exception, the copyright holder of FreeRTOS gives you permission\r
-# to link FreeRTOS with independent modules that communicate with FreeRTOS\r
-# solely through the FreeRTOS API interface, regardless of the license terms\r
-# of these independent modules, and to copy and distribute the resulting\r
-# combined work under terms of your choice, provided that\r
-#\r
-# Every copy of the combined work is accompanied by a written statement that\r
-# details to the recipient the version of FreeRTOS used and an offer by\r
-# yourself to provide the FreeRTOS source code (including any modifications\r
-# you may have  made) should the recipient request it.\r
-# The combined work is not itself an RTOS, scheduler, kernel or related product.\r
-# The independent modules add significant and primary functionality to FreeRTOS\r
-# and do not merely extend the existing functionality already present\r
-# in FreeRTOS.\r
-#\r
-# Clause 2\r
-#\r
-# FreeRTOS may not be used for any competitive or comparative purpose,\r
-# including the publication of any form of run time or compile time metric,\r
-# without the express permission of Real Time Engineers Ltd. (this is the norm\r
-# within the industry and is intended to ensure information accuracy).\r
-#\r
-\r
-#\r
-# Processor architecture\r
-# microblaze\r
-#\r
-ARCH = microblaze\r
-\r
-SYSTEMDIR = ../../..\r
-\r
-TOPDIR = .\r
-\r
-ARCH_PREFIX = mb\r
-\r
-#\r
-# gnu tools for Makefile\r
-#\r
-CC = $(ARCH_PREFIX)-gcc\r
-AS = $(ARCH_PREFIX)-as\r
-AR = $(ARCH_PREFIX)-ar\r
-CP = cp\r
-\r
-#\r
-# Compiler, linker and other options.\r
-#\r
-CFLAGS = ${COMPILER_FLAGS} ${EXTRA_COMPILER_FLAGS}\r
-\r
-#\r
-# System project directories.\r
-#\r
-LIBDIR = $(SYSTEMDIR)/lib\r
-INCLUDEDIR = $(SYSTEMDIR)/include\r
-\r
-# Kernel library.\r
-LIBFREERTOS = ${LIBDIR}/libfreertos.a\r
-LIBXIL = ${LIBDIR}/libxil.a\r
-\r
-INCLUDEFILES = ${TOPDIR}/*.h\r
-\r
-INCLUDES = -I$(INCLUDEDIR) \\r
-       -I${TOPDIR}\r
-\r
-KERNEL_AR_OBJS = *.c *.S\r
-\r
-OUTS = *.o\r
-\r
-libs:  $(KERNEL_AR_OBJS)\r
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src libs\r
-       @echo "Compiling FreeRTOS"\r
-       @$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $^\r
-       @$(ARCHIVER) -r ${LIBFREERTOS} ${OUTS}\r
-       @$(ARCHIVER) -d ${LIBXIL} asm_vectors.o\r
-       @$(ARCHIVER) -s ${LIBXIL}\r
-\r
-       make clean\r
-\r
-\r
-\r
-\r
-include_standalone:\r
-       @echo "includes"\r
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src include\r
-       $(CP) -rf $(INCLUDEFILES) $(INCLUDEDIR)\r
-\r
-\r
-.PHONY: include\r
-include:\r
-       @echo "include"\r
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src include\r
-       ${CP} ${INCLUDEFILES} ${INCLUDEDIR}\r
-\r
-clean:\r
-       rm -rf ${OUTS}\r
-\r
-\r
-\r
-\r
-\r
-#PROCESSOR = microblaze_0\r
-#LIBRARIES = ${PROCESSOR}/lib/libxil.a\r
-#BSP_MAKEFILES := $(wildcard $(PROCESSOR)/libsrc/*/src/Makefile)\r
-#SUBDIRS := $(patsubst %/Makefile, %, $(BSP_MAKEFILES))\r
-#\r
-#ifneq (,$(findstring win,$(RDI_PLATFORM)))\r
-# SHELL = CMD\r
-#endif\r
-#\r
-#all: libs\r
-#      @echo 'Finished building libraries'\r
-#\r
-#include: $(addsuffix /make.include,$(SUBDIRS))\r
-#\r
-#libs: $(addsuffix /make.libs,$(SUBDIRS))\r
-#\r
-#$(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a\r
-#      cp -f $< $@\r
-#\r
-#%/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,)\r
-#      @echo "Running Make include in $(subst /make.include,,$@)"\r
-#      $(MAKE) -C $(subst /make.include,,$@) -s include  "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian #-mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections #-fdata-sections"\r
-#\r
-#%/make.libs: include\r
-#      @echo "Running Make libs in $(subst /make.libs,,$@)"\r
-#      $(MAKE) -C $(subst /make.libs,,$@) -s libs  "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian #-mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections #-fdata-sections"\r
-#\r
-#clean:\r
-#      rm -f ${PROCESSOR}/lib/libxil.a\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_ps7_cortexa9 b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Makefile_ps7_cortexa9
deleted file mode 100644 (file)
index 60c63f4..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#
-# Copyright (C) 2012-2013 Xilinx, Inc.
-#
-# This file is part of the port for FreeRTOS made by Xilinx to allow FreeRTOS
-# to operate with Xilinx Zynq devices.
-#
-# This file 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
-# (see text further below).
-#
-# This file 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; if not it
-# can be viewed here: <http://www.gnu.org/licenses/>
-#
-# The following exception language was found at
-# http://www.freertos.org/a00114.html on May 8, 2012.
-#
-# GNU General Public License Exception
-#
-# Any FreeRTOS source code, whether modified or in its original release form,
-# or whether in whole or in part, can only be distributed by you under the
-# terms of the GNU General Public License plus this exception. An independent
-# module is a module which is not derived from or based on FreeRTOS.
-#
-# EXCEPTION TEXT:
-#
-# Clause 1
-#
-# Linking FreeRTOS statically or dynamically with other modules is making a
-# combined work based on FreeRTOS. Thus, the terms and conditions of the
-# GNU General Public License cover the whole combination.
-#
-# As a special exception, the copyright holder of FreeRTOS gives you permission
-# to link FreeRTOS with independent modules that communicate with FreeRTOS
-# solely through the FreeRTOS API interface, regardless of the license terms
-# of these independent modules, and to copy and distribute the resulting
-# combined work under terms of your choice, provided that
-#
-# Every copy of the combined work is accompanied by a written statement that
-# details to the recipient the version of FreeRTOS used and an offer by
-# yourself to provide the FreeRTOS source code (including any modifications
-# you may have  made) should the recipient request it.
-# The combined work is not itself an RTOS, scheduler, kernel or related product.
-# The independent modules add significant and primary functionality to FreeRTOS
-# and do not merely extend the existing functionality already present
-# in FreeRTOS.
-#
-# Clause 2
-#
-# FreeRTOS may not be used for any competitive or comparative purpose,
-# including the publication of any form of run time or compile time metric,
-# without the express permission of Real Time Engineers Ltd. (this is the norm
-# within the industry and is intended to ensure information accuracy).
-#
-
-#
-# Processor architecture
-# ps7_cortexa9
-#
-ARCH = ps7_cortexa9
-
-SYSTEMDIR = ../../..
-
-TOPDIR = .
-
-ARCH_PREFIX = arm-none-eabi
-
-#
-# gnu tools for Makefile
-#
-CC = $(ARCH_PREFIX)-gcc
-AS = arm-none-eabi-as
-AR = $(ARCH_PREFIX)-ar
-CP = cp
-
-#
-# Compiler, linker and other options.
-#
-CFLAGS = ${COMPILER_FLAGS} ${EXTRA_COMPILER_FLAGS}
-
-#
-# System project directories.
-#
-LIBDIR = $(SYSTEMDIR)/lib
-INCLUDEDIR = $(SYSTEMDIR)/include
-
-# Kernel library.
-LIBFREERTOS = ${LIBDIR}/libfreertos.a
-LIBXIL = ${LIBDIR}/libxil.a
-
-INCLUDEFILES = ${TOPDIR}/*.h
-
-INCLUDES = -I$(INCLUDEDIR) \
-       -I${TOPDIR}
-
-KERNEL_AR_OBJS = *.c *.S *.s
-
-OUTS = *.o
-
-
-
-libs:  $(KERNEL_AR_OBJS)
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src libs
-       @echo "Compiling FreeRTOS"
-       @$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $^
-       @$(ARCHIVER) -r ${LIBFREERTOS} ${OUTS}
-       @$(ARCHIVER) -d ${LIBXIL} asm_vectors.o
-       @$(ARCHIVER) -s ${LIBXIL}
-
-       make clean
-
-
-
-
-include_standalone:
-       @echo "includes"
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src include
-       $(CP) -rf $(INCLUDEFILES) $(INCLUDEDIR)
-
-
-.PHONY: include
-include:
-       @echo "include"
-       $(MAKE) -f Makefile_depends -e "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" -C ../../standalone_v5_0/src include
-       ${CP} ${INCLUDEFILES} ${INCLUDEDIR}
-
-clean:
-       rm -rf ${OUTS}
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/portZynq7000.c b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/portZynq7000.c
deleted file mode 100644 (file)
index faa8a1f..0000000
+++ /dev/null
@@ -1,275 +0,0 @@
-/*\r
-    FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.\r
-    All rights reserved\r
-\r
-    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
-\r
-    This file is part of the FreeRTOS distribution.\r
-\r
-    FreeRTOS is free software; you can redistribute it and/or modify it under\r
-    the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-\r
-    ***************************************************************************\r
-    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
-    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
-    >>!   obliged to provide the source code for proprietary components     !<<\r
-    >>!   outside of the FreeRTOS kernel.                                   !<<\r
-    ***************************************************************************\r
-\r
-    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-    FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-    link: http://www.freertos.org/a00114.html\r
-\r
-    ***************************************************************************\r
-     *                                                                       *\r
-     *    FreeRTOS provides completely free yet professionally developed,    *\r
-     *    robust, strictly quality controlled, supported, and cross          *\r
-     *    platform software that is more than just the market leader, it     *\r
-     *    is the industry's de facto standard.                               *\r
-     *                                                                       *\r
-     *    Help yourself get started quickly while simultaneously helping     *\r
-     *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
-     *    tutorial book, reference manual, or both:                          *\r
-     *    http://www.FreeRTOS.org/Documentation                              *\r
-     *                                                                       *\r
-    ***************************************************************************\r
-\r
-    http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
-    the FAQ page "My application does not run, what could be wrong?".  Have you\r
-    defined configASSERT()?\r
-\r
-    http://www.FreeRTOS.org/support - In return for receiving this top quality\r
-    embedded software for free we request you assist our global community by\r
-    participating in the support forum.\r
-\r
-    http://www.FreeRTOS.org/training - Investing in training allows your team to\r
-    be as productive as possible as early as possible.  Now you can receive\r
-    FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
-    Ltd, and the world's leading authority on the world's leading RTOS.\r
-\r
-    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
-    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
-    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
-\r
-    http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
-    Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
-\r
-    http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
-    Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
-    licenses offer ticketed support, indemnification and commercial middleware.\r
-\r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
-    engineered and independently SIL3 certified version for use in safety and\r
-    mission critical applications that require provable dependability.\r
-\r
-    1 tab == 4 spaces!\r
-*/\r
-\r
-/* FreeRTOS includes. */\r
-#include "FreeRTOS.h"\r
-#include "task.h"\r
-\r
-/* Xilinx includes. */\r
-#include "xscutimer.h"\r
-#include "xscugic.h"\r
-\r
-#define XSCUTIMER_CLOCK_HZ ( XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ / 2UL )\r
-\r
-/*\r
- * Some FreeRTOSConfig.h settings require the application writer to provide the\r
- * implementation of a callback function that has a specific name, and a linker\r
- * error will result if the application does not provide the required function.\r
- * To avoid the risk of a configuration file setting resulting in a linker error\r
- * this file provides default implementations of each callback that might be\r
- * required.  The default implementations are declared as weak symbols to allow\r
- * the application writer to override the default implementation by providing\r
- * their own implementation in the application itself.\r
- */\r
-void vApplicationAssert( const char *pcFileName, uint32_t ulLine ) __attribute__((weak));\r
-void vApplicationTickHook( void ) __attribute__((weak));\r
-void vApplicationIdleHook( void ) __attribute__((weak));\r
-void vApplicationMallocFailedHook( void ) __attribute((weak));\r
-void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) __attribute__((weak));\r
-\r
-/* Timer used to generate the tick interrupt. */\r
-static XScuTimer xTimer;\r
-\r
-/* The IRQ handler, which is also aliased to the name used in standalone\r
-projects. */\r
-void FreeRTOS_ApplicationIRQHandler( uint32_t ulICCIAR );\r
-void vApplicationIRQHandler( uint32_t ulICCIAR ) __attribute__ ( ( weak, alias ("FreeRTOS_ApplicationIRQHandler") ) );\r
-\r
-/* The function that sets up the tick is declared week to allow it to be\r
-overridden by the application. */\r
-void FreeRTOS_SetupTickInterrupt( void )  __attribute__ ( ( weak ) );\r
-void FreeRTOS_ClearTickInterrupt( void )  __attribute__ ( ( weak ) );\r
-\r
-/* The interrupt controller used when the tick interrupt is installed is made\r
-global so the application code can use the same object.  The object must not be\r
-used until either it has been initialised using XScuGic_CfgInitialize(), or the\r
-scheduler has been started. */\r
-XScuGic xFreeRTOSInterruptController;  /* Interrupt controller instance */\r
-/*-----------------------------------------------------------*/\r
-\r
-void FreeRTOS_SetupTickInterrupt( void )\r
-{\r
-BaseType_t xStatus;\r
-extern void FreeRTOS_Tick_Handler( void );\r
-XScuTimer_Config *pxTimerConfig;\r
-XScuGic_Config *pxGICConfig;\r
-const uint8_t ucRisingEdge = 3;\r
-\r
-       /* This function is called with the IRQ interrupt disabled, and the IRQ\r
-       interrupt should be left disabled.  It is enabled automatically when the\r
-       scheduler is started. */\r
-\r
-       /* Ensure XScuGic_CfgInitialize() has been called.  In this demo it has\r
-       already been called from prvSetupHardware() in main(). */\r
-       pxGICConfig = XScuGic_LookupConfig( XPAR_SCUGIC_SINGLE_DEVICE_ID );\r
-       xStatus = XScuGic_CfgInitialize( &xFreeRTOSInterruptController, pxGICConfig, pxGICConfig->CpuBaseAddress );\r
-       configASSERT( xStatus == XST_SUCCESS );\r
-       ( void ) xStatus; /* Remove compiler warning if configASSERT() is not defined. */\r
-\r
-       /* The priority must be the lowest possible. */\r
-       XScuGic_SetPriorityTriggerType( &xFreeRTOSInterruptController, XPAR_SCUTIMER_INTR, portLOWEST_USABLE_INTERRUPT_PRIORITY << portPRIORITY_SHIFT, ucRisingEdge );\r
-\r
-       /* Install the FreeRTOS tick handler. */\r
-       xStatus = XScuGic_Connect( &xFreeRTOSInterruptController, XPAR_SCUTIMER_INTR, (Xil_ExceptionHandler) FreeRTOS_Tick_Handler, ( void * ) &xTimer );\r
-       configASSERT( xStatus == XST_SUCCESS );\r
-       ( void ) xStatus; /* Remove compiler warning if configASSERT() is not defined. */\r
-\r
-       /* Initialise the timer. */\r
-       pxTimerConfig = XScuTimer_LookupConfig( XPAR_SCUTIMER_DEVICE_ID );\r
-       xStatus = XScuTimer_CfgInitialize( &xTimer, pxTimerConfig, pxTimerConfig->BaseAddr );\r
-       configASSERT( xStatus == XST_SUCCESS );\r
-       ( void ) xStatus; /* Remove compiler warning if configASSERT() is not defined. */\r
-\r
-       /* Enable Auto reload mode. */\r
-       XScuTimer_EnableAutoReload( &xTimer );\r
-\r
-       /* Ensure there is no prescale. */\r
-       XScuTimer_SetPrescaler( &xTimer, 0 );\r
-\r
-       /* Load the timer counter register. */\r
-       XScuTimer_LoadTimer( &xTimer, XSCUTIMER_CLOCK_HZ / configTICK_RATE_HZ );\r
-\r
-       /* Start the timer counter and then wait for it to timeout a number of\r
-       times. */\r
-       XScuTimer_Start( &xTimer );\r
-\r
-       /* Enable the interrupt for the xTimer in the interrupt controller. */\r
-       XScuGic_Enable( &xFreeRTOSInterruptController, XPAR_SCUTIMER_INTR );\r
-\r
-       /* Enable the interrupt in the xTimer itself. */\r
-       FreeRTOS_ClearTickInterrupt();\r
-       XScuTimer_EnableInterrupt( &xTimer );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-void FreeRTOS_ClearTickInterrupt( void )\r
-{\r
-       XScuTimer_ClearInterruptStatus( &xTimer );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-void FreeRTOS_ApplicationIRQHandler( uint32_t ulICCIAR )\r
-{\r
-extern const XScuGic_Config XScuGic_ConfigTable[];\r
-static const XScuGic_VectorTableEntry *pxVectorTable = XScuGic_ConfigTable[ XPAR_SCUGIC_SINGLE_DEVICE_ID ].HandlerTable;\r
-uint32_t ulInterruptID;\r
-const XScuGic_VectorTableEntry *pxVectorEntry;\r
-\r
-       /* The ID of the interrupt is obtained by bitwise anding the ICCIAR value\r
-       with 0x3FF. */\r
-       ulInterruptID = ulICCIAR & 0x3FFUL;\r
-       if( ulInterruptID < XSCUGIC_MAX_NUM_INTR_INPUTS )\r
-       {\r
-               /* Call the function installed in the array of installed handler functions. */\r
-               pxVectorEntry = &( pxVectorTable[ ulInterruptID ] );\r
-               pxVectorEntry->Handler( pxVectorEntry->CallBackRef );\r
-       }\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This version of vApplicationAssert() is declared as a weak symbol to allow it\r
-to be overridden by a version implemented within the application that is using\r
-this BSP. */\r
-void vApplicationAssert( const char *pcFileName, uint32_t ulLine )\r
-{\r
-volatile uint32_t ul = 0;\r
-volatile const char *pcLocalFileName = pcFileName; /* To prevent pcFileName being optimized away. */\r
-volatile uint32_t ulLocalLine = ulLine; /* To prevent ulLine being optimized away. */\r
-\r
-       /* Prevent compile warnings about the following two variables being set but\r
-       not referenced.  They are intended for viewing in the debugger. */\r
-       ( void ) pcLocalFileName;\r
-       ( void ) ulLocalLine;\r
-\r
-       xil_printf( "Assert failed in file %s, line %lu\r\n", pcLocalFileName, ulLocalLine );\r
-\r
-       /* If this function is entered then a call to configASSERT() failed in the\r
-       FreeRTOS code because of a fatal error.  The pcFileName and ulLine\r
-       parameters hold the file name and line number in that file of the assert\r
-       that failed.  Additionally, if using the debugger, the function call stack\r
-       can be viewed to find which line failed its configASSERT() test.  Finally,\r
-       the debugger can be used to set ul to a non-zero value, then step out of\r
-       this function to find where the assert function was entered. */\r
-       taskENTER_CRITICAL();\r
-       {\r
-               while( ul == 0 )\r
-               {\r
-                       __asm volatile( "NOP" );\r
-               }\r
-       }\r
-       taskEXIT_CRITICAL();\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default tick hook does nothing and is declared as a weak symbol to allow\r
-the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationTickHook( void )\r
-{\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default idle hook does nothing and is declared as a weak symbol to allow\r
-the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationIdleHook( void )\r
-{\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default malloc failed hook does nothing and is declared as a weak symbol\r
-to allow the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationMallocFailedHook( void )\r
-{\r
-       xil_printf( "vApplicationMallocFailedHook() called\n" );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default stack overflow hook will stop the application for executing.  It\r
-is declared as a weak symbol to allow the application writer to override this\r
-default by providing their own implementation in the application code. */\r
-void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName )\r
-{\r
-/* Attempt to prevent the handle and name of the task that overflowed its stack\r
-from being optimised away because they are not used. */\r
-volatile TaskHandle_t xOverflowingTaskHandle = xTask;\r
-volatile char *pcOverflowingTaskName = pcTaskName;\r
-\r
-       ( void ) xOverflowingTaskHandle;\r
-       ( void ) pcOverflowingTaskName;\r
-\r
-       xil_printf( "HALT: Task %s overflowed its stack.", pcOverflowingTaskName );\r
-       portDISABLE_INTERRUPTS();\r
-       for( ;; );\r
-}\r
-\r
-\r
-\r
-\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/port_asm_vectors.S b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/ARM_CA9/port_asm_vectors.S
deleted file mode 100644 (file)
index 5824033..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/******************************************************************************
-*
-* (c) Copyright 2009-13 Xilinx, Inc. All rights reserved.
-*
-* This file contains confidential and proprietary information of Xilinx, Inc.
-* and is protected under U.S. and international copyright and other
-* intellectual property laws.
-*
-* DISCLAIMER
-* This disclaimer is not a license and does not grant any rights to the
-* materials distributed herewith. Except as otherwise provided in a valid
-* license issued to you by Xilinx, and to the maximum extent permitted by
-* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL
-* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS,
-* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
-* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE;
-* and (2) Xilinx shall not be liable (whether in contract or tort, including
-* negligence, or under any other theory of liability) for any loss or damage
-* of any kind or nature related to, arising under or in connection with these
-* materials, including for any direct, or any indirect, special, incidental,
-* or consequential loss or damage (including loss of data, profits, goodwill,
-* or any type of loss or damage suffered as a result of any action brought by
-* a third party) even if such damage or loss was reasonably foreseeable or
-* Xilinx had been advised of the possibility of the same.
-*
-* CRITICAL APPLICATIONS
-* Xilinx products are not designed or intended to be fail-safe, or for use in
-* any application requiring fail-safe performance, such as life-support or
-* safety devices or systems, Class III medical devices, nuclear facilities,
-* applications related to the deployment of airbags, or any other applications
-* that could lead to death, personal injury, or severe property or
-* environmental damage (individually and collectively, "Critical
-* Applications"). Customer assumes the sole risk and liability of any use of
-* Xilinx products in Critical Applications, subject only to applicable laws
-* and regulations governing limitations on product liability.
-*
-* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE
-* AT ALL TIMES.
-*
-******************************************************************************/
-/*****************************************************************************/
-/**
-* @file asm_vectors.s
-*
-* This file contains the initial vector table for the Cortex A9 processor
-*
-* <pre>
-* MODIFICATION HISTORY:
-*
-* Ver   Who     Date     Changes
-* ----- ------- -------- ---------------------------------------------------
-* 1.00a ecm/sdm 10/20/09 Initial version
-* 3.05a sdm    02/02/12 Save lr when profiling is enabled
-* 3.10a srt     04/18/13 Implemented ARM Erratas. Please refer to file
-*                       'xil_errata.h' for errata description
-* </pre>
-*
-* @note
-*
-* None.
-*
-******************************************************************************/
-
-#include "xil_errata.h"
-
-.org 0
-.text
-.arm
-
-.global _boot
-.global _freertos_vector_table
-.global _vector_table
-
-.global FIQInterrupt
-.global DataAbortInterrupt
-.global PrefetchAbortInterrupt
-.global vPortInstallFreeRTOSVectorTable
-
-.extern FreeRTOS_IRQ_Handler
-.extern FreeRTOS_SWI_Handler
-
-.section .vectors
-_vector_table:
-_freertos_vector_table:
-       B         _boot
-       B         FreeRTOS_Undefined
-       ldr   pc, _swi
-       B         FreeRTOS_PrefetchAbortHandler
-       B         FreeRTOS_DataAbortHandler
-       NOP       /* Placeholder for address exception vector*/
-       LDR   PC, _irq
-       B         FreeRTOS_FIQHandler
-
-_irq:   .word FreeRTOS_IRQ_Handler
-_swi:   .word FreeRTOS_SWI_Handler
-
-
-.align 4
-FreeRTOS_FIQHandler:                   /* FIQ vector handler */
-       stmdb   sp!,{r0-r3,r12,lr}      /* state save from compiled code */
-FIQLoop:
-       blx     FIQInterrupt                    /* FIQ vector */
-       ldmia   sp!,{r0-r3,r12,lr}      /* state restore from compiled code */
-       subs    pc, lr, #4                      /* adjust return */
-
-.align 4
-FreeRTOS_Undefined:                            /* Undefined handler */
-       b               .
-
-.align 4
-FreeRTOS_DataAbortHandler:             /* Data Abort handler */
-#ifdef CONFIG_ARM_ERRATA_775420
-       dsb
-#endif
-       stmdb   sp!,{r0-r3,r12,lr}      /* state save from compiled code */
-       blx     DataAbortInterrupt              /*DataAbortInterrupt :call C function here */
-       ldmia   sp!,{r0-r3,r12,lr}      /* state restore from compiled code */
-       subs    pc, lr, #4                      /* adjust return */
-
-.align 4
-FreeRTOS_PrefetchAbortHandler: /* Prefetch Abort handler */
-#ifdef CONFIG_ARM_ERRATA_775420
-       dsb
-#endif
-       stmdb   sp!,{r0-r3,r12,lr}      /* state save from compiled code */
-       blx     PrefetchAbortInterrupt  /* PrefetchAbortInterrupt: call C function here */
-       ldmia   sp!,{r0-r3,r12,lr}      /* state restore from compiled code */
-       subs    pc, lr, #4                      /* adjust return */
-
-.align 4
-.type vPortInstallFreeRTOSVectorTable, %function
-vPortInstallFreeRTOSVectorTable:
-
-       /* Set VBAR to the vector table that contains the FreeRTOS handlers. */
-       ldr     r0, =_freertos_vector_table
-       mcr     p15, 0, r0, c12, c0, 0
-       dsb
-       isb
-       bx lr
-
-
-.end
-
-
-
-
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/MicroBlazeV8/portmicroblaze.c b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/bsp/freertos822_xilinx_v1_0/src/Source/portable/GCC/MicroBlazeV8/portmicroblaze.c
deleted file mode 100644 (file)
index 327b2ac..0000000
+++ /dev/null
@@ -1,274 +0,0 @@
-/*\r
-    FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.\r
-    All rights reserved\r
-\r
-    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
-\r
-    This file is part of the FreeRTOS distribution.\r
-\r
-    FreeRTOS is free software; you can redistribute it and/or modify it under\r
-    the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-\r
-    ***************************************************************************\r
-    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
-    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
-    >>!   obliged to provide the source code for proprietary components     !<<\r
-    >>!   outside of the FreeRTOS kernel.                                   !<<\r
-    ***************************************************************************\r
-\r
-    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-    FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-    link: http://www.freertos.org/a00114.html\r
-\r
-    ***************************************************************************\r
-     *                                                                       *\r
-     *    FreeRTOS provides completely free yet professionally developed,    *\r
-     *    robust, strictly quality controlled, supported, and cross          *\r
-     *    platform software that is more than just the market leader, it     *\r
-     *    is the industry's de facto standard.                               *\r
-     *                                                                       *\r
-     *    Help yourself get started quickly while simultaneously helping     *\r
-     *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
-     *    tutorial book, reference manual, or both:                          *\r
-     *    http://www.FreeRTOS.org/Documentation                              *\r
-     *                                                                       *\r
-    ***************************************************************************\r
-\r
-    http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
-    the FAQ page "My application does not run, what could be wrong?".  Have you\r
-    defined configASSERT()?\r
-\r
-    http://www.FreeRTOS.org/support - In return for receiving this top quality\r
-    embedded software for free we request you assist our global community by\r
-    participating in the support forum.\r
-\r
-    http://www.FreeRTOS.org/training - Investing in training allows your team to\r
-    be as productive as possible as early as possible.  Now you can receive\r
-    FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
-    Ltd, and the world's leading authority on the world's leading RTOS.\r
-\r
-    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
-    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
-    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
-\r
-    http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
-    Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
-\r
-    http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
-    Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
-    licenses offer ticketed support, indemnification and commercial middleware.\r
-\r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
-    engineered and independently SIL3 certified version for use in safety and\r
-    mission critical applications that require provable dependability.\r
-\r
-    1 tab == 4 spaces!\r
-*/\r
-\r
-/* FreeRTOS includes. */\r
-#include "FreeRTOS.h"\r
-#include "task.h"\r
-\r
-/* Xilinx includes. */\r
-#include "xil_printf.h"\r
-#include "xparameters.h"\r
-\r
-#if defined( XPAR_XTMRCTR_NUM_INSTANCES )\r
-       #if( XPAR_XTMRCTR_NUM_INSTANCES > 0 )\r
-               #include "xtmrctr.h"\r
-               /* The timer is used to generate the RTOS tick interrupt. */\r
-               static XTmrCtr xTickTimerInstance;\r
-       #endif\r
-#endif\r
-\r
-/*\r
- * Some FreeRTOSConfig.h settings require the application writer to provide the\r
- * implementation of a callback function that has a specific name, and a linker\r
- * error will result if the application does not provide the required function.\r
- * To avoid the risk of a configuration file setting resulting in a linker error\r
- * this file provides default implementations of each callback that might be\r
- * required.  The default implementations are declared as weak symbols to allow\r
- * the application writer to override the default implementation by providing\r
- * their own implementation in the application itself.\r
- */\r
-void vApplicationAssert( const char *pcFileName, uint32_t ulLine ) __attribute__((weak));\r
-void vApplicationTickHook( void ) __attribute__((weak));\r
-void vApplicationIdleHook( void ) __attribute__((weak));\r
-void vApplicationMallocFailedHook( void ) __attribute((weak));\r
-void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) __attribute__((weak));\r
-void vApplicationSetupTimerInterrupt( void ) __attribute__((weak));\r
-void vApplicationClearTimerInterrupt( void ) __attribute__((weak));\r
-\r
-/*-----------------------------------------------------------*/\r
-\r
-\r
-/* This version of vApplicationAssert() is declared as a weak symbol to allow it\r
-to be overridden by a version implemented within the application that is using\r
-this BSP. */\r
-void vApplicationAssert( const char *pcFileName, uint32_t ulLine )\r
-{\r
-volatile uint32_t ul = 0;\r
-volatile const char *pcLocalFileName = pcFileName; /* To prevent pcFileName being optimized away. */\r
-volatile uint32_t ulLocalLine = ulLine; /* To prevent ulLine being optimized away. */\r
-\r
-       /* Prevent compile warnings about the following two variables being set but\r
-       not referenced.  They are intended for viewing in the debugger. */\r
-       ( void ) pcLocalFileName;\r
-       ( void ) ulLocalLine;\r
-\r
-       xil_printf( "Assert failed in file %s, line %lu\r\n", pcLocalFileName, ulLocalLine );\r
-\r
-       /* If this function is entered then a call to configASSERT() failed in the\r
-       FreeRTOS code because of a fatal error.  The pcFileName and ulLine\r
-       parameters hold the file name and line number in that file of the assert\r
-       that failed.  Additionally, if using the debugger, the function call stack\r
-       can be viewed to find which line failed its configASSERT() test.  Finally,\r
-       the debugger can be used to set ul to a non-zero value, then step out of\r
-       this function to find where the assert function was entered. */\r
-       taskENTER_CRITICAL();\r
-       {\r
-               while( ul == 0 )\r
-               {\r
-                       __asm volatile( "NOP" );\r
-               }\r
-       }\r
-       taskEXIT_CRITICAL();\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default tick hook does nothing and is declared as a weak symbol to allow\r
-the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationTickHook( void )\r
-{\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default idle hook does nothing and is declared as a weak symbol to allow\r
-the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationIdleHook( void )\r
-{\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default malloc failed hook does nothing and is declared as a weak symbol\r
-to allow the application writer to override this default by providing their own\r
-implementation in the application code. */\r
-void vApplicationMallocFailedHook( void )\r
-{\r
-       xil_printf( "vApplicationMallocFailedHook() called\n" );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-/* This default stack overflow hook will stop the application for executing.  It\r
-is declared as a weak symbol to allow the application writer to override this\r
-default by providing their own implementation in the application code. */\r
-void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName )\r
-{\r
-/* Attempt to prevent the handle and name of the task that overflowed its stack\r
-from being optimised away because they are not used. */\r
-volatile TaskHandle_t xOverflowingTaskHandle = xTask;\r
-volatile char *pcOverflowingTaskName = pcTaskName;\r
-\r
-       ( void ) xOverflowingTaskHandle;\r
-       ( void ) pcOverflowingTaskName;\r
-\r
-       xil_printf( "HALT: Task %s overflowed its stack.", pcOverflowingTaskName );\r
-       portDISABLE_INTERRUPTS();\r
-       for( ;; );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-#if defined( XPAR_XTMRCTR_NUM_INSTANCES )\r
-       #if( XPAR_XTMRCTR_NUM_INSTANCES > 0 )\r
-               /* This is a default implementation of what is otherwise an application defined\r
-               callback function used to install the tick interrupt handler.  It is provided as\r
-               an application callback because the kernel will run on lots of different\r
-               MicroBlaze and FPGA configurations - not all of which will have the same timer\r
-               peripherals defined or available.  vApplicationSetupTimerInterrupt() is declared\r
-               as a weak symbol, allowing the application writer to provide their own\r
-               implementation, if this default implementation is not suitable. */\r
-               void vApplicationSetupTimerInterrupt( void )\r
-               {\r
-               portBASE_TYPE xStatus;\r
-               const unsigned char ucTickTimerCounterNumber = ( unsigned char ) 0U;\r
-               const unsigned char ucRunTimeStatsCounterNumber = ( unsigned char ) 1U;\r
-               const unsigned long ulCounterValue = ( ( XPAR_TMRCTR_0_CLOCK_FREQ_HZ / configTICK_RATE_HZ ) - 1UL );\r
-               extern void vPortTickISR( void *pvUnused );\r
-\r
-                       /* Initialise the timer/counter. */\r
-                       xStatus = XTmrCtr_Initialize( &xTickTimerInstance, XPAR_TMRCTR_0_DEVICE_ID );\r
-\r
-                       if( xStatus == XST_SUCCESS )\r
-                       {\r
-                               /* Install the tick interrupt handler as the timer ISR.\r
-                               *NOTE* The xPortInstallInterruptHandler() API function must be used for\r
-                               this purpose. */\r
-                               xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vPortTickISR, NULL );\r
-                       }\r
-\r
-                       if( xStatus == pdPASS )\r
-                       {\r
-                               /* Enable the timer interrupt in the interrupt controller.\r
-                               *NOTE* The vPortEnableInterrupt() API function must be used for this\r
-                               purpose. */\r
-                               vPortEnableInterrupt( XPAR_INTC_0_TMRCTR_0_VEC_ID );\r
-\r
-                               /* Configure the timer interrupt handler.  This installs the handler\r
-                               directly, rather than through the Xilinx driver.  This is done for\r
-                               efficiency. */\r
-                               XTmrCtr_SetHandler( &xTickTimerInstance, ( void * ) vPortTickISR, NULL );\r
-\r
-                               /* Set the correct period for the timer. */\r
-                               XTmrCtr_SetResetValue( &xTickTimerInstance, ucTickTimerCounterNumber, ulCounterValue );\r
-\r
-                               /* Enable the interrupts.  Auto-reload mode is used to generate a\r
-                               periodic tick.  Note that interrupts are disabled when this function is\r
-                               called, so interrupts will not start to be processed until the first\r
-                               task has started to run. */\r
-                               XTmrCtr_SetOptions( &xTickTimerInstance, ucTickTimerCounterNumber, ( XTC_INT_MODE_OPTION | XTC_AUTO_RELOAD_OPTION | XTC_DOWN_COUNT_OPTION ) );\r
-\r
-                               /* Start the timer. */\r
-                               XTmrCtr_Start( &xTickTimerInstance, ucTickTimerCounterNumber );\r
-\r
-\r
-\r
-\r
-                               /* The second timer is used as the time base for the run time stats.\r
-                               Auto-reload mode is used to ensure the timer does not stop. */\r
-                               XTmrCtr_SetOptions( &xTickTimerInstance, ucRunTimeStatsCounterNumber, XTC_AUTO_RELOAD_OPTION );\r
-\r
-                               /* Start the timer. */\r
-                               XTmrCtr_Start( &xTickTimerInstance, ucRunTimeStatsCounterNumber );\r
-                       }\r
-\r
-                       /* Sanity check that the function executed as expected. */\r
-                       configASSERT( ( xStatus == pdPASS ) );\r
-               }\r
-       #endif /* XPAR_XTMRCTR_NUM_INSTANCES > 0 */\r
-#endif /* XPAR_XTMRCTR_NUM_INSTANCES */\r
-/*-----------------------------------------------------------*/\r
-\r
-#if defined( XPAR_XTMRCTR_NUM_INSTANCES )\r
-       #if( XPAR_XTMRCTR_NUM_INSTANCES > 0 )\r
-               /* This is a default implementation of what is otherwise an application defined\r
-               callback function used to clear whichever timer interrupt is used to generate\r
-               the tick interrupt.  It is provided as an application callback because the\r
-               kernel will run on lots of different MicroBlaze and FPGA configurations - not\r
-               all of which will have the same timer peripherals defined or available.\r
-               vApplicationSetupTimerInterrupt() is declared as a weak symbol, allowing the\r
-               application writer to provide their own implementation, if this default\r
-               implementation is not suitable. */\r
-               void vApplicationClearTimerInterrupt( void )\r
-               {\r
-               unsigned long ulCSR;\r
-\r
-                       /* Clear the timer interrupt */\r
-                       ulCSR = XTmrCtr_GetControlStatusReg( XPAR_TMRCTR_0_BASEADDR, 0 );\r
-                       XTmrCtr_SetControlStatusReg( XPAR_TMRCTR_0_BASEADDR, 0, ulCSR );\r
-               }\r
-       #endif /* XPAR_XTMRCTR_NUM_INSTANCES > 0 */\r
-#endif /* XPAR_XTMRCTR_NUM_INSTANCES */\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.mss b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.mss
deleted file mode 100644 (file)
index 012862a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#/******************************************************************************\r
-#*\r
-#* Copyright (C) 2015 Xilinx, Inc.  All rights reserved.\r
-#*\r
-#* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-#* of this software and associated documentation files (the "Software"), to deal\r
-#* in the Software without restriction, including without limitation the rights\r
-#* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-#* copies of the Software, and to permit persons to whom the Software is\r
-#* furnished to do so, subject to the following conditions:\r
-#*\r
-#* The above copyright notice and this permission notice shall be included in\r
-#* all copies or substantial portions of the Software.\r
-#*\r
-#* Use of the Software is limited solely to applications:\r
-#* (a) running on a Xilinx device, or\r
-#* (b) that interact with a Xilinx device through a bus or interconnect.\r
-#*\r
-#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-#* XILINX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
-#* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\r
-#* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
-#* SOFTWARE.\r
-#*\r
-#* Except as contained in this notice, the name of the Xilinx shall not be used\r
-#* in advertising or otherwise to promote the sale, use or other dealings in\r
-#* this Software without prior written authorization from Xilinx.\r
-#*\r
-#******************************************************************************/\r
-\r
-PARAMETER VERSION = 2.2.0\r
-\r
-\r
-BEGIN OS\r
- PARAMETER OS_NAME = freertos822_xilinx\r
- PARAMETER STDIN =  *\r
- PARAMETER STDOUT = *\r
-END
\ No newline at end of file
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.tcl b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.tcl
deleted file mode 100644 (file)
index 97bf573..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#/******************************************************************************\r
-#*\r
-#* Copyright (C) 2015 Xilinx, Inc.  All rights reserved.\r
-#*\r
-#* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-#* of this software and associated documentation files (the "Software"), to deal\r
-#* in the Software without restriction, including without limitation the rights\r
-#* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-#* copies of the Software, and to permit persons to whom the Software is\r
-#* furnished to do so, subject to the following conditions:\r
-#*\r
-#* The above copyright notice and this permission notice shall be included in\r
-#* all copies or substantial portions of the Software.\r
-#*\r
-#* Use of the Software is limited solely to applications:\r
-#* (a) running on a Xilinx device, or\r
-#* (b) that interact with a Xilinx device through a bus or interconnect.\r
-#*\r
-#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-#* XILINX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
-#* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\r
-#* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
-#* SOFTWARE.\r
-#*\r
-#* Except as contained in this notice, the name of the Xilinx shall not be used\r
-#* in advertising or otherwise to promote the sale, use or other dealings in\r
-#* this Software without prior written authorization from Xilinx.\r
-#*\r
-#******************************************************************************/\r
-\r
-proc swapp_get_name {} {\r
-    return "FreeRTOS Hello World";\r
-}\r
-\r
-proc swapp_get_description {} {\r
-    return " FreeRTOS Hello World application";\r
-}\r
-\r
-proc check_freertos_os {} {\r
-    set oslist [get_os];\r
-\r
-    if { [llength $oslist] != 1 } {\r
-        return 0;\r
-    }\r
-    set os [lindex $oslist 0];\r
-\r
-    if { $os != "freertos822_xilinx" } {\r
-        error "This application is supported only on the freertos822_xilinx.";\r
-    }\r
-}\r
-\r
-proc swapp_is_supported_sw {} {\r
-\r
-    check_freertos_os\r
-\r
-    return 1;\r
-}\r
-\r
-proc swapp_is_supported_hw {} {\r
-\r
-    # check processor type\r
-    set proc_instance [get_sw_processor];\r
-    set hw_processor [common::get_property HW_INSTANCE $proc_instance]\r
-\r
-    set proc_type [common::get_property IP_NAME [get_cells $hw_processor]];\r
-\r
-    if { $proc_type != "ps7_cortexa9" && $proc_type != "microblaze" } {\r
-                error "This application is supported only for ps7_cortexa9 and microblaze processors.";\r
-    }\r
-\r
-    return 1;\r
-}\r
-\r
-\r
-proc get_stdout {} {\r
-    return;\r
-}\r
-\r
-proc check_stdout_hw {} {\r
-    return;\r
-}\r
-\r
-proc swapp_generate {} {\r
-    return;\r
-}\r
-\r
-proc swapp_get_linker_constraints {} {\r
-    return "";\r
-}\r
diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c
deleted file mode 100644 (file)
index 820c356..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-/*\r
-    FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.\r
-    All rights reserved\r
-\r
-    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
-\r
-    This file is part of the FreeRTOS distribution.\r
-\r
-    FreeRTOS is free software; you can redistribute it and/or modify it under\r
-    the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-\r
-    ***************************************************************************\r
-    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
-    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
-    >>!   obliged to provide the source code for proprietary components     !<<\r
-    >>!   outside of the FreeRTOS kernel.                                   !<<\r
-    ***************************************************************************\r
-\r
-    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-    FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-    link: http://www.freertos.org/a00114.html\r
-\r
-    ***************************************************************************\r
-     *                                                                       *\r
-     *    FreeRTOS provides completely free yet professionally developed,    *\r
-     *    robust, strictly quality controlled, supported, and cross          *\r
-     *    platform software that is more than just the market leader, it     *\r
-     *    is the industry's de facto standard.                               *\r
-     *                                                                       *\r
-     *    Help yourself get started quickly while simultaneously helping     *\r
-     *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
-     *    tutorial book, reference manual, or both:                          *\r
-     *    http://www.FreeRTOS.org/Documentation                              *\r
-     *                                                                       *\r
-    ***************************************************************************\r
-\r
-    http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
-    the FAQ page "My application does not run, what could be wrong?".  Have you\r
-    defined configASSERT()?\r
-\r
-    http://www.FreeRTOS.org/support - In return for receiving this top quality\r
-    embedded software for free we request you assist our global community by\r
-    participating in the support forum.\r
-\r
-    http://www.FreeRTOS.org/training - Investing in training allows your team to\r
-    be as productive as possible as early as possible.  Now you can receive\r
-    FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
-    Ltd, and the world's leading authority on the world's leading RTOS.\r
-\r
-    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
-    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
-    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
-\r
-    http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
-    Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
-\r
-    http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
-    Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
-    licenses offer ticketed support, indemnification and commercial middleware.\r
-\r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
-    engineered and independently SIL3 certified version for use in safety and\r
-    mission critical applications that require provable dependability.\r
-\r
-    1 tab == 4 spaces!\r
-*/\r
-\r
-/*\r
- * This is a very simply blinky style example that can be generated\r
- * automatically by the Xilinx SDK.\r
- *\r
- * The example generates a Tx task, an Rx task, and a queue.  The Tx task\r
- * simply uses the queue to send a value to the Rx task every 500ms.  The Rx\r
- * prints out a message each time it receives the value.\r
- *\r
- * The demo does little in the way of hardware configuration.  Separate projects\r
- * are provided that include comprehensive demos which demonstrate additional\r
- * hardware configuration, and additional FreeRTOS features.  See the following\r
- * link for more details: http://www.freertos.org/a00090.html#XILINX\r
- */\r
-\r
-/* FreeRTOS includes. */\r
-#include "FreeRTOS.h"\r
-#include "task.h"\r
-#include "queue.h"\r
-\r
-/* Xilinx includes. */\r
-#include "xil_printf.h"\r
-#include "xparameters.h"\r
-\r
-/*-----------------------------------------------------------*/\r
-\r
-/* The Tx and Rx tasks as described at the top of this file. */\r
-static void prvTxTask( void *pvParameters );\r
-static void prvRxTask( void *pvParameters );\r
-\r
-/*-----------------------------------------------------------*/\r
-\r
-/* The queue used by the Tx and Rx tasks, as described at the top of this\r
-file. */\r
-static QueueHandle_t xQueue = NULL;\r
-\r
-int main( void )\r
-{\r
-       xil_printf( "Hello from Freertos\r\n" );\r
-\r
-       /* Create the two tasks.  The Tx task is given a lower priority than the\r
-       Rx task, so the Rx task will leave the Blocked state and pre-empt the Tx\r
-       task as soon as the Tx task places an item in the queue. */\r
-       xTaskCreate(    prvTxTask,                                      /* The function that implements the task. */\r
-                                       ( const char * ) "Tx",          /* Text name for the task, provided to assist debugging only. */\r
-                                       configMINIMAL_STACK_SIZE,       /* The stack allocated to the task. */\r
-                                       NULL,                                           /* The task parameter is not used, so set to NULL. */\r
-                                       tskIDLE_PRIORITY,                       /* The task runs at the idle priority. */\r
-                                       NULL );\r
-\r
-       xTaskCreate( prvRxTask, ( const char * ) "GB",  configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
-\r
-       /* Create the queue used by the tasks.  The Rx task has a higher priority\r
-       than the Tx task, so will preempt the Tx task and remove values from the\r
-       queue as soon as the Tx task writes to the queue - therefore the queue can\r
-       never have more than one item in it. */\r
-       xQueue = xQueueCreate(  1,                                              /* There is only one space in the queue. */\r
-                                                       sizeof( uint32_t ) );   /* Each space in the queue is large enough to hold a uint32_t. */\r
-\r
-       /* Check the queue was created. */\r
-       configASSERT( xQueue );\r
-\r
-       /* Start the tasks and timer running. */\r
-       vTaskStartScheduler();\r
-\r
-       /* If all is well, the scheduler will now be running, and the following line\r
-       will never be reached.  If the following line does execute, then there was\r
-       insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
-       to be created.  See the memory management section on the FreeRTOS web site\r
-       for more details. */\r
-       for( ;; );\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-static void prvTxTask( void *pvParameters )\r
-{\r
-const TickType_t x500ms = pdMS_TO_TICKS( 500UL );\r
-uint32_t ulValueToSend = 0;\r
-\r
-       for( ;; )\r
-       {\r
-               /* Delay for 500ms. */\r
-               vTaskDelay( x500ms );\r
-\r
-               /* Send the next value on the queue.  The queue should always be\r
-               empty at this point so a block time of 0 is used. */\r
-               xQueueSend( xQueue,                     /* The queue being written to. */\r
-                                       &ulValueToSend, /* The address of the data being sent. */\r
-                                       0UL );                  /* The block time. */\r
-\r
-               ulValueToSend++;\r
-       }\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
-static void prvRxTask( void *pvParameters )\r
-{\r
-uint32_t ulValueReceived;\r
-\r
-       for( ;; )\r
-       {\r
-               /* Block to wait for data arriving on the queue. */\r
-               xQueueReceive(  xQueue,                         /* The queue being read. */\r
-                                               &ulValueReceived,       /* Data is read into this address. */\r
-                                               portMAX_DELAY );        /* Wait without a timeout for data. */\r
-\r
-               /* Print the received data. */\r
-               xil_printf( "Rx task received %d\r\n", ( int ) ulValueReceived );\r
-       }\r
-}\r
-\r
-\r