Commit Graph

13 Commits

Author SHA1 Message Date
Stig Bjørlykke e2ec58b434 microbit-dal: fix malloc documentation 2016-07-30 22:42:19 +02:00
James Devine 94b4a29a7b microbit-dal: BUGFIX when using the nosd target
When using the nosd target, a hard fault would be generated if soft
device wasn’t in use.
2016-05-25 16:53:00 +01:00
James Devine ed95d8197d Merge pull request #137 from lancaster-university/pin-events
Increased granularity of system timer.

Added events for Rise, Fall, Pulse HI and Pulse LO.

Pulse HI/LO events give the time that the pin was HI or LO for using the timestamp field of the MicroBitEvent.

Added setPull() to configure the pull of the pin when in a digital input mode.
2016-05-11 13:49:46 +01:00
James Devine deac034189 microbit-dal: panic now accepts codes in the range 0 - 999 [issue #129 ]
Issue #129 illustrated that panic is capable of accepting numbers in
the range 0-999 and should therefore not have an arbitrary range of
0-255.

Additionally, this commit introduces gaps between consecutive numbers
of the same value e.g. 999. As a result, the speed of panic has also
been reduced.
2016-05-11 12:58:21 +01:00
Joe Finney e0369cab6b microbit: Removed legacy isIdleCallbackNeeded() method. [issue #138]
This function has been deprecated, so now removed for v2.0.0 release.
2016-04-29 10:28:36 +01:00
James Devine 3923dffffc microbit-dal: increase granularity of the system wide timer
Added an mbed Timer instance to maintain a microsecond level timestamp.

Added a function system_timer_current_time_us() which now returns the
time since power on in microseconds.

MicroBitEvents now call system_timer_current_time_us() giving
microsecond level timestamps.
2016-04-25 11:30:28 +01:00
James Devine 7cf98c2290 microbit-dal: patch for fiber_wake_on_event
fiber_wake_on_event used to crash after forking a FOB fiber.

It would attempt to obtain a new fiber context, and would place it on the wait queue.
Then when that fiber was paged in, the context of that fiber would not have been
initialised, as the function presumed schedule would be called immediately after
fiber initialisation.

This patch catches that edge case.
2016-04-15 13:40:41 +01:00
James Devine 55cb919987 microbit-dal: Added MIT license information. 2016-04-06 17:07:03 +01:00
James Devine ea91e0281a microbit-dal: more doxygen documentation updates. 2016-04-05 23:41:32 +01:00
James Devine 2f7d361ed5 microbit-dal: updates to doxygen style comments used for documentation generation. 2016-03-29 08:02:57 +01:00
Joe Finney d6079d45d2 microbit: Updated SERIAL_DEBUG symbol to a pointer
Moved the global SERIAL_DEBUG symbol from a reference to a pointer. This is to
enable late binding of a debug channel.
2016-03-26 20:31:29 +00:00
Joe Finney 0a1a9c7865 microbit: Consistency change in scheduler_init()
Updated parameter of scheduler_init() to accpet a reference to an EventModel,
rather than a pointer. This is simply to promote consistency with the other
components.
2016-03-24 23:30:17 +00:00
Joe Finney 06c3c95609 microbit: Restructure of repo
- Introduction of core, drivers, types and bluetooth folders in source and inc
- Added all inc subfolfers to the search path
- Removed MicroBit.cpp and MicroBit.h (yay!)
2016-03-24 14:00:11 +00:00