Commit graph

151 commits

Author SHA1 Message Date
Joe Finney 79c739674c first compiling build. 2015-11-15 14:31:44 +00:00
Joe Finney 6dca3ed8d4 microbit: pre-compilation backup only. 2015-11-13 20:38:37 +00:00
Joe Finney 2532d2f0b5 version v1.3.6 2015-11-08 18:07:32 +00:00
Joe Finney 11854d2ae1 version v1.3.5 2015-11-08 18:07:31 +00:00
Joe Finney e34f0ce9bb version v1.3.4 2015-11-08 18:07:28 +00:00
Joe Finney 2c10561715 version v1.3.3 2015-11-08 18:07:21 +00:00
Joe Finney 691cc2feac Merge branch 'remay-quiet-gcc-build' 2015-11-08 18:07:01 +00:00
Joe Finney ea51f396ca Added compatibility for builds under ARMCC 2015-11-08 18:04:17 +00:00
Joe Finney 435debffed Merge branch 'quiet-gcc-build' of into remay-quiet-gcc-build 2015-11-08 13:50:33 +00:00
Jonathan Protzenko b421ba5b69 A new check for -> on ManagedTypes. 2015-11-04 15:43:36 -08:00
Jonathan Protzenko 74542e66eb Change the refcount to a protected member variable. 2015-11-04 14:20:31 -08:00
Jonathan Protzenko 88b37e83bb Add an operator overload for ManagedType. 2015-11-02 13:20:38 -08:00
Joe Finney 83a261d23f version v1.3.2 2015-11-01 23:46:10 +00:00
Joe Finney 13456c60c1 microbit: Removal of explicit Serial instance for debugging.
Debugging now runs via the standrad MicroBit::serial interface.
2015-11-01 23:42:53 +00:00
Joe Finney 99ac37e454 version v1.3.1 2015-11-01 21:34:41 +00:00
Joe Finney 1a65e4e7bc microbit: Added support for soft reset button in panic mode
Also recalibrated loop timers in MicroBitDisplay::Error(), as used by panic()...
strange these now seem off by several orders of magnitude.

TODO: Ensure CPU is running at correct internal frequency with an oscilloscope test...
2015-11-01 21:33:46 +00:00
Robert May b8083908a7 Correct warnings supression in more obvious way
Whilst a little more invasive change than the previous warnings
supression this is more correct and more obvious as to what's being done,
and what warnigns will remain in place for the rest of the comilation
2015-11-01 20:19:18 +00:00
Robert May 9591ef40dc Turn off -Wunused-parameter for include "nrf_soc.h"
Unfortunately we can't turn it off just while nrf_soc.h is being included
as the way the defines are used the compiler can't tell the parameters
are unused until the end of the compilation unit.  So we can't use the
more normal

as that pops the supression too early.

WARNING: including nrf_soc.h will turn off unused-function warnings for
the rest of the compilation unit - see included nrf_svc.h
2015-11-01 20:19:17 +00:00
Robert May 1a1a5976a8 Silence GCC -Wall 2015-11-01 20:19:17 +00:00
Robert May 3a8c72144f up the cmake version required to 2.8.12, which is required for target_compile_options. 2015-11-01 20:19:17 +00:00
Robert May a39ba7d4f7 Turn off GCC warnings when building the dependancies 2015-11-01 20:19:17 +00:00
Robert May b2d3417559 Fix build when $git_branch fails to be set correctly. 2015-11-01 20:19:17 +00:00
Joe Finney 2b35c969cd version v1.3.0 2015-11-01 18:31:37 +00:00
Joe Finney e68e47512a microbit: Updated default evernt queue depth to match test cases 2015-11-01 18:23:54 +00:00
Joe Finney 194f19a428 Merge branch 'simplified-eventing' 2015-11-01 18:22:27 +00:00
Joe Finney 1b6d6038c1 Merge branch 'master' into tight-validation 2015-11-01 16:28:08 +00:00
Joe Finney 77af825df0 Merge branch 'master' into simplified-eventing 2015-11-01 16:27:15 +00:00
Joe Finney 39abf824dc microbit: More efficient handling of events
Removed unnecessary queing of item on the MessageBus, whilst maintaining causal ordering.
2015-11-01 15:16:27 +00:00
Joe Finney b2e9369771 microbit: BUGFIX DoS attacks on the MessageBus
- Enures an event listener is not deleted whilst a fiber is activiely processing a queue
 - Added support for resurrection of event listeners in cases where identical listeners are removed/added repetitively.
