Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Backport patches from arduino/ArduinoCore-mbed #2

Merged
merged 20 commits into from
Jul 14, 2020

Conversation

sabas1080
Copy link
Member

This should be the last maintenance release of this core; since this core is based on mbed 5.x branch all functions marked for deprecation are still there; arduino/ArduinoCore-mbed, on the other hand, contains all the new stuff and should replace this core as soon as considered stable.

Direct from Arduino arduino#81

facchinm and others added 20 commits June 11, 2020 12:41
A Nordic specific ADC configuration is implemented in 'variant.cpp'.
It can be modified using 'analogReference' function, all the reference
options are defined in 'pins_arduino.h'.
Once the configuration is changed:
- the already active ADC objects are reconfigured.
- new ADC objects will be set to the most recent configuration.
Implement a Nordic specific function able to change the acquisition time
of ADCs.
- PinMode is redefined to be compatible with both Arduino and Mbed contexts
- DigitalInOut is employed to handle gpio, it now exploits the
reconfigure PinMode symbol
Implements checks on DigitalRead and DigitalWrite functions. If the requested pin is not
initialized, it is assigned to a new DigitalInOut object configured as:
- if INPUT: no pull and 0 as default value
- if OUTPUT: no pull and the argument value as init value
Works in sync with upcoming arduino-builder for precompiled libraries
Borrow implementation for samd core
Should fix #85
@sabas1080 sabas1080 requested a review from wero1414 July 14, 2020 13:40
@sabas1080 sabas1080 merged commit 49ad0a1 into ElectronicCats:master Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants