Восстановил отправку сообщений через UART.

This commit is contained in:
2025-11-26 16:39:46 +03:00
parent 14ebb75c19
commit 99ad5ae5af
76 changed files with 6072 additions and 1701 deletions
+13 -10
View File
@@ -3,7 +3,7 @@ version:1
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6164647265706f7369746f7279696e666f6469616c6f675f7265706f7369746f72795f74726565:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6170706c797273626d756c74696175746f6d6174696f6e6469616c6f675f636865636b626f785f74726565:38:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:626173656469616c6f675f63616e63656c:3133:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:626173656469616c6f675f6f6b:3938:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:626173656469616c6f675f6f6b:313034:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:626173656469616c6f675f796573:3138:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:626f6172647472656570616e656c5f626f6172645f747265655f70616e656c:3135:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:636c6b636f6e666967747265657461626c6570616e656c5f636c6b5f636f6e6669675f747265655f7461626c65:36:00:00
@@ -29,17 +29,18 @@ version:1
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:68617264776172657472656570616e656c5f68617264776172655f747265655f7461626c65:32:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6c6f676d6f6e69746f725f6d6f6e69746f72:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d696f636f6e666967747265657461626c6570616e656c5f6d696f5f636f6e6669675f747265655f7461626c65:3130:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f636865636b706f696e74:39:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f6578706f7274:3132:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f66696c65:3230:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f636865636b706f696e74:3138:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f65646974:32:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f6578706f7274:3235:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f66696c65:3338:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f666c6f6f72706c616e6e696e67:32:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f696d706f7274:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f696f:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f696f5f706c616e6e696e67:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f6970:39:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f70726f6a656374:3132:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f6970:3138:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f70726f6a656374:3232:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f7265706f727473:36:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f746578745f656469746f72:39:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f746578745f656469746f72:3137:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f74696d696e67:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f746f6f6c73:34:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d61696e6d656e756d67725f77696e646f77:34:00:00
@@ -50,6 +51,7 @@ version:1
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d7367766965775f636c6561725f6d657373616765735f726573756c74696e675f66726f6d5f757365725f6578656375746564:32:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6d7367766965775f7761726e696e675f6d65737361676573:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6e65746c69737474726565766965775f6e65746c6973745f74726565:3131:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6e65776578706f727468617264776172656469616c6f675f6578706f72745f746f:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:6e65776578706f727468617264776172656469616c6f675f696e636c7564655f62697473747265616d:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6164645f736f7572636573:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6175746f5f636f6e6e6563745f706f727473:36:00:00
@@ -57,8 +59,9 @@ version:1
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6175746f5f7570646174655f68696572:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6372656174655f746f705f68646c:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6578706f72745f62645f74636c:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6578706f72745f6861726477617265:33:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6c61756e63685f6861726477617265:34:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6578706f72745f62697473747265616d5f66696c6573:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6578706f72745f6861726477617265:38:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6c61756e63685f6861726477617265:35:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6f70656e5f68617264776172655f6d616e61676572:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f6f70656e5f70726f6a656374:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:7061636f6d6d616e646e616d65735f706f7274735f77696e646f77:32:00:00
@@ -109,4 +112,4 @@ version:1
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:746f706d6f64756c656469616c6f675f6175746f5f72655f6f726465725f736f757263655f66696c6573:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:746f706d6f64756c656469616c6f675f7363616e5f616e645f6164645f72746c5f696e636c7564655f66696c6573:31:00:00
70726f6a656374:76697661646f5f75736167655c6775695f68616e646c657273:746f706d6f64756c656469616c6f675f73656c6563745f746f705f6d6f64756c655f6f665f796f75725f64657369676e:32:00:00
eof:894422944
eof:2775797121
+4 -3
View File
@@ -10,11 +10,12 @@ version:1
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6564697464656c657465:3234:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:656469747061737465:3130:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6564697470726f70657274696573:3136:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6578706f727462697466696c65:31:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6578706f727472736274636c736372697074:31:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6c61756e636870726f6772616d66706761:31:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6d616e616765636f6d706f7369746574617267657473:31:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6e65776578706f72746861726477617265:33:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6e65776c61756e63686861726477617265:34:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6e65776578706f72746861726477617265:38:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6e65776c61756e63686861726477617265:35:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6f70656e626c6f636b64657369676e:3134:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6f70656e68617264776172656d616e61676572:31:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:6f70656e70726f6a656374:31:00:00
@@ -26,4 +27,4 @@ version:1
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:73686f7776696577:3136:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:74696d696e67636f6e73747261696e747377697a617264:32:00:00
70726f6a656374:76697661646f5f75736167655c6a6176615f636f6d6d616e645f68616e646c657273:766965777461736b696d706c656d656e746174696f6e:35:00:00
eof:2563744394
eof:1998766610
+1 -1
View File
@@ -1,4 +1,4 @@
version:1
57656254616c6b5472616e736d697373696f6e417474656d70746564:5
6d6f64655f636f756e7465727c4755494d6f6465:3
6d6f64655f636f756e7465727c4755494d6f6465:4
eof:
+21 -12
View File
@@ -3,7 +3,7 @@
<!--The data in this file is primarily intended for consumption by Xilinx tools.
The structure and the elements are likely to change over the next few releases.
This means code written to parse this file will need to be revisited each subsequent release.-->
<application name="pa" timeStamp="Wed Nov 26 11:43:16 2025">
<application name="pa" timeStamp="Wed Nov 26 15:29:07 2025">
<section name="Project Information" visible="false">
<property name="ProjectID" value="d7d69aa1d1884cba8d59bd4b60821014" type="ProjectID"/>
<property name="ProjectIteration" value="29" type="ProjectIteration"/>
@@ -28,11 +28,12 @@ This means code written to parse this file will need to be revisited each subseq
<property name="EditDelete" value="24" type="JavaHandler"/>
<property name="EditPaste" value="10" type="JavaHandler"/>
<property name="EditProperties" value="16" type="JavaHandler"/>
<property name="ExportBitFile" value="1" type="JavaHandler"/>
<property name="ExportRSBTclScript" value="1" type="JavaHandler"/>
<property name="LaunchProgramFpga" value="1" type="JavaHandler"/>
<property name="ManageCompositeTargets" value="1" type="JavaHandler"/>
<property name="NewExportHardware" value="3" type="JavaHandler"/>
<property name="NewLaunchHardware" value="4" type="JavaHandler"/>
<property name="NewExportHardware" value="8" type="JavaHandler"/>
<property name="NewLaunchHardware" value="5" type="JavaHandler"/>
<property name="OpenBlockDesign" value="14" type="JavaHandler"/>
<property name="OpenHardwareManager" value="1" type="JavaHandler"/>
<property name="OpenProject" value="1" type="JavaHandler"/>
@@ -50,7 +51,7 @@ This means code written to parse this file will need to be revisited each subseq
<property name="AddRepositoryInfoDialog_REPOSITORY_TREE" value="1" type="GuiHandlerData"/>
<property name="ApplyRSBMultiAutomationDialog_CHECKBOX_TREE" value="8" type="GuiHandlerData"/>
<property name="BaseDialog_CANCEL" value="13" type="GuiHandlerData"/>
<property name="BaseDialog_OK" value="98" type="GuiHandlerData"/>
<property name="BaseDialog_OK" value="104" type="GuiHandlerData"/>
<property name="BaseDialog_YES" value="18" type="GuiHandlerData"/>
<property name="BoardTreePanel_BOARD_TREE_PANEL" value="15" type="GuiHandlerData"/>
<property name="ClkConfigTreeTablePanel_CLK_CONFIG_TREE_TABLE" value="6" type="GuiHandlerData"/>
@@ -76,17 +77,18 @@ This means code written to parse this file will need to be revisited each subseq
<property name="HardwareTreePanel_HARDWARE_TREE_TABLE" value="2" type="GuiHandlerData"/>
<property name="LogMonitor_MONITOR" value="1" type="GuiHandlerData"/>
<property name="MIOConfigTreeTablePanel_MIO_CONFIG_TREE_TABLE" value="10" type="GuiHandlerData"/>
<property name="MainMenuMgr_CHECKPOINT" value="9" type="GuiHandlerData"/>
<property name="MainMenuMgr_EXPORT" value="12" type="GuiHandlerData"/>
<property name="MainMenuMgr_FILE" value="20" type="GuiHandlerData"/>
<property name="MainMenuMgr_CHECKPOINT" value="18" type="GuiHandlerData"/>
<property name="MainMenuMgr_EDIT" value="2" type="GuiHandlerData"/>
<property name="MainMenuMgr_EXPORT" value="25" type="GuiHandlerData"/>
<property name="MainMenuMgr_FILE" value="38" type="GuiHandlerData"/>
<property name="MainMenuMgr_FLOORPLANNING" value="2" type="GuiHandlerData"/>
<property name="MainMenuMgr_IMPORT" value="3" type="GuiHandlerData"/>
<property name="MainMenuMgr_IO" value="3" type="GuiHandlerData"/>
<property name="MainMenuMgr_IO_PLANNING" value="1" type="GuiHandlerData"/>
<property name="MainMenuMgr_IP" value="9" type="GuiHandlerData"/>
<property name="MainMenuMgr_PROJECT" value="12" type="GuiHandlerData"/>
<property name="MainMenuMgr_IP" value="18" type="GuiHandlerData"/>
<property name="MainMenuMgr_PROJECT" value="22" type="GuiHandlerData"/>
<property name="MainMenuMgr_REPORTS" value="6" type="GuiHandlerData"/>
<property name="MainMenuMgr_TEXT_EDITOR" value="9" type="GuiHandlerData"/>
<property name="MainMenuMgr_TEXT_EDITOR" value="17" type="GuiHandlerData"/>
<property name="MainMenuMgr_TIMING" value="1" type="GuiHandlerData"/>
<property name="MainMenuMgr_TOOLS" value="4" type="GuiHandlerData"/>
<property name="MainMenuMgr_WINDOW" value="4" type="GuiHandlerData"/>
@@ -97,6 +99,7 @@ This means code written to parse this file will need to be revisited each subseq
<property name="MsgView_CLEAR_MESSAGES_RESULTING_FROM_USER_EXECUTED" value="2" type="GuiHandlerData"/>
<property name="MsgView_WARNING_MESSAGES" value="3" type="GuiHandlerData"/>
<property name="NetlistTreeView_NETLIST_TREE" value="11" type="GuiHandlerData"/>
<property name="NewExportHardwareDialog_EXPORT_TO" value="1" type="GuiHandlerData"/>
<property name="NewExportHardwareDialog_INCLUDE_BITSTREAM" value="3" type="GuiHandlerData"/>
<property name="PACommandNames_ADD_SOURCES" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_AUTO_CONNECT_PORTS" value="6" type="GuiHandlerData"/>
@@ -104,8 +107,9 @@ This means code written to parse this file will need to be revisited each subseq
<property name="PACommandNames_AUTO_UPDATE_HIER" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_CREATE_TOP_HDL" value="3" type="GuiHandlerData"/>
<property name="PACommandNames_EXPORT_BD_TCL" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_EXPORT_HARDWARE" value="3" type="GuiHandlerData"/>
<property name="PACommandNames_LAUNCH_HARDWARE" value="4" type="GuiHandlerData"/>
<property name="PACommandNames_EXPORT_BITSTREAM_FILES" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_EXPORT_HARDWARE" value="8" type="GuiHandlerData"/>
<property name="PACommandNames_LAUNCH_HARDWARE" value="5" type="GuiHandlerData"/>
<property name="PACommandNames_OPEN_HARDWARE_MANAGER" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_OPEN_PROJECT" value="1" type="GuiHandlerData"/>
<property name="PACommandNames_PORTS_WINDOW" value="2" type="GuiHandlerData"/>
@@ -157,6 +161,11 @@ This means code written to parse this file will need to be revisited each subseq
<property name="TopModuleDialog_SCAN_AND_ADD_RTL_INCLUDE_FILES" value="1" type="GuiHandlerData"/>
<property name="TopModuleDialog_SELECT_TOP_MODULE_OF_YOUR_DESIGN" value="2" type="GuiHandlerData"/>
</item>
<item name="Other">
<property name="GuiMode" value="69" type="GuiMode"/>
<property name="BatchMode" value="0" type="BatchMode"/>
<property name="TclMode" value="62" type="TclMode"/>
</item>
</section>
</application>
</document>
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="Design_1_hw_platform_0" key="applicationwizard.hw_platform_key"/>
<item value="Design_1_hw_platform_0" key="bspwizard.hw_platform_key"/>
<item value="design_1_wrapper_hw_platform_0" key="applicationwizard.hw_platform_key"/>
<item value="design_1_wrapper_hw_platform_0" key="bspwizard.hw_platform_key"/>
</section>
@@ -1,12 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="Design_1_hw_platform_0" key="programflash.hwplatform"/>
<item value="design_1_wrapper_hw_platform_0" key="programflash.hwplatform"/>
<item value="qspi-x4-single" key="design_1_wrapper_hw_platform_0-flashType"/>
<item value="false" key="Design_1_hw_platform_0-blankCheck"/>
<item value="Local" key="Design_1_hw_platform_0-target"/>
<item value="false" key="Design_1_hw_platform_0-verifyFlash"/>
<item value="false" key="design_1_wrapper_hw_platform_0-verifyFlash"/>
<item value="qspi-x4-single" key="Design_1_hw_platform_0-flashType"/>
<item value="false" key="design_1_wrapper_hw_platform_0-blankCheck"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\zynq_fspl_1\Release\zynq_fspl_1.elf" key="design_1_wrapper_hw_platform_0-fsblFile"/>
<item value="" key="Design_1_hw_platform_0-offSet"/>
<item value="" key="design_1_wrapper_hw_platform_0-offSet"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\LEDS_test\bootimage\LEDS_test.mcs" key="Design_1_hw_platform_0-imgFile"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\zynq_fsbl_0\Release\zynq_fsbl_0.elf" key="Design_1_hw_platform_0-fsblFile"/>
<item value="false" key="Design_1_hw_platform_0-verifyFlash"/>
<item value="Local" key="design_1_wrapper_hw_platform_0-target"/>
<item value="Auto Detect" key="Design_1_hw_platform_0-device"/>
<item value="qspi-x4-single" key="Design_1_hw_platform_0-flashType"/>
<item value="" key="Design_1_hw_platform_0-offSet"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\LEDS_test\bootimage\BOOT.mcs" key="design_1_wrapper_hw_platform_0-imgFile"/>
<item value="Auto Detect" key="design_1_wrapper_hw_platform_0-device"/>
</section>
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\zynq_fsbl_0\Release" key="zynq_flash_files_selection"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\zynq_fsbl_0\Release" key="last_stored_selection"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk" key="bootgen_files_selection"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\LEDS_test\bootimage" key="zynq_flash_files_selection"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk" key="hwspec_file_selection"/>
<item value="D:\GITEA\GitHub\ES\XC7Z020\XC7Z020.sdk\LEDS_test\bootimage" key="last_stored_selection"/>
</section>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="" key="org.eclipse.cdt.codan.internal.ui.preferences.CodanPreferencePage.selection"/>
</section>
@@ -3,3 +3,4 @@
*** SESSION нояб. 25, 2025 17:17:20.35 -----------------------------------------
*** SESSION нояб. 26, 2025 09:35:00.94 -----------------------------------------
*** SESSION нояб. 26, 2025 11:47:35.89 -----------------------------------------
*** SESSION нояб. 26, 2025 12:23:30.48 -----------------------------------------
@@ -1,8 +1,23 @@
14:11:14 **** Auto Build of configuration Debug for project LEDS_test ****
16:37:48 **** Auto Build of configuration Debug for project LEDS_test ****
make pre-build main-build
a9-linaro-pre-build-step
' '
make: Nothing to be done for 'main-build'.
'Building file: ../src/main.c'
'Invoking: ARM v7 gcc compiler'
arm-none-eabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/main.o" -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -I../../standalone_bsp_1/ps7_cortexa9_0/include -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
'Finished building: ../src/main.c'
' '
'Building target: LEDS_test.elf'
'Invoking: ARM v7 gcc linker'
arm-none-eabi-gcc -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Wl,-build-id=none -specs=Xilinx.spec -Wl,-T -Wl,../src/lscript.ld -L../../standalone_bsp_1/ps7_cortexa9_0/lib -o "LEDS_test.elf" ./src/main.o ./src/module_uart.o -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
'Finished building target: LEDS_test.elf'
' '
'Invoking: ARM v7 Print Size'
arm-none-eabi-size LEDS_test.elf |tee "LEDS_test.elf.size"
text data bss dec hex filename
30564 2000 23160 55724 d9ac LEDS_test.elf
'Finished building: LEDS_test.elf.size'
' '
14:11:15 Build Finished (took 221ms)
16:37:49 Build Finished (took 871ms)
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.compare.internal.CompareDialog">
<item value="700" key="DIALOG_WIDTH"/>
<item value="1|Tahoma|8.25|0|WINDOWS|1|-11|0|0|0|400|0|0|0|1|0|0|0|0|Tahoma" key="DIALOG_FONT_NAME"/>
<item value="800" key="DIALOG_HEIGHT"/>
<item value="-30" key="DIALOG_X_ORIGIN"/>
<item value="0" key="DIALOG_Y_ORIGIN"/>
</section>
</section>
@@ -0,0 +1,48 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio, LED_CHANNEL, ~LED);
initialization_of_UART();
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
count = 0;
}
}
}
@@ -0,0 +1,46 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio, LED_CHANNEL, ~LED);
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
count = 0;
}
}
}
@@ -0,0 +1,41 @@
#ifndef SRC_MODULE_UART_H_
#define SRC_MODULE_UART_H_
#ifdef XPAR_INTC_0_DEVICE_ID
#include "xintc.h"
#else
#include "xscugic.h"
#endif
///************************** Constant Definitions **************************/
/*
* The following constants map to the XPAR parameters created in the
* xparameters.h file. They are defined here such that a user can easily
* change all the needed parameters in one place.
*/
#ifdef XPAR_INTC_0_DEVICE_ID
#define INTC XIntc
#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
#define INTC_DEVICE_ID XPAR_INTC_0_DEVICE_ID
#define UART_INT_IRQ_ID XPAR_INTC_0_UARTPS_0_VEC_ID
#else
#define INTC XScuGic
#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
#define UART_INT_IRQ_ID XPAR_XUARTPS_1_INTR
#endif
/*
* The following constant controls the length of the buffers to be sent
* and received with the UART,
*/
#define TEST_BUFFER_SIZE 200
void inverting_the_signal_count_transmitter();
void bild_send_buffer(u32 address, u32 data);
void terminal_uart_send();
void terminal_uart_recv();
void initialization_of_UART();
#endif /* SRC_PROJECT_PARAMETERS_H_ */
@@ -0,0 +1,13 @@
/*
* module_uart.h
*
* Created on: 26 íîÿá. 2025 ã.
* Author: stud
*/
#ifndef MODULE_UART_H_
#define MODULE_UART_H_
#endif /* MODULE_UART_H_ */
@@ -0,0 +1,57 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#include "module_uart.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio_0;
XGpio Gpio_1;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio_0, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio_0, LED_CHANNEL, ~LED);
Status = XGpio_Initialize(&Gpio_1, XPAR_GPIO_1_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio_1, LED_CHANNEL, ~LED);
initialization_of_UART();
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
terminal_uart_send();
count = 0;
}
}
}
@@ -0,0 +1,49 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#include "module_uart.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio, LED_CHANNEL, ~LED);
initialization_of_UART();
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
count = 0;
}
}
}
@@ -0,0 +1,8 @@
/*
* module_uart.c
*
* Created on: 26 íîÿá. 2025 ã.
* Author: stud
*/
@@ -0,0 +1,449 @@
/***************************** Include Files *******************************/
#include "xparameters.h"
#include "xplatform_info.h"
#include "xuartps.h"
#include "xil_exception.h"
#include "xil_printf.h"
#include "module_uart.h"
/************************** Function Prototypes *****************************/
int UartPsIntrExample(INTC *IntcInstPtr, XUartPs *UartInstPtr,
u16 DeviceId, u16 UartIntrId);
static int SetupInterruptSystem(INTC *IntcInstancePtr,
XUartPs *UartInstancePtr,
u16 UartIntrId);
void Handler(void *CallBackRef, u32 Event, unsigned int EventData);
/************************** Variable Definitions ***************************/
XUartPs UartPs ; /* Instance of the UART Device */
INTC InterruptController; /* Instance of the Interrupt Controller */
/*
* The following buffers are used in this example to send and receive data
* with the UART.
*/
static u8 SendBuffer[TEST_BUFFER_SIZE]; /* Buffer for Transmitting Data */
static u8 RecvBuffer[TEST_BUFFER_SIZE]; /* Buffer for Receiving Data */
/*
* The following counters are used to determine when the entire buffer has
* been sent and received.
*/
volatile int TotalReceivedCount;
volatile int TotalSentCount;
int TotalErrorCount;
int bit;
void inverting_the_signal_count_transmitter() {
if (bit == 0) {
SendBuffer[5] = 1;
bit = 1;
} else {
SendBuffer[5] = 0;
bit = 0;
}
}
void bild_send_buffer(u32 address, u32 data){
u32 high_bits = data/256;
SendBuffer[address] = data - high_bits*256;
SendBuffer[address+1] = high_bits;
}
void terminal_uart_send() {
SendBuffer[0] = 4;
SendBuffer[1] = 1;
XUartPs_Send(&UartPs, SendBuffer, TEST_BUFFER_SIZE);
}
void terminal_uart_recv() {
XUartPs_Recv(&UartPs, RecvBuffer, TEST_BUFFER_SIZE);
update_from_terminal(&RecvBuffer);
}
void initialization_of_UART(){
UartPsIntrExample(&InterruptController, &UartPs,
UART_DEVICE_ID, UART_INT_IRQ_ID);
}
/**************************************************************************/
/**
*
* This function does a minimal test on the UartPS device and driver as a
* design example. The purpose of this function is to illustrate
* how to use the XUartPs driver.
*
* This function sends data and expects to receive the same data through the
* device using the local loopback mode.
*
* This function uses interrupt mode of the device.
*
* @param IntcInstPtr is a pointer to the instance of the Scu Gic driver.
* @param UartInstPtr is a pointer to the instance of the UART driver
* which is going to be connected to the interrupt controller.
* @param DeviceId is the device Id of the UART device and is typically
* XPAR_<UARTPS_instance>_DEVICE_ID value from xparameters.h.
* @param UartIntrId is the interrupt Id and is typically
* XPAR_<UARTPS_instance>_INTR value from xparameters.h.
*
* @return XST_SUCCESS if successful, otherwise XST_FAILURE.
*
* @note
*
* This function contains an infinite loop such that if interrupts are not
* working it may never return.
*
**************************************************************************/
int UartPsIntrExample(INTC *IntcInstPtr, XUartPs *UartInstPtr,
u16 DeviceId, u16 UartIntrId)
{
int Status;
XUartPs_Config *Config;
int Index;
u32 IntrMask;
int BadByteCount = 0;
if (XGetPlatform_Info() == XPLAT_ZYNQ_ULTRA_MP) {
#ifdef XPAR_XUARTPS_1_DEVICE_ID
DeviceId = XPAR_XUARTPS_1_DEVICE_ID;
#endif
}
/*
* Initialize the UART driver so that it's ready to use
* Look up the configuration in the config table, then initialize it.
*/
Config = XUartPs_LookupConfig(DeviceId);
if (NULL == Config) {
return XST_FAILURE;
}
Status = XUartPs_CfgInitialize(UartInstPtr, Config, Config->BaseAddress);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
/* Check hardware build */
Status = XUartPs_SelfTest(UartInstPtr);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
/*
* Connect the UART to the interrupt subsystem such that interrupts
* can occur. This function is application specific.
*/
Status = SetupInterruptSystem(IntcInstPtr, UartInstPtr, UartIntrId);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
/*
* Setup the handlers for the UART that will be called from the
* interrupt context when data has been sent and received, specify
* a pointer to the UART driver instance as the callback reference
* so the handlers are able to access the instance data
*/
XUartPs_SetHandler(UartInstPtr, (XUartPs_Handler)Handler, UartInstPtr);
/*
* Enable the interrupt of the UART so interrupts will occur, setup
* a local loopback so data that is sent will be received.
*/
IntrMask =
XUARTPS_IXR_TOUT | XUARTPS_IXR_PARITY | XUARTPS_IXR_FRAMING |
XUARTPS_IXR_OVER | XUARTPS_IXR_TXEMPTY | XUARTPS_IXR_RXFULL |
XUARTPS_IXR_RXOVR;
if (UartInstPtr->Platform == XPLAT_ZYNQ_ULTRA_MP) {
IntrMask |= XUARTPS_IXR_RBRK;
}
XUartPs_SetInterruptMask(UartInstPtr, IntrMask);
XUartPs_SetOperMode(UartInstPtr, XUARTPS_OPER_MODE_NORMAL);
// XUartPs_SetOperMode(UartInstPtr, XUARTPS_OPER_MODE_LOCAL_LOOP);
/*
* Set the receiver timeout. If it is not set, and the last few bytes
* of data do not trigger the over-water or full interrupt, the bytes
* will not be received. By default it is disabled.
*
* The setting of 8 will timeout after 8 x 4 = 32 character times.
* Increase the time out value if baud rate is high, decrease it if
* baud rate is low.
*/
XUartPs_SetRecvTimeout(UartInstPtr, 8);
// xil_printf("point one\r\n");
/*
* Initialize the send buffer bytes with a pattern and the
* the receive buffer bytes to zero to allow the receive data to be
* verified
*/
for (Index = 0; Index < TEST_BUFFER_SIZE; Index++) {
// SendBuffer[Index] = (Index % 26) + 'A';
SendBuffer[Index] = 0;
RecvBuffer[Index] = 0;
}
// xil_printf("point two\r\n");
/*
* Start receiving data before sending it since there is a loopback,
* ignoring the number of bytes received as the return value since we
* know it will be zero
*/
// XUartPs_Recv(UartInstPtr, RecvBuffer, TEST_BUFFER_SIZE);
// xil_printf("point three\r\n");
/*
* Send the buffer using the UART and ignore the number of bytes sent
* as the return value since we are using it in interrupt mode.
*/
// XUartPs_Send(UartInstPtr, SendBuffer, TEST_BUFFER_SIZE);
// xil_printf("point four\r\n");
/*
* Wait for the entire buffer to be received, letting the interrupt
* processing work in the background, this function may get locked
* up in this loop if the interrupts are not working correctly.
*/
// while (1) {
// if ((TotalSentCount == TEST_BUFFER_SIZE) &&
// (TotalReceivedCount == TEST_BUFFER_SIZE)) {
// break;
// }
// }
// xil_printf("point five\r\n");
/* Verify the entire receive buffer was successfully received */
for (Index = 0; Index < TEST_BUFFER_SIZE; Index++) {
if (RecvBuffer[Index] != SendBuffer[Index]) {
BadByteCount++;
}
}
/* Set the UART in Normal Mode */
XUartPs_SetOperMode(UartInstPtr, XUARTPS_OPER_MODE_NORMAL);
/* If any bytes were not correct, return an error */
// if (BadByteCount != 0) {
// return XST_FAILURE;
// }
// xil_printf("point six\r\n");
return XST_SUCCESS;
}
/**************************************************************************/
/**
*
* This function is the handler which performs processing to handle data events
* from the device. It is called from an interrupt context. so the amount of
* processing should be minimal.
*
* This handler provides an example of how to handle data for the device and
* is application specific.
*
* @param CallBackRef contains a callback reference from the driver,
* in this case it is the instance pointer for the XUartPs driver.
* @param Event contains the specific kind of event that has occurred.
* @param EventData contains the number of bytes sent or received for sent
* and receive events.
*
* @return None.
*
* @note None.
*
***************************************************************************/
void Handler(void *CallBackRef, u32 Event, unsigned int EventData)
{
/* All of the data has been sent */
if (Event == XUARTPS_EVENT_SENT_DATA) {
TotalSentCount = EventData;
}
/* All of the data has been received */
if (Event == XUARTPS_EVENT_RECV_DATA) {
TotalReceivedCount = EventData;
// XUartPs_Recv(UartInstPtr, RecvBuffer, TEST_BUFFER_SIZE);
}
/*
* Data was received, but not the expected number of bytes, a
* timeout just indicates the data stopped for 8 character times
*/
if (Event == XUARTPS_EVENT_RECV_TOUT) {
TotalReceivedCount = EventData;
}
/*
* Data was received with an error, keep the data but determine
* what kind of errors occurred
*/
if (Event == XUARTPS_EVENT_RECV_ERROR) {
TotalReceivedCount = EventData;
TotalErrorCount++;
}
/*
* Data was received with an parity or frame or break error, keep the data
* but determine what kind of errors occurred. Specific to Zynq Ultrascale+
* MP.
*/
if (Event == XUARTPS_EVENT_PARE_FRAME_BRKE) {
TotalReceivedCount = EventData;
TotalErrorCount++;
}
/*
* Data was received with an overrun error, keep the data but determine
* what kind of errors occurred. Specific to Zynq Ultrascale+ MP.
*/
if (Event == XUARTPS_EVENT_RECV_ORERR) {
TotalReceivedCount = EventData;
TotalErrorCount++;
}
}
/*****************************************************************************/
/**
*
* This function sets up the interrupt system so interrupts can occur for the
* Uart. This function is application-specific. The user should modify this
* function to fit the application.
*
* @param IntcInstancePtr is a pointer to the instance of the INTC.
* @param UartInstancePtr contains a pointer to the instance of the UART
* driver which is going to be connected to the interrupt
* controller.
* @param UartIntrId is the interrupt Id and is typically
* XPAR_<UARTPS_instance>_INTR value from xparameters.h.
*
* @return XST_SUCCESS if successful, otherwise XST_FAILURE.
*
* @note None.
*
****************************************************************************/
static int SetupInterruptSystem(INTC *IntcInstancePtr,
XUartPs *UartInstancePtr,
u16 UartIntrId)
{
int Status;
#ifdef XPAR_INTC_0_DEVICE_ID
#ifndef TESTAPP_GEN
/*
* Initialize the interrupt controller driver so that it's ready to
* use.
*/
Status = XIntc_Initialize(IntcInstancePtr, INTC_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
#endif
/*
* Connect the handler that will be called when an interrupt
* for the device occurs, the handler defined above performs the
* specific interrupt processing for the device.
*/
Status = XIntc_Connect(IntcInstancePtr, UartIntrId,
(XInterruptHandler) XUartPs_InterruptHandler, UartInstancePtr);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
#ifndef TESTAPP_GEN
/*
* Start the interrupt controller so interrupts are enabled for all
* devices that cause interrupts.
*/
Status = XIntc_Start(IntcInstancePtr, XIN_REAL_MODE);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
#endif
/*
* Enable the interrupt for uart
*/
XIntc_Enable(IntcInstancePtr, UartIntrId);
#ifndef TESTAPP_GEN
/*
* Initialize the exception table.
*/
Xil_ExceptionInit();
/*
* Register the interrupt controller handler with the exception table.
*/
Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT,
(Xil_ExceptionHandler) XIntc_InterruptHandler,
IntcInstancePtr);
#endif
#else
#ifndef TESTAPP_GEN
XScuGic_Config *IntcConfig; /* Config for interrupt controller */
/* Initialize the interrupt controller driver */
IntcConfig = XScuGic_LookupConfig(INTC_DEVICE_ID);
if (NULL == IntcConfig) {
return XST_FAILURE;
}
Status = XScuGic_CfgInitialize(IntcInstancePtr, IntcConfig,
IntcConfig->CpuBaseAddress);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
/*
* Connect the interrupt controller interrupt handler to the
* hardware interrupt handling logic in the processor.
*/
Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT,
(Xil_ExceptionHandler) XScuGic_InterruptHandler,
IntcInstancePtr);
#endif
/*
* Connect a device driver handler that will be called when an
* interrupt for the device occurs, the device driver handler
* performs the specific interrupt processing for the device
*/
Status = XScuGic_Connect(IntcInstancePtr, UartIntrId,
(Xil_ExceptionHandler) XUartPs_InterruptHandler,
(void *) UartInstancePtr);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
/* Enable the interrupt for the device */
XScuGic_Enable(IntcInstancePtr, UartIntrId);
#endif
#ifndef TESTAPP_GEN
/* Enable interrupts */
Xil_ExceptionEnable();
#endif
return XST_SUCCESS;
}
@@ -0,0 +1,50 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#include "module_uart.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio, LED_CHANNEL, ~LED);
initialization_of_UART();
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
terminal_uart_send();
count = 0;
}
}
}
@@ -0,0 +1,56 @@
/*
* main.c
*
* Created on: 25 íîÿá. 2025 ã.
* Author: stud
*/
//#include "xil_io.h"
#include "xgpio.h"
#include "xparameters.h"
#include "module_uart.h"
#define LED 0x01
#define LED_CHANNEL 1
int count = 0;
int latch = 0;
XGpio Gpio_0;
int main(void) {
int Status;
Status = XGpio_Initialize(&Gpio_0, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio_0, LED_CHANNEL, ~LED);
Status = XGpio_Initialize(&Gpio_1, XPAR_GPIO_1_DEVICE_ID);
if (Status != XST_SUCCESS) {
return XST_FAILURE;
}
XGpio_SetDataDirection(&Gpio_1, LED_CHANNEL, ~LED);
initialization_of_UART();
while (1) {
if (count < 10000000) {
count++;
} else {
if (latch) {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000000);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, ~LED);
latch = 0;
} else {
Xil_Out32(XPAR_IP_AXI_LEDS_0_S00_AXI_BASEADDR, 0x00000001);
XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, LED);
latch = 1;
}
terminal_uart_send();
count = 0;
}
}
}

Some files were not shown because too many files have changed in this diff Show More