Commit Graph

698 Commits

Author SHA1 Message Date
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
James Devine 9fcfe937ae Added listener_deletion_callback member to EventModel
In upcoming commits I will add the ability to add/ignore listeners based also on the given listener cb_arg. With the possibility of multiple handlers being deleted at once, it's useful to application developers to be able to inspect what is being removed.
2018-08-26 22:45:03 -07:00
James Devine 84cc68903c corrected bad indentation 2018-08-26 19:29:33 -07:00
Martin Williams 00689525a0 Change MicroBitMemoryMap::findHashes() to set MakeCode startAddress 2018-08-26 18:27:39 +01:00
Martin Williams 9f5d5802ed Fix MicroBitPartialFlashingService blockPacketCount increment. If the 5th packet goes missing, the recovery code would have set packetCount based on the wrong blockPacketCount, expecting the same packet numbers again. 2018-08-26 18:10:41 +01:00
Sam Kent f385db52d5 Error 050: Accelerometer unavailable; 051: Magnetometer unavailable 2018-08-20 11:32:05 +01:00
Sam Kent f7f4887285 Even better logo 2018-08-08 12:04:41 +01:00
Sam Kent 27c5654db2 Fix BT Logo 2018-08-08 11:52:05 +01:00
Mark dd449ade48
Update README.md
updated links to reference microbit.org
2018-08-08 08:38:09 +01:00
Philipp Henkel 4ac7a3b861 Always read from the serial to clear the RX interrupt 2018-07-25 08:45:10 +02:00
Joe Finney 5d40fcf479
Merge pull request #362 from Taylor-Woodcock/dal-integration
Fixed sample period lookup issue in MAG3110 and MMA8653 drivers.
2018-07-24 15:31:07 +01:00
Taylor-Woodcock 679801153a Fixed issue with sample period lookup not being multiplied by 1000 in the MAG3110 and MMA8653 drivers, and set the default compass sample rate back to 10Hz. 2018-07-24 15:10:44 +01:00
Jonny Austin e3188e315a Add SoftDevice values for S130v1
These values are determined from
http://infocenter.nordicsemi.com/pdf/S130_SDS_v1.0.pdf
pg 41

It appears using S130v2 would allow even lower memory consumption

This is for use in conjunction with the
bbc-microbot-classic-gcc-s130
target, which also needs a fix before it will work.
2018-07-12 09:29:07 +01:00
Joe Finney 52e308658f Merge branch 'partial-flashing' into dal-integration 2018-07-06 17:42:09 +01:00
Sam Kent e13d31c27a Fix whitespace 2018-07-06 16:57:59 +01:00
Joe Finney 28dec2ca9b Update module version to identify dal-integration branch 2018-07-06 16:56:40 +01:00