Commit Graph

13 Commits (640296520faf859575c39593f804555ced58c80f)

Author SHA1 Message Date
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
Christopher Haster 8a5121aaff Reverted merge of FuncPtr (#10)
Replaced FuncPtr with FunctionPointer in NSAPI
2016-04-06 11:23:42 -05:00
Marcus Shawcroft 0fbdad69ef Merge pull request #10 from geky/master
Added improved FuncPtr type
2016-04-07 09:23:21 +01:00
Alessandro Angelino 2fe077d50a Mirror huge PR from mbed OS
The following PRs have been mirrored:
https://github.com/ARMmbed/mbed-hal-k64f/pull/6  "All Freescale macros for memory access replaced"
https://github.com/ARMmbed/mbed-hal-k64f/pull/7  "Fix bug in union access macros"
https://github.com/ARMmbed/mbed-hal-k64f/pull/8  "Simpler and more universal macros for memory access"
https://github.com/ARMmbed/mbed-hal-k64f/pull/9  "Fixed bug in fallback macros for memory access"
https://github.com/ARMmbed/mbed-hal-k64f/pull/10 "Added volatile keyword to address for union read"
https://github.com/ARMmbed/mbed-hal-k64f/pull/14 "Removing copyright and revision from unmodified file"
2016-04-06 23:25:27 +01:00
Alessandro Angelino 3fcaed1eb0 Add uVisor to startup code 2016-04-06 23:25:27 +01:00
Alessandro Angelino e32f969459 Add uninitialized section to linker script 2016-04-06 23:25:27 +01:00
Alessandro Angelino ec980179bc Add uVisor-specific sections to linker script 2016-04-06 23:25:27 +01:00
Alessandro Angelino 7818102156 Round the SRAM offset in linker script 2016-04-06 23:25:27 +01:00
Alessandro Angelino 057bc9a98a Replace NVIC APIs with vIRQ ones 2016-04-06 23:25:27 +01:00
Alessandro Angelino 3ad0f0a430 Fix function to get sp when in unprivileged mode 2016-04-06 23:11:46 +01:00
Christopher Haster f396e3165f Added improved FuncPtr type
FuncPtr provides a more flexible templated function class as a
replacement for FunctionPointer.

FuncPtr provides an intuitive template interface:

void doit(int, char *);
FuncPtr<void(int, char *)> doit_ptr(doit);
doit_ptr(10, "hi!");

FuncPtr places memory management on the user, only supporting
storing an extra pointer for pointers to externally stored objects
that can be passed to the function. Additional binding can be
supplied by an external class.

FuncPtr<void(int)> hello(&object, &Object::method);

Additionally FuncPtr provides a copy constructor, allowing FuncPtrs
themselves to be passed to existing interfaces.

FuncPtr<void()> hello(doit); ticker.attach(hello, 1000);
2016-04-06 08:01:28 -05:00
Bogdan Marinescu 3feff63592 Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00