Gábor Ziegler
51925d20fa
making bluefruit multiprotocol friendly
2020-05-07 10:04:02 +02:00
Gábor Ziegler
1046ce6db0
Merge remote-tracking branch 'upstream/master'
2020-04-30 14:24:00 +02:00
Ha Thach
b03d6e5d81
Merge pull request #485 from henrygab/GPIOTE_Fix
...
GPIOTE fixes for attachInterrupt() / detachInterrupt()
2020-04-28 10:46:34 +07:00
Henry Gabryjelski
55c1b9f53d
Remove sequence points / barriers ...
...
when programming the GPIOTE peripheral.
the memory barrier is still used once in the ISR,
to prevent spurious interrupts caused by delay
writing over the (16MHz) AHB bus.
2020-04-27 11:25:54 -07:00
Henry Gabryjelski
c3c8ac3c8f
Updated per @hathach requested changes
...
* Changed to use compiler intrinsics
* Significantly reduced comments near memory barrier usage, as per request
* Updating `attachInterrupt()` loops to more closely match requested style
2020-04-26 16:20:13 -07:00
Henry Gabryjelski
48fda18996
one more edge case covered
2020-04-24 11:59:53 -07:00
Henry Gabryjelski
1c90673a64
Ensure config is written before enabling the corresponding interrupt enable flag
2020-04-23 16:33:01 -07:00
Henry Gabryjelski
cbbc57bd0d
Ensure CONFIG is fully cleared
2020-04-23 16:15:09 -07:00
Henry Gabryjelski
280ecaf5aa
Three bugs fixed
...
* First loop should not be checking pinmap for -1.
* Second loop should ensure no pending event when
first allocating the GPIOTE channel.
* Second loop needs to update pinmap with pin when
allocated the GPIOTE channel.
2020-04-23 15:56:50 -07:00
Ha Thach
0d245da1aa
Merge pull request #491 from adafruit/release-0.20.1
...
Update TinyUSB to commit c59fa77 due to a bug in the stack
2020-04-24 00:09:32 +07:00
hathach
26223a28d4
Update TinyUSB to commit c59fa77 due to a bug in the stack
...
increase version and update changelog
2020-04-23 23:40:25 +07:00
Ha Thach
2a1e2a0da8
Merge pull request #487 from adafruit/release-0.20.0
...
prepare for 0.20.0 release
2020-04-22 11:37:02 +07:00
hathach
9f63c9c55a
increase buffer for MIDI to 128
...
follow to https://github.com/adafruit/ArduinoCore-samd/pull/222
2020-04-22 11:10:36 +07:00
Henry Gabryjelski
9d47073cae
fix obvious typo
2020-04-21 19:53:15 -07:00
Henry Gabryjelski
0cb59145fd
Reduce ISR overhead
...
Reduce the number of cycles spent in the GPIOTE ISR,
by reading common volatile registers across AHB only
once, and using a safer hack to prevent spurious ISR
firing when the last channel's event was cleared.
2020-04-21 17:00:55 -07:00
Henry Gabryjelski
3ac53c52b4
Fix GPIOTE channel usage
...
First, when looking for a channel, first loop through
all mapped channels to see if the GPIO was already mapped.
This prevents a single GPIO being configured for more than
one channel at a time.
Second, do not use a GPIOTE channel if the channel is
already in use (e.g., by a library, sketch, or other code
outside the Board Support Package).
2020-04-21 17:00:55 -07:00
hathach
a7334a31a6
sync with tinyusb commit 1d33aa9
2020-04-22 00:23:37 +07:00
hathach
3f0cfb2d3b
prepare for 0.20.0 release
2020-04-21 17:52:48 +07:00
Ha Thach
d28219b4dc
Merge pull request #486 from adafruit/update-tinyusb
...
Update tinyusb
2020-04-21 12:19:54 +07:00
hathach
3e326e9a21
specify midi v4.3.1 due to breaking chagne from v5
2020-04-21 10:59:23 +07:00
hathach
10b85b5e4e
fix build blehid with feather52832
2020-04-21 00:30:30 +07:00
hathach
f7fae34c3e
update tinyusb to commit 718db7e
2020-04-21 00:17:30 +07:00
hathach
c039eb6787
fix compile issue with upgrading nrfx v2 and tinyusb
2020-04-20 23:11:46 +07:00
hathach
7e86e7d0ea
update tinyusb stack
2020-04-20 22:25:26 +07:00
hathach
ad3ed9b2ab
update nrfx to v2.1.0
...
this is required for latest tinyusb
2020-04-20 22:18:28 +07:00
Ha Thach
eefeba8d64
Merge pull request #482 from Montvydas/hotfix/missing-xenon-pin-assignments
...
Added Missing Pin Assignments for Xenon Board
2020-04-14 14:48:58 +07:00
Montvydas Klumbys
4b609ef91e
Xenon board can tell when it is getting powered through the USB rather than a battery and when a battery is being charged. Added required pins inside variant files and they work as specified:
...
- When PIN_PWD is HIGH, Xenon is being powered through the USB
- When PIN_CHG is LOW, a battery attached to Xenon is being charged
Note though that prior to using these pins it is neccessary to specify pinMode(PIN_CHG, INPUT) and pinMode(PIN_PWR, INPUT) due to how they're being implemented in hardware. Using these two pins 3 states of power can be deduced:
- hasUsbPower = digitalRead(PIN_PWR);
- isCharging = (hasUsbPower && !digitalRead(PIN_CHG));
- onBatteryPower = !hasUsbPower;
Added the missing LED1 initialisation.
BUTTON_FRESET pin number assignment was fixed.
2020-04-13 19:12:11 +02:00
Ha Thach
d727583ad1
Merge pull request #481 from adafruit/dev2
...
remove the force Serial connected when debug is eanbled.
2020-04-13 15:02:47 +07:00
hathach
fde823a322
remove the force Serial connected when debug is eanbled.
2020-04-13 14:24:07 +07:00
Gábor Ziegler
dff8112ce9
Merge remote-tracking branch 'upstream/master'
2020-04-02 15:18:08 +02:00
Gábor Ziegler
52614b4294
Update .gitignore
...
Ignoring S340 SD specific license-bound files
2020-04-02 15:16:41 +02:00
Ha Thach
0019306c50
Merge pull request #469 from henrygab/enable_sysview
...
[WIP] Enable/Disable SysView via CFG_SYSVIEW
2020-03-26 12:03:06 +07:00
Henry Gabryjelski
a9e109d047
Prevent double-definition on compilation
...
Boards.txt should have updated multiple settings
debug level of 3, not attempted to stuff multiple
settings into the same variable.
2020-03-25 16:48:45 -07:00
Henry Gabryjelski
20b080f9a2
Control SysView by CFG_SYSVIEW
...
Of course, this commit ensures the following:
* Zero change to BSP defaults
* Zero change to compiled code
* Zero change to UI / menu options
2020-03-25 16:20:33 -07:00
Ha Thach
78cc67ec4c
Merge pull request #474 from henrygab/Update_all_board_max_data_size
...
Update all nRF52840 boards to match linker
2020-03-26 00:25:26 +07:00
Henry Gabryjelski
ed2183a1ed
Update all nRF52840 boards to match linker
...
See commit https://github.com/adafruit/Adafruit_nRF52_Arduino/commit/583ad02a
increase sd attribute table size from 0x800 to 0xC00,
increase linker memory for SD 840 from 3400 to 6000
Since the linker is updated, all nRF52840 boards using
that linker file should also be updated.
2020-03-24 12:32:31 -07:00
Ha Thach
110b06c8f0
Merge pull request #471 from toxynoid/patch-4
...
Macro expansion ARDUINO_BSP_VERSION from platform.txt
2020-03-24 08:25:23 +07:00
Ulrich-Lorenz Schlüter
99c777411e
Update platform.txt
...
Removed redundant linebreak
2020-03-23 18:41:49 +01:00
Ha Thach
8a182394c3
Merge pull request #472 from toxynoid/patch-5
...
Update platform.txt
2020-03-23 23:50:34 +07:00
Ulrich-Lorenz Schlüter
74bf73acfc
Update platform.txt
...
Tested in eclipse aduino-cdt
2020-03-23 16:57:49 +01:00
Ulrich-Lorenz Schlüter
1f97330f10
Update platform.txt
...
regex for sizes like in https://github.com/arduino/ArduinoCore-samd/blob/master/platform.txt#L120
2020-03-23 16:39:25 +01:00
Ulrich-Lorenz Schlüter
43d723a07d
Update platform.txt
...
As recommended
2020-03-23 13:35:56 +01:00
Ulrich-Lorenz Schlüter
a1d0d3e27d
Update platform.txt
2020-03-23 13:22:04 +01:00
Ha Thach
8a1dff3f99
Merge pull request #468 from henrygab/FIX__458
...
Fix #458
2020-03-21 13:54:32 +07:00
Henry Gabryjelski
c91bed1448
Fix #458
...
Update HwPWM3 when it exists
2020-03-20 10:34:47 -07:00
Ha Thach
768be05ffc
Merge pull request #467 from adafruit/PR454-followup
...
partial revert PRITNF in lfs_util.h due to compilation error
2020-03-20 13:41:41 +07:00
hathach
045f4f8cca
partial revert PRITNF in lfs_util.h due to compilation error
2020-03-20 11:32:42 +07:00
Ha Thach
0a7d94e244
Merge pull request #454 from henrygab/Segger_RTT_5
...
Final prerequisites to improve debugger output
2020-03-20 10:16:53 +07:00
Ha Thach
be74f52943
Merge pull request #457 from adafruit/fix-wire-write
...
fix #456 Wire Write ambiguous
2020-03-13 13:06:13 +07:00
hathach
a2d32e9747
fix #456 Wire Write ambiguous
2020-03-13 12:26:34 +07:00