mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-11 19:24:10 +01:00
7598e898fa
- use IRQStack for ISRs (at begening of SRAM) (let's call it the irq stack) - use end of heap for stack needed during initialization (let's call it the init stack). - the systemStats in GCS indicate the remaining bytes in the IRQ stack (this is realy usefull to monitor our (nested) IRQs. This is the base ground to provide as much memory as possible available at task creation time. Next step is to re-organize the initialization in order to move all the init out of the thread's stacks onto the init stack. This will provide as much memory as possible available at task creation time. Basically the stack during initialization will be destroyed once the scheduler starts and dynamic alloc are made (since the init stack is at the end of the heap). We will need to make sure we don't clobber the heap during initialization otherwise this will lead to stack corruption.
15 lines
818 B
XML
15 lines
818 B
XML
<xml>
|
|
<object name="SystemStats" singleinstance="true" settings="false">
|
|
<description>CPU and memory usage from OpenPilot computer. </description>
|
|
<field name="FlightTime" units="ms" type="uint32" elements="1"/>
|
|
<field name="HeapRemaining" units="bytes" type="uint16" elements="1"/>
|
|
<field name="IRQStackRemaining" units="bytes" type="uint16" elements="1"/>
|
|
<field name="CPULoad" units="%" type="uint8" elements="1"/>
|
|
<field name="CPUTemp" units="C" type="int8" elements="1"/>
|
|
<access gcs="readwrite" flight="readwrite"/>
|
|
<telemetrygcs acked="false" updatemode="manual" period="0"/>
|
|
<telemetryflight acked="false" updatemode="periodic" period="1000"/>
|
|
<logging updatemode="periodic" period="1000"/>
|
|
</object>
|
|
</xml>
|