finish lab
This commit is contained in:
parent
a55b4f6d88
commit
973f5545d1
@ -16,29 +16,29 @@
|
||||
*/
|
||||
#define CMSIS_device_header "stm32f7xx.h"
|
||||
|
||||
/* ARM::CMSIS:RTOS2:Keil RTX5:Source:5.5.3 */
|
||||
/* ARM::CMSIS:RTOS2:Keil RTX5:Source:5.5.4 */
|
||||
#define RTE_CMSIS_RTOS2 /* CMSIS-RTOS2 */
|
||||
#define RTE_CMSIS_RTOS2_RTX5 /* CMSIS-RTOS2 Keil RTX5 */
|
||||
#define RTE_CMSIS_RTOS2_RTX5_SOURCE /* CMSIS-RTOS2 Keil RTX5 Source */
|
||||
/* Keil.ARM Compiler::Compiler:Event Recorder:DAP:1.4.0 */
|
||||
/* Keil.ARM Compiler::Compiler:Event Recorder:DAP:1.5.1 */
|
||||
#define RTE_Compiler_EventRecorder
|
||||
#define RTE_Compiler_EventRecorder_DAP
|
||||
/* Keil.ARM Compiler::Compiler:I/O:STDOUT:EVR:1.2.0 */
|
||||
#define RTE_Compiler_IO_STDOUT /* Compiler I/O: STDOUT */
|
||||
#define RTE_Compiler_IO_STDOUT_EVR /* Compiler I/O: STDOUT EVR */
|
||||
/* Keil::Device:STM32Cube Framework:Classic:1.2.6 */
|
||||
/* Keil::Device:STM32Cube Framework:Classic:1.2.7 */
|
||||
#define RTE_DEVICE_FRAMEWORK_CLASSIC
|
||||
/* Keil::Device:STM32Cube HAL:Common:1.2.6 */
|
||||
/* Keil::Device:STM32Cube HAL:Common:1.2.7 */
|
||||
#define RTE_DEVICE_HAL_COMMON
|
||||
/* Keil::Device:STM32Cube HAL:Cortex:1.2.6 */
|
||||
/* Keil::Device:STM32Cube HAL:Cortex:1.2.7 */
|
||||
#define RTE_DEVICE_HAL_CORTEX
|
||||
/* Keil::Device:STM32Cube HAL:GPIO:1.2.6 */
|
||||
/* Keil::Device:STM32Cube HAL:GPIO:1.2.7 */
|
||||
#define RTE_DEVICE_HAL_GPIO
|
||||
/* Keil::Device:STM32Cube HAL:PWR:1.2.6 */
|
||||
/* Keil::Device:STM32Cube HAL:PWR:1.2.7 */
|
||||
#define RTE_DEVICE_HAL_PWR
|
||||
/* Keil::Device:STM32Cube HAL:RCC:1.2.6 */
|
||||
/* Keil::Device:STM32Cube HAL:RCC:1.2.7 */
|
||||
#define RTE_DEVICE_HAL_RCC
|
||||
/* Keil::Device:Startup:1.2.2 */
|
||||
/* Keil::Device:Startup:1.2.4 */
|
||||
#define RTE_DEVICE_STARTUP_STM32F7XX /* Device Startup for STM32F7 */
|
||||
|
||||
|
||||
|
@ -3,12 +3,10 @@
|
||||
<component name="MyExample" version="1.0.0"/>
|
||||
<events>
|
||||
<group name="My Events Group">
|
||||
<component name="MyApp" brief="Triangle" no="0x00" info=" Pop up Info fun"/>
|
||||
<component name="MyApp" brief="Sinus" no="0x01" info=" Pop up Info fun"/>
|
||||
<component name="MyApp" brief="Pulse" no="0x02" info=" Pop up Info fun"/>
|
||||
<component name="MyApp" brief="Flag" no="0x00" info=" Pop up Info fun"/>
|
||||
<component name="MyApp" brief="Factorial" no="0x01" info=" Pop up Info fun"/>
|
||||
</group>
|
||||
<event id="0x000" level="Detail" property="Triangle" value="=%d[val1]" info="Event on operation in MyFunction" />
|
||||
<event id="0x100" level="Detail" property="Sinus" value="=%d[val1]" info="Event on operation in MyFunction" />
|
||||
<event id="0x200" level="Detail" property="Pulse" value="=%d[val1]" info="Event on operation in MyFunction" />
|
||||
<event id="0x000" level="Detail" property="Flag: " value="=%t[val1]" info="Detail of flag" />
|
||||
<event id="0x100" level="Detail" property="Factorial: " value="=%t[val1]" info="Result of factorial" />
|
||||
</events>
|
||||
</component_viewer>
|
||||
|
@ -10,14 +10,14 @@
|
||||
<TargetName>Target 1</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>5060960::V5.06 update 7 (build 960)::ARMCC</pCCUsed>
|
||||
<pCCUsed>5060960::V5.06 update 7 (build 960)::.\ARMCC</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>STM32F746NGHx</Device>
|
||||
<Vendor>STMicroelectronics</Vendor>
|
||||
<PackID>Keil.STM32F7xx_DFP.2.11.0</PackID>
|
||||
<PackURL>http://www.keil.com/pack</PackURL>
|
||||
<PackID>Keil.STM32F7xx_DFP.2.12.0</PackID>
|
||||
<PackURL>http://www.keil.com/pack/</PackURL>
|
||||
<Cpu>IRAM(0x20010000,0x40000) IRAM2(0x20000000,0x10000) IROM(0x08000000,0x100000) IROM2(0x00200000,0x100000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ELITTLE</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
@ -419,68 +419,68 @@
|
||||
</api>
|
||||
</apis>
|
||||
<components>
|
||||
<component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="5.5.0" condition="ARMv6_7_8-M Device">
|
||||
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.8.0"/>
|
||||
<component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="5.6.0" condition="ARMv6_7_8-M Device">
|
||||
<package name="CMSIS" schemaVersion="1.7.7" url="http://www.keil.com/pack/" vendor="ARM" version="5.9.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.3" condition="RTOS2 RTX5">
|
||||
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.8.0"/>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.4" condition="RTOS2 RTX5">
|
||||
<package name="CMSIS" schemaVersion="1.7.7" url="http://www.keil.com/pack/" vendor="ARM" version="5.9.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cbundle="ARM Compiler" Cclass="Compiler" Cgroup="Event Recorder" Cvariant="DAP" Cvendor="Keil" Cversion="1.4.0" condition="Cortex-M Device">
|
||||
<package name="ARM_Compiler" schemaVersion="1.6.3" url="http://www.keil.com/pack/" vendor="Keil" version="1.6.3"/>
|
||||
<component Cbundle="ARM Compiler" Cclass="Compiler" Cgroup="Event Recorder" Cvariant="DAP" Cvendor="Keil" Cversion="1.5.1" condition="Cortex-M Device">
|
||||
<package name="ARM_Compiler" schemaVersion="1.7.7" url="https://www.keil.com/pack/" vendor="Keil" version="1.7.2"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cbundle="ARM Compiler" Cclass="Compiler" Cgroup="I/O" Csub="STDOUT" Cvariant="EVR" Cvendor="Keil" Cversion="1.2.0" condition="ARMCC Cortex-M with EVR">
|
||||
<package name="ARM_Compiler" schemaVersion="1.6.3" url="http://www.keil.com/pack/" vendor="Keil" version="1.6.3"/>
|
||||
<package name="ARM_Compiler" schemaVersion="1.7.7" url="https://www.keil.com/pack/" vendor="Keil" version="1.7.2"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 Framework Classic">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 Framework Classic">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="Common" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 HAL Common">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="Common" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 HAL Common">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="Cortex" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="Cortex" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="GPIO" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="GPIO" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="PWR" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="PWR" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 HAL">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="RCC" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7x5_7x6_7x7_7x9_750 HAL GPIO">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="STM32Cube HAL" Csub="RCC" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 HAL GPIO">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.2" condition="STM32F7 CMSIS">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.4" condition="STM32F7 CMSIS">
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -489,56 +489,56 @@
|
||||
<files>
|
||||
<file attr="config" category="source" name="CMSIS\RTOS2\RTX\Config\RTX_Config.c" version="5.1.0">
|
||||
<instance index="0">RTE\CMSIS\RTX_Config.c</instance>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.3" condition="RTOS2 RTX5"/>
|
||||
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.8.0"/>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.4" condition="RTOS2 RTX5"/>
|
||||
<package name="CMSIS" schemaVersion="1.7.7" url="http://www.keil.com/pack/" vendor="ARM" version="5.9.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="header" name="CMSIS\RTOS2\RTX\Config\RTX_Config.h" version="5.1.0">
|
||||
<instance index="0">RTE\CMSIS\RTX_Config.h</instance>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.3" condition="RTOS2 RTX5"/>
|
||||
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.8.0"/>
|
||||
<component Capiversion="2.1.3" Cclass="CMSIS" Cgroup="RTOS2" Csub="Keil RTX5" Cvariant="Source" Cvendor="ARM" Cversion="5.5.4" condition="RTOS2 RTX5"/>
|
||||
<package name="CMSIS" schemaVersion="1.7.7" url="http://www.keil.com/pack/" vendor="ARM" version="5.9.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="header" name="Config\EventRecorderConf.h" version="1.0.0">
|
||||
<instance index="0">RTE\Compiler\EventRecorderConf.h</instance>
|
||||
<component Cbundle="ARM Compiler" Cclass="Compiler" Cgroup="Event Recorder" Cvariant="DAP" Cvendor="Keil" Cversion="1.4.0" condition="Cortex-M Device"/>
|
||||
<package name="ARM_Compiler" schemaVersion="1.6.3" url="http://www.keil.com/pack/" vendor="Keil" version="1.6.3"/>
|
||||
<component Cbundle="ARM Compiler" Cclass="Compiler" Cgroup="Event Recorder" Cvariant="DAP" Cvendor="Keil" Cversion="1.5.1" condition="Cortex-M Device"/>
|
||||
<package name="ARM_Compiler" schemaVersion="1.7.7" url="https://www.keil.com/pack/" vendor="Keil" version="1.7.2"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="header" name="CMSIS\Driver\Config\RTE_Device.h" version="1.4.0">
|
||||
<instance index="0">RTE\Device\STM32F746NGHx\RTE_Device.h</instance>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 Framework Classic"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 Framework Classic"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="source" condition="STM32F746_ARMCC" name="Drivers\CMSIS\Device\ST\STM32F7xx\Source\Templates\arm\startup_stm32f746xx.s" version="1.2.0">
|
||||
<instance index="0">RTE\Device\STM32F746NGHx\startup_stm32f746xx.s</instance>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.2" condition="STM32F7 CMSIS"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.4" condition="STM32F7 CMSIS"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="header" name="MDK\Templates\Inc\stm32f7xx_hal_conf.h" version="1.2.0">
|
||||
<instance index="0">RTE\Device\STM32F746NGHx\stm32f7xx_hal_conf.h</instance>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.6" condition="STM32F7 Framework Classic"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Capiversion="1.0.0" Cclass="Device" Cgroup="STM32Cube Framework" Csub="Classic" Cvendor="Keil" Cversion="1.2.7" condition="STM32F7 Framework Classic"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</file>
|
||||
<file attr="config" category="source" name="Drivers\CMSIS\Device\ST\STM32F7xx\Source\Templates\system_stm32f7xx.c" version="1.2.0">
|
||||
<instance index="0">RTE\Device\STM32F746NGHx\system_stm32f7xx.c</instance>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.2" condition="STM32F7 CMSIS"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.3" url="http://www.keil.com/pack" vendor="Keil" version="2.11.0"/>
|
||||
<component Cclass="Device" Cgroup="Startup" Cvendor="Keil" Cversion="1.2.4" condition="STM32F7 CMSIS"/>
|
||||
<package name="STM32F7xx_DFP" schemaVersion="1.6.0" url="http://www.keil.com/pack/" vendor="Keil" version="2.12.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -20,19 +20,23 @@ void Thread_4 (void *argument);
|
||||
|
||||
const osThreadAttr_t thread1_attr = {
|
||||
.stack_size = 1024,
|
||||
.priority = osPriorityNormal,
|
||||
.priority = osPriorityNormal, // 24
|
||||
.name = "FACT"
|
||||
};
|
||||
const osThreadAttr_t thread2_attr = {
|
||||
.stack_size = 1024,
|
||||
.priority = osPriorityBelowNormal4,
|
||||
.priority = osPriorityBelowNormal4, // 20
|
||||
.name = "RESUMER"
|
||||
};
|
||||
const osThreadAttr_t thread3_attr = {
|
||||
.stack_size = 4096,
|
||||
.priority = osPriorityBelowNormal,
|
||||
.stack_size = 1024,
|
||||
.priority = osPriorityBelowNormal, // 16
|
||||
.name = "BLOCKER"
|
||||
};
|
||||
const osThreadAttr_t thread4_attr = {
|
||||
.stack_size = 256,
|
||||
.priority = osPriorityLow,
|
||||
.priority = osPriorityLow, // 8
|
||||
.name = "FLAG"
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@ -77,57 +81,62 @@ double Fact(double number)
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Thread 1
|
||||
* Thread 1 - FACT.
|
||||
*---------------------------------------------------------------------------*/
|
||||
void Thread_1 (void *argument) {
|
||||
uint32_t x = 1;
|
||||
double result;
|
||||
for (;;)
|
||||
{
|
||||
result = Fact(x);
|
||||
printf("Fact of %d is %f\r\n",x,result);
|
||||
result = 1;
|
||||
for(int i = 1; i<=x;i++) {
|
||||
result *= i;
|
||||
}
|
||||
//result = Fact(x);
|
||||
printf("Fact of %d is %a\r\n",x, result);
|
||||
x++;
|
||||
//if(x > 100) x = 1;
|
||||
osDelay(200);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Thread 2
|
||||
* Thread 2 - RESUMER
|
||||
*---------------------------------------------------------------------------*/
|
||||
void Thread_2 (void *argument) {
|
||||
osThreadState_t state;
|
||||
for (;;)
|
||||
{
|
||||
osDelay(20);
|
||||
state = osThreadGetState(Thread_4);
|
||||
state = osThreadGetState(thread4);
|
||||
if(state == osThreadBlocked)
|
||||
{
|
||||
osThreadResume(Thread_4);
|
||||
osThreadResume(thread4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Thread 3
|
||||
* Thread 3 - BLOCKER
|
||||
*---------------------------------------------------------------------------*/
|
||||
void Thread_3 (void *argument) {
|
||||
osThreadState_t state;
|
||||
for (;;)
|
||||
{
|
||||
osDelay(50);
|
||||
state = osThreadGetState(Thread_4);
|
||||
state = osThreadGetState(thread4);
|
||||
if(state != osThreadBlocked)
|
||||
{
|
||||
osThreadSuspend(Thread_4);
|
||||
osThreadSuspend(thread4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Thread 4
|
||||
* Thread 4 - FLAG
|
||||
*---------------------------------------------------------------------------*/
|
||||
void Thread_4 (void *argument) {
|
||||
char * str = "Flag is:0";
|
||||
char str[10] = "Flag is:0";
|
||||
uint8_t flag = '0';
|
||||
for (;;)
|
||||
{
|
||||
@ -141,6 +150,7 @@ void Thread_4 (void *argument) {
|
||||
}
|
||||
str[8]= flag;
|
||||
puts(str);
|
||||
EventRecordData(0x0000, str, 10);
|
||||
osDelay(100);
|
||||
}
|
||||
}
|
||||
|
BIN
trace/GPUCache/data_0
Normal file
BIN
trace/GPUCache/data_0
Normal file
Binary file not shown.
BIN
trace/GPUCache/data_1
Normal file
BIN
trace/GPUCache/data_1
Normal file
Binary file not shown.
BIN
trace/GPUCache/data_2
Normal file
BIN
trace/GPUCache/data_2
Normal file
Binary file not shown.
BIN
trace/GPUCache/data_3
Normal file
BIN
trace/GPUCache/data_3
Normal file
Binary file not shown.
BIN
trace/GPUCache/index
Normal file
BIN
trace/GPUCache/index
Normal file
Binary file not shown.
4
trace/tzCef.log
Normal file
4
trace/tzCef.log
Normal file
@ -0,0 +1,4 @@
|
||||
[0304/130105.760:INFO:CONSOLE(158)] "Uncaught ReferenceError: hljs is not defined", source: file:///C:/Users/remi.heredero/AppData/Local/Temp/09dede49-b3cc-4dbf-8072-a4700dd8a020/viewDescription.html (158)
|
||||
[0304/130105.906:INFO:CONSOLE(158)] "Uncaught ReferenceError: hljs is not defined", source: file:///C:/Users/remi.heredero/AppData/Local/Temp/09dede49-b3cc-4dbf-8072-a4700dd8a020/viewDescription.html (158)
|
||||
[0304/130136.109:INFO:CONSOLE(158)] "Uncaught ReferenceError: hljs is not defined", source: file:///C:/Users/remi.heredero/AppData/Local/Temp/09dede49-b3cc-4dbf-8072-a4700dd8a020/viewDescription.html (158)
|
||||
[0304/130138.233:INFO:CONSOLE(158)] "Uncaught ReferenceError: hljs is not defined", source: file:///C:/Users/remi.heredero/AppData/Local/Temp/09dede49-b3cc-4dbf-8072-a4700dd8a020/viewDescription.html (158)
|
Reference in New Issue
Block a user