Commit Graph

7 Commits (61fb65b7fdada22cc60257e3533c5bee803b56dc)

Author SHA1 Message Date
Kevin Bracey 640116123c Use critical section helper in HAL
Routines using __disable_irq and __enable_irq had the effect of
enabling interrupts if called with interrupts disabled.

Some versions of __disable_irq do not return old status to restore it.

Change to use the critical section helper functions instead.
2016-05-18 14:50:31 +03:00
Christopher Haster 4984077d07 Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
Russ Butler 6b4dfeb1ab Fix heap allocation when used with RTOS
Remove the code which checks the heap against the stack to determine
if there is space left.  Using the stack pointer as a limit causes
problems when used with an RTOS since the stack pointer depends
on the current thread which can use a user-allocated stack residing
anywhere in memory.
2016-04-10 23:37:42 -05:00
sg- 034d3e9c27 track mbed_error.c 2016-04-07 10:25:29 -05:00
sg- 47ee2ed90f rename error.c to mbed_error.c. add toolchain.h to mbed.h exposing to all. add extern filler to toolchain.h 2016-04-07 10:22:59 -05:00
Alessandro Angelino 3ad0f0a430 Fix function to get sp when in unprivileged mode 2016-04-06 23:11:46 +01:00
Bogdan Marinescu 3feff63592 Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00