1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/flight/PiOS
Mathieu Rondonneau 3780de8d3e OP-423 port to OP (heap2) the previous changes done in CC (heap1) (see c95b199166)
I managed to test CC with heap2 changes and the init stack claimed back to heap once scheduler starts.

the changes of this commit are OP related (just cleanup on CC side):
Arch specific stuff (in reset vector) to hide this from portable code:
     - switch back to MSP stack before starting the scheduler so that the sheduler can use the IRQ stack (when/if needed).
     - call the C portable function in heap2 to claim some stack back (the number to claim is taken from linker file).
     - start the scheduler from reset vector (I move this here from main because it make sense to not go back to C (so that I don't need to copy the rolled stack in case the sheduler returns). This make it more clean.
     - Also I have added the call to the mem manager if sheduler return. that way, we don't reset indefinitely if memory runs out. We will go to this handler and figure things out (right now, it's just looping but at least not rebooting. Probably trap NMI would be better (later improvement).
2011-06-14 20:10:53 -07:00
..
Boards dfu: fix typo WRITABLA -> WRITABLE 2011-05-24 00:58:10 -04:00
Common OP-452: Made the CRC calculation run in chunks to balance efficiency and ram 2011-06-05 09:05:59 -05:00
inc OP-152: Abstract the CRC code out of uavtalk to allow it to be reused (PT - 2011-06-04 18:36:26 -05:00
STM32F10x OP-423 port to OP (heap2) the previous changes done in CC (heap1) (see c95b199166) 2011-06-14 20:10:53 -07:00
pios.h OP-152: Abstract the CRC code out of uavtalk to allow it to be reused (PT - 2011-06-04 18:36:26 -05:00