Commit Graph

713 Commits

Author SHA1 Message Date
Joe Finney 51011d32e3 Bump to v2.1.1 2018-11-23 14:13:37 +00:00
Joe Finney 1003cdefbf
Merge pull request #408 from microbit-sam/remove-int-io
Remove Int1,2,3
2018-11-23 13:58:19 +00:00
Sam Kent 521381d276 Remove int1,2,3 2018-11-22 14:00:07 +00:00
Joe Finney 3b3848a4c3
Merge pull request #401 from microbit-sam/050
Delay microbit_panic for 050 / 051 errors
2018-11-08 09:44:59 +00:00
Sam Kent 96126fd23f Delay microbit_panic 2018-10-24 20:55:19 +01:00
Joe Finney 11c8205754
Merge pull request #391 from lancaster-university/print-heap
Make microbit_heap_print() available externally
2018-10-02 17:21:48 +01:00
Jonathan Austin 3e37cc9c4e Make microbit_heap_print() available externally
The heap printing in MicrobitHeapAllocator is really useful for
gauging how much memory is free at various points in the program.

Specifically, by calling this after the uBit object is created we
can start to measure a high-water-mark for RAM and track it over
releases, etc
2018-10-02 17:14:05 +01:00
Joe Finney 94fa768a8f
Merge pull request #389 from microbit-sam/radio-patch
Radio Patch: Correctly set TX Power, Update Frequency Limit
2018-09-28 16:14:00 +01:00
Sam Kent 01d6d4f39a Added Yotta Glue 2018-09-27 12:12:01 +01:00
Sam Kent 7aedfab59a Add defines for radio upper/lower freq 2018-09-24 18:26:48 +01:00
Sam Kent 54a99d6361 Use setTransmitPower() 2018-09-24 17:06:30 +01:00
Joe Finney 3898c0ddc7 Fix CHANGELOG layout 2018-09-19 20:09:14 -07:00
Joe Finney fffda0b1e8 Add CHANGLEOG and update for v2.1.0 2018-09-19 20:06:33 -07:00
Joe Finney 74d39eab26
Merge pull request #386 from aureliano2nd/patch-1
Fix doc typos in MicroBitFont.cpp
2018-09-18 14:24:20 -07:00
aureliano2nd b60953b196
Update MicroBitFont.cpp
Fixed typos
2018-09-18 22:26:16 +02:00
Joe Finney 9164922a51 version 2.1.0 2018-09-17 10:38:57 -07:00
Joe Finney 54f7284bc4 Bump to dal-integration-6 2018-09-13 17:43:04 +01:00
Joe Finney 50bb8d9458 Prevent mirroring of compass heading across North/South axis
The tilt compensation algorithm previously mirrored the compass heading value
across a North/South axis i.e. West measured as East and vice versa. This
patch corrects the calculation.
2018-09-13 14:51:50 +01:00
Joe Finney d3d64283a7 Fixes to LSM303 DATA_READY Signal detection and configuration
Updates to LSM303 magnetometer driver to:
  - Configure for a clean DATA_READY signal, disabling all other interrupt
    sources
  - Correct the interrupt polarity

Updates to MicroBitCompass to:
  - Define configure() as virtual, to enable applicaiton uses to correclty
    configure all magnetometers for update period.
2018-09-13 12:58:28 +01:00
Joe Finney 129726e669 Bump version to dal-integration-5 2018-09-08 18:06:03 +01:00
Joe Finney ccd55f198d Ensure display brightness is visible during compass calibration 2018-09-08 18:04:22 +01:00
Joe Finney ad764c780b Merge branch 'dal-integration' of https://www.github.com/lancaster-university/microbit-dal into dal-integration 2018-09-07 18:48:20 +01:00
Joe Finney 471abe95b0 Bump to dal-integration-4 2018-09-07 18:47:42 +01:00
Joe Finney da620c0f3f
Merge pull request #380 from lancaster-university/messagebus-patch
Messagebus patch
2018-09-07 18:35:20 +01:00
Joe Finney b2f56b97ed
Merge pull request #383 from microbit-sam/ble-memory-fixes
Add "DO NOT PAGE" flag to pairingMode fiber. Store animation in flash.
2018-09-07 18:25:40 +01:00
Joe Finney 34e46f04e4
Merge pull request #382 from microbit-sam/pf-yt-toggle
Use config.json to enable / disable Partial Flashing Service
2018-09-07 17:55:41 +01:00
Joe Finney 0c746140a3 Merge branch 'single-heap' into dal-integration 2018-09-07 17:44:37 +01:00
Joe Finney 1a4d5abd7b Introduce CONFIG option to enable/disable microbit heap allocator
- Add CONFIG option to MicroBitConfig.h
  - Add YOTTA glue for config.json mapping
  - Introduce conditional compilation into MicroBitHeapAllocator.cpp
