Skip to content
Snippets Groups Projects
Commit 50a7139b authored by Per's avatar Per
Browse files

bugfix

parent 81375def
No related branches found
No related tags found
No related merge requests found
# SRP lab in d7020e
---
## Install
Open terminal
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="ilg.gnuarmeclipse.debug.gdbjtag.openocd.launchConfigurationType">
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.PERIPHERALS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;peripherals/&gt;&#10;"/>
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.PERIPHERALS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;peripherals&gt;&#10;&lt;peripheral name=&quot;SYSCFG&quot;/&gt;&#10;&lt;/peripherals&gt;&#10;"/>
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doContinue" value="true"/>
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doDebugInRam" value="false"/>
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doFirstReset" value="true"/>
......
......@@ -69,9 +69,9 @@ TASK(j2) {
/* enable in assignment c
TASK(j3) {
trace_printf("j3_enter\n");
LOCK(r1);
trace_printf("j3_r1_locked\n");
UNLOCK(r1);
LOCK(r2);
trace_printf("j3_r2_locked\n");
UNLOCK(r2);
JOB_REQUEST(j1);
trace_printf("j3_exit\n");
}
......@@ -123,9 +123,9 @@ add a third task at priority 3
TASK(j3) {
trace_printf("j3_enter\n");
LOCK(r1);
trace_printf("j3_r1_locked\n");
UNLOCK(r1);
LOCK(r2);
trace_printf("j3_r2_locked\n");
UNLOCK(r2);
JOB_REQUEST(j1);
trace_printf("j3_exit\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment