]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/data/freertos_hello_world.tcl
Prepare for V9.0.0 release:
[freertos] / FreeRTOS / Demo / Xilinx_FreeRTOS_BSP / repo / sw_apps / freertos_hello_world / data / freertos_hello_world.tcl
1 #/******************************************************************************\r
2 #*\r
3 #* Copyright (C) 2015 Xilinx, Inc.  All rights reserved.\r
4 #*\r
5 #* Permission is hereby granted, free of charge, to any person obtaining a copy\r
6 #* of this software and associated documentation files (the "Software"), to deal\r
7 #* in the Software without restriction, including without limitation the rights\r
8 #* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
9 #* copies of the Software, and to permit persons to whom the Software is\r
10 #* furnished to do so, subject to the following conditions:\r
11 #*\r
12 #* The above copyright notice and this permission notice shall be included in\r
13 #* all copies or substantial portions of the Software.\r
14 #*\r
15 #* Use of the Software is limited solely to applications:\r
16 #* (a) running on a Xilinx device, or\r
17 #* (b) that interact with a Xilinx device through a bus or interconnect.\r
18 #*\r
19 #* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
20 #* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
21 #* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
22 #* XILINX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
23 #* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\r
24 #* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
25 #* SOFTWARE.\r
26 #*\r
27 #* Except as contained in this notice, the name of the Xilinx shall not be used\r
28 #* in advertising or otherwise to promote the sale, use or other dealings in\r
29 #* this Software without prior written authorization from Xilinx.\r
30 #*\r
31 #******************************************************************************/\r
32 \r
33 proc swapp_get_name {} {\r
34     return "FreeRTOS Hello World";\r
35 }\r
36 \r
37 proc swapp_get_description {} {\r
38     return " FreeRTOS Hello World application";\r
39 }\r
40 \r
41 proc check_freertos_os {} {\r
42     set oslist [get_os];\r
43 \r
44     if { [llength $oslist] != 1 } {\r
45         return 0;\r
46     }\r
47     set os [lindex $oslist 0];\r
48 \r
49     if { $os != "freertos822_xilinx" } {\r
50         error "This application is supported only on the freertos822_xilinx.";\r
51     }\r
52 }\r
53 \r
54 proc swapp_is_supported_sw {} {\r
55 \r
56     check_freertos_os\r
57 \r
58     return 1;\r
59 }\r
60 \r
61 proc swapp_is_supported_hw {} {\r
62 \r
63     # check processor type\r
64     set proc_instance [get_sw_processor];\r
65     set hw_processor [common::get_property HW_INSTANCE $proc_instance]\r
66 \r
67     set proc_type [common::get_property IP_NAME [get_cells $hw_processor]];\r
68 \r
69     if { $proc_type != "ps7_cortexa9" && $proc_type != "microblaze" } {\r
70                 error "This application is supported only for ps7_cortexa9 and microblaze processors.";\r
71     }\r
72 \r
73     return 1;\r
74 }\r
75 \r
76 \r
77 proc get_stdout {} {\r
78     return;\r
79 }\r
80 \r
81 proc check_stdout_hw {} {\r
82     return;\r
83 }\r
84 \r
85 proc swapp_generate {} {\r
86     return;\r
87 }\r
88 \r
89 proc swapp_get_linker_constraints {} {\r
90     return "";\r
91 }\r