2018-09-07 17:41:49 +01:00
Sam Kent 8aff0eaf4d Added fiber flag. Shifted image to flash 2018-09-07 17:06:51 +01:00
Joe Finney 4dda6ef298 Disable DEBUG information 2018-09-07 14:51:26 +01:00
Joe Finney 6c9b3e7d1c Remove diagnostic information 2018-09-07 14:48:41 +01:00
Sam Kent e08535a647 if def for entire PF service 2018-09-07 13:33:16 +01:00
Joe Finney aba1a2c2ab Add diagnostic information 2018-09-06 20:54:58 +01:00
Joe Finney 76755540cf Bump to dal-integration-3 2018-09-06 16:47:43 +01:00
Joe Finney c3beca20c6 First compiling build of overriding heap allocator 2018-09-06 16:03:00 +01:00
Joe Finney 83e1795945 Add config.json glue logic for MICROBIT_FULL_RANGE_PITCH_CALCULATION 2018-09-06 14:35:32 +01:00
Joe Finney 75661b0603 Bump version to dal-integration-2 2018-09-05 17:23:06 +01:00
Joe Finney 7e04b4646b Merge branch 'fix-bt-logo' of git://github.com/microbit-sam/microbit-dal into dal-integration 2018-09-05 10:32:03 +01:00
Joe Finney 14f4c0e64e Merge branch 'hardware-unavailable' of git://github.com/microbit-sam/microbit-dal into dal-integration 2018-09-05 10:31:13 +01:00
Joe Finney c512bcd785 Merge branch 'flashData' of git://github.com/martinwork/microbit-dal into dal-integration 2018-09-05 10:29:09 +01:00
Joe Finney 0d86640b80 Merge branch 'findhashes' of git://github.com/martinwork/microbit-dal into dal-integration 2018-09-05 10:24:08 +01:00
Joe Finney 8e8dbd668d Merge branch 'shake_last_gesture' of git://github.com/microbit-carlos/microbit-dal into dal-integration 2018-09-05 09:59:47 +01:00
Joe Finney 2a12ea23c1 Merge branch 'nrf_radio_channel_change' of git://github.com/spauka/microbit-dal into dal-integration 2018-09-05 09:56:19 +01:00
Joe Finney 97382b8fb0 Merge remote-tracking branch 'origin/s130-config' into dal-integration 2018-09-05 09:51:38 +01:00
Joe Finney 24d27a1ea4 Merge branch 'fix-serial-hang' of git://github.com/philipphenkel/microbit-dal into dal-integration 2018-09-05 09:48:29 +01:00
Joe Finney a994388ef5 Merge branch 'patch-1' of git://github.com/microbit-mark/microbit-dal into dal-integration 2018-09-05 09:43:12 +01:00
Joe Finney 95c1fc7f05 Fix Calculation of Pitch/Roll. Fixes #371
This patch:

 - Corrects the getPitch() and getRoll() methods to use normalized data from accelerometer sensors.
 - Provides a compile time option (default: enabled) to provide full range 0..360 degree pitch data
   that is consistent with the rage of the roll data.
 - Updates the tilt compensated compass heading calculation to use normalized data from accelerometer sensors.
2018-09-04 23:43:32 +01:00
microbit-carlos ab9e6fc550 When updateGesture() creates a SHAKE event also register it as the last gesture detected
Background info:
https://github.com/lancaster-university/microbit-dal/issues/372#issuecomment-417731360
2018-09-03 10:33:40 +00:00
Sam Kent 26d7b6d420 Partial Flashing disabled by default. Enabled for MakeCode builds 2018-08-29 19:14:08 +01:00
James Devine 74a7f7e63b add the ability to add / ignore based on the cb_arg
This commit introduces differentiation of listeners based on the cb_arg. This means that multiple listeners can be registered for the same event source and value, but with different cb_args.

Upon listener deletion, the listener_deletion_callback is invoked if non-NULL.

Motivation:
MakeCode uses cb_arg as context for higher level function pointer mapping (key / value), it can currently hold only one function pointer due to dal limitations.
MakeCode currently has an indirection layer for events that could be first class listener invocations, this is due to omitting cb_arg when ignoring / adding listeners.

Implementation:
there is probably a "cooler" way of doing this, i.e. a meta listener where the cb arg is set with a pointer to the listener being removed.
reasons why a callback function is superior:
1) fast and immediate
2) requires far less configuration (could be really complex with a meta listener)
3) smaller memory and processing overhead
2018-08-26 22:51:09 -07:00