Skip to content

Commit

Permalink
ready for release 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Aug 31, 2020
1 parent 8c3eb73 commit ce81b83
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 75 deletions.
23 changes: 21 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
# Adafruit nRF52 Arduino Core Changelog

## 0.21.0 - 2020.08.31

Special thanks to @henrygab, @pyro9, @Nenik, @orrmany, @thaanstad, @kevinfrei for contributing and helping with this release.

- Reworked HardwarePWM, analogWrite, Servo, Tone to address PWM hardware conflict with ownership.
- Reworked Tone to use no interrupt handler
- Added multiprotocol support such as ANT with additional ANT_LICENSE_KEY (require 3rd party library)
- Fixed pgm_read_ptr(addr) macro
- Updated & enhanced TinyUSB performance, usb event, task switching is much faster
- Fixed BLE Characteristic discovery when the central device returns more than 4 Characteristics in a discovery request
- Enhanced micro() to use DWT cyclecount if enabled for higher precision
- Fixed miscalculated tick when sleeping with delay()
- Fixed FPU-caused power consumption issue
- Added Wire.setPins()
- Added resumeLoop()
- Renamed I2C terminology
- Support precompiled library with compiler.libraries.ldflags e.g BSEC BME680
- Added Hardware/tone_happy_birthday example sketch

## 0.20.5 - 2020.07.05

Special thanks to @henrygab, @pyro9, @geeksville for contributing and helping with this release.

- Updated toolchain from gcc 7-2017q4 to 9-2019q4
- Fixed GPIOTE channel conflict between libraries
- Added type-safe for arrcount() macros
- Added truncate() and rename() to Internal Filesystem (LittleFS).
- Update CMSIS from v4 to v5 to build with TensorFlow
- Update TinyUSB core to commit 0749077

Special thanks to @henrygab, @pyro9, @geeksville for contributing and helping with this release.

## 0.20.1 - 2020.04.23

- Update TinyUSB to commit c59fa77 due to a bug in the stack
Expand Down
60 changes: 25 additions & 35 deletions cores/nRF5/HardwarePWM.cpp
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
/**************************************************************************/
/*!
@file HardwarePWM.cpp
@author hathach (tinyusb.org)
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2018, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**************************************************************************/
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ha Thach for Adafruit Industries
* Copyright (c) 2020 Henry Gabryjelski
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/


#include "Arduino.h"
#include "HardwarePWM.h"
Expand Down
2 changes: 2 additions & 0 deletions cores/nRF5/Tone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Version Modified By Date Comments
0008 S Kanemoto 12/06/22 Fixed for Leonardo by @maris_HY
0009 Arduino.org 15/06/30 Add M0/M0 Pro support
0010 Arduino.org 16/07/27 Added Arduino Primo support
0011 Henry Gabryjelski 20/08/25 Rework/Rewrite the library to use no interrupt handler and
support HwPWM ownership
*************************************************/

#include "Arduino.h"
Expand Down
59 changes: 24 additions & 35 deletions cores/nRF5/wiring_analog.cpp
Original file line number Diff line number Diff line change
@@ -1,38 +1,27 @@
/**************************************************************************/
/*!
@file wiring_analog.cpp
@author hathach (tinyusb.org)
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2018, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**************************************************************************/
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ha Thach for Adafruit Industries
* Copyright (c) 2020 Henry Gabryjelski
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "Arduino.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// PIN_BUZZER should be defined by the supported variant e.g CPlay Bluefruit or CLUE.
// Otherwise please define the pin you would like to use for tone output
#ifndef PIN_BUZZER
#define PIN_BUZZER 5
#define PIN_BUZZER A0
#endif


Expand Down
2 changes: 1 addition & 1 deletion libraries/Bluefruit52Lib/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit Bluefruit nRF52 Libraries
version=0.20.5
version=0.21.0
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library for nRF52-based Adafruit Bluefruit LE modules
Expand Down
3 changes: 3 additions & 0 deletions libraries/Servo/src/nrf52/Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified by Ha Thach for Adafruit Industries
Modified by Henry Gabryjelski to add ownershp support
*/

#if defined(ARDUINO_ARCH_NRF52) || defined(ARDUINO_NRF52_ADAFRUIT)
Expand Down
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

name=Adafruit nRF52 Boards
version=0.20.5
version=0.21.0

# Compile variables
# -----------------
Expand Down

0 comments on commit ce81b83

Please sign in to comment.