1 #/******************************************************************************
\r
3 #* Copyright (C) 2015 Xilinx, Inc. All rights reserved.
\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
12 #* The above copyright notice and this permission notice shall be included in
\r
13 #* all copies or substantial portions of the Software.
\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
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
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
31 #******************************************************************************/
\r
33 proc swapp_get_name {} {
\r
34 return "FreeRTOS Hello World";
\r
37 proc swapp_get_description {} {
\r
38 return " FreeRTOS Hello World application";
\r
41 proc check_freertos_os {} {
\r
42 set oslist [get_os];
\r
44 if { [llength $oslist] != 1 } {
\r
47 set os [lindex $oslist 0];
\r
49 if { $os != "freertos822_xilinx" } {
\r
50 error "This application is supported only on the freertos822_xilinx.";
\r
54 proc swapp_is_supported_sw {} {
\r
61 proc swapp_is_supported_hw {} {
\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
67 set proc_type [common::get_property IP_NAME [get_cells $hw_processor]];
\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
77 proc get_stdout {} {
\r
81 proc check_stdout_hw {} {
\r
85 proc swapp_generate {} {
\r
89 proc swapp_get_linker_constraints {} {
\r