2015-11-01 12:59:52 +00:00
Joe Finney 84da6a4a09 microbit: Minor bug fixes and refinements
- Add maximum depth for event queues, to prevent buggy scripts causing total memory exhaustion.
  - Suppress generation of A/B click events when A+B click is generated
  - preservation of event ordering on messagebus for resursive event generation cases.
  - bugfix of message bus processing to prevent occasional dual processing of events
  - bugfix MicroBitDisplay to behave correctly when delay parameter is zero.
2015-10-31 10:27:38 +00:00
Joe Finney 0fa8296048 microbit: BUGFIX safe deletion of listeners
also correction to minor bu in MicroBitFiber that could conceivably send more
notifications that it should...
2015-10-29 00:08:33 +00:00
Joe Finney 1eeaeca2c6 microbit: BUGFIX - correct initialization of MicroBitListener
code now correctly initiailizes the evt_queue filed needed to prevent
lockup during event processing (understandably!).
2015-10-28 14:17:12 +00:00
Joe Finney 7f64a4c703 microbit: BUGFIX Corrected incorrect handling of MicroBitMessageBus::add return values. 2015-10-26 16:37:12 +00:00
Joe Finney 823a956d68 microbit: First cut at updates to provide tight validation within the runtime code, with a view to moving
NOP/clamping behaviour out of teh micro:bit runtime and into the glue layers of higher level

 - Updates to many functions to provide explicut return codes.
 - Updates to many functions to remove heuristic calidation (NOP/clamping/defaults)
 - Updates to ErrorNo.h to provide clearer return values, and place return values in a better scope
 - Updates to MicroBitDisplay to use enums where appropriate.
2015-10-25 21:51:33 +00:00
bluetooth-mdw 8924cab6da Merge branch 'master' of 2015-10-23 13:12:13 +01:00
bluetooth-mdw 4b6cd6ed52 Corrected "Status of...." section prior to publication. 2015-10-23 13:11:51 +01:00
Joe Finney 03214f9a0c version v1.2.4 2015-10-21 11:45:11 +01:00
Joe Finney ad398033ba Merge branch 'bluezone-fix' 2015-10-21 11:39:34 +01:00
Joe Finney bfe1b4db53 microbit: some work on tightening the API return codes.
still work in progress.
2015-10-21 11:35:59 +01:00
bluetooth-mdw 6cc19fd6e8 Added Pin AD Configuration values to description of the characteristic. 2015-10-20 11:39:41 +01:00
bluetooth-mdw 01ec1bb159 All services except Generic Access and Generic Attribute designated "optional" to allow subset profiles to be assembled easily. 2015-10-20 10:15:25 +01:00
bluetooth-mdw 523800935f Updated following final(?) profile adjustments 2015-10-19 17:39:03 +01:00
bluetooth-mdw eba76ecae4 Documented new mapping of LED matrix state data to display rows and LEDs 2015-10-19 17:29:26 +01:00
Joe Finney 613f524bab microbit: BUGFIX: micro:bit not entering BLUEZONE mode cleanly
Fixed bug in GAP advertisement configuration.
2015-10-19 14:42:13 +01:00
bluetooth-mdw 4e90c4a273 Documented supported values of Accelerometer Period and Magnetometer Period 2015-10-19 12:35:17 +01:00
Joe Finney 72e5a9a6a6 microbit: BUGFIX - post merge fixes
- MicroBitDisplay::scroll() timing bug
  - MicroBitDisplay::print() timing bug
  - MicroBitFiber wait/notify bug
2015-10-18 19:09:54 +01:00
Joe Finney 424b825185 Merge branch 'master' into simplified-eventing
2015-10-18 18:20:03 +01:00
Joe Finney 7fb3fc02c4 version v1.2.3 2015-10-18 17:59:26 +01:00
Joe Finney e3f0c7d6e5 Merge branch 'ble-profile' 2015-10-18 17:57:47 +01:00
Joe Finney 80f79f7faf Merge branch 'master' into ble-profile
2015-10-18 17:54:37 +01:00