Lancaster University's (short term!) clone of mbed-src for micro:bit. This is a copy of the github branch https://github.com/lancaster-university/mbed-classic
Fork of mbed-src by
History
Synchronized with git rev 1fb8ab4c
2016-07-13, by LancasterUniversity [Wed, 13 Jul 2016 12:52:54 +0100] rev 641
Synchronized with git rev 1fb8ab4c
Author: James Devine
mbed-classic: BUGFIX for timer when using wait_ms from interrupt context
Previously if a user used wait[_ms,_us] in interrupt context the device would
hang indefinitely. This was due to incrementing overflowCount from
interrupt context only.
This meant that if a user used wait[_ms,_us] in an ISR with
the same or greater interrupt priority, it would result in an infinite
loop as the overflowCount variable would never be incremented, and
wait[_ms,_us] would never return.
This patch simply applies a better solution for the race condition
mentioned in the previous commit. It instead disables the timer1
interrupt and increments the overflowCount variable, preventing
the race condition whilst supporting wait[_ms,_us] in interrupt
context.
Synchronized with git rev 0918819f
2016-04-08, by LancasterUniversity [Fri, 08 Apr 2016 01:06:01 +0100] rev 640
Synchronized with git rev 0918819f
Author: James Devine
mbed-classic: added nrf51.h from most recent SDK
Upstream mbed doesn't have the correct version of nrf51.h for builds
with mbed-classic on mbed.org.
This means that builds fail online due to incompatible nrf51.h's.
This commit adds the correct version of nrf51.h to our repo.
Synchronized with git rev 1a8031da
2016-04-08, by LancasterUniversity [Fri, 08 Apr 2016 01:05:59 +0100] rev 639
Synchronized with git rev 1a8031da
Author: Joe Finney
microbit: Patch to HF Ticker implementaiton to reduce glitching on wait_ms()
Updated ticker implementation to:
- Ensure initialisation of overflowount variable to zero (was previously undefined)
- Update internal counter 'read' operation to handle overflow conditions
differently. Instead of re-implementing the overflow handler in the 'read'
operation, it now leaves this to a single code path in the ISR. Instead, the
code is simply made aware of overflows and handles this as a local event. This
prevents the possibility of duplicate increments to overflowCount (which
appeared to occur under testing, especially when the mbed wait_ms busy-wait function is used).
Synchronized with git rev 46188705
2016-04-07, by LancasterUniversity [Thu, 07 Apr 2016 01:03:23 +0100] rev 638
Synchronized with git rev 46188705
Author: Joe Finney
microbit: PortOut/PortIn now respects bit mask
The mbed PortOut and PortIn abstractions require the definition of a mask that
specifies which pins in the given port are to be used.
The nrf51822 implementation did not respect this funcitonality, and would
overwrite all pins defined as an output, regardless of whether they were
defined as part of the mask.
Synchronized with git rev 5678d944
2016-04-07, by LancasterUniversity [Thu, 07 Apr 2016 01:03:22 +0100] rev 637
Synchronized with git rev 5678d944
Author: James Devine
mbed-classic: reduced priority of timer interrupt
A higher priority ticker interrupt caused interoperability issues
with the nordic soft device. This commit reduces the interupt priority.
Synchronized with git rev 6888edef
2016-04-07, by LancasterUniversity [Thu, 07 Apr 2016 01:03:20 +0100] rev 636
Synchronized with git rev 6888edef
Author: James Devine
updated implementation for us_ticker.c
We are now using a timer that uses HFCLK for timer calls
this should mean that we have a higher resolution for
interrupts.
Synchronized with git revision d29c98dae61be0946ddf3a3c641c7726056f9452
2015-09-30, by mbed_official [Wed, 30 Sep 2015 17:00:09 +0100] rev 635
Synchronized with git revision d29c98dae61be0946ddf3a3c641c7726056f9452
Full URL: https://github.com/mbedmicro/mbed/commit/d29c98dae61be0946ddf3a3c641c7726056f9452/
Added support for SAMW25
Synchronized with git revision 9b7d23d47153c298a6d24de9a415202705889d11
2015-09-28, by mbed_official [Mon, 28 Sep 2015 20:15:09 +0100] rev 634
Synchronized with git revision 9b7d23d47153c298a6d24de9a415202705889d11
Full URL: https://github.com/mbedmicro/mbed/commit/9b7d23d47153c298a6d24de9a415202705889d11/
Revert "[NUCLEO_F303K8] add support of the STM32F303K8"
Synchronized with git revision 3ee5d7ac62c3c0576d7f358e3657a0ca8970fe9a
2015-09-28, by mbed_official [Mon, 28 Sep 2015 15:00:09 +0100] rev 633
Synchronized with git revision 3ee5d7ac62c3c0576d7f358e3657a0ca8970fe9a
Full URL: https://github.com/mbedmicro/mbed/commit/3ee5d7ac62c3c0576d7f358e3657a0ca8970fe9a/
Added/changed clock set ups for Teensy3.1.
Synchronized with git revision f7ce4ed029cc611121464252ff28d5e8beb895b0
2015-09-28, by mbed_official [Mon, 28 Sep 2015 14:00:11 +0100] rev 632
Synchronized with git revision f7ce4ed029cc611121464252ff28d5e8beb895b0
Full URL: https://github.com/mbedmicro/mbed/commit/f7ce4ed029cc611121464252ff28d5e8beb895b0/
NUCLEO_F303K8 - add support of the STM32F303K8