Skip to content

Implement Common #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jul 20, 2020
Merged

Implement Common #1

merged 19 commits into from
Jul 20, 2020

Conversation

oclyke
Copy link
Contributor

@oclyke oclyke commented Jul 20, 2020

Support these aspects of Arduino (from ArduinoCore-API/api/Common.h)

  • digital GPIO functions
  • analog GPIO functions
  • shiftIn/shiftOut
  • GPIO interrupts
  • initialization (global and variant specific)

oclyke added 19 commits July 8, 2020 12:49
- pinMode
- digitalWrite
- digitalRead
the implementation is a stand-in until mbed support PwmOut and/or AnalogOut. Also possible to wrap these implementations in preprocessor statements that would allow override by a different module (external to this repo) when the necessary modules are not present in the mbed device
need to change submodule location so I am storing changes in the cloud
Common.h contains a lot of different Arduino API declarations - this splits their implementations into several files for clarity

the files begin with 'Common' to indicate their relation to the Common.h interface and are postfixed with a descriptive word to indicate their particular purpose
mbed extensions to the normal Arduino API are located in 'core-extend'
the declaration mistakenly used pin_size_t as the paramter type causing an undefined reference at link
also restructured a little bit
@oclyke oclyke merged commit 78638d2 into master Jul 20, 2020
@oclyke oclyke deleted the implement-Common branch July 20, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant