Skip to content

Modification of ArduinoCore-avr to use API #2

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

giulcioffi
Copy link

The following proposed modifications are intended to port the API to the AVR boards:

  1. rename the "HardwareSerial" classes (from the API) with "UART" (from ArduinoCore-avr);
  2. remove functions/definitions from several files in ArduinoCore-avr, since they are already implemented/defined by the API.
    Files modified:
    • "Arduino.h" : it now includes "api/ArduinoAPI.h" and "api/Common.h"
    • "WMath.cpp": few functionalities are already implemented by "api/Common*"
      Files deleted, because included in the API:
    • "Client.h"
    • "IPAddress*"
    • "Print"
    • "Server.h"
    • "Stream*"
    • "Udp.h"
    • "WCharacter.h"
    • "WString*"
    • "binary.h"
  3. port USB, SPI and Wire into API: for all of them types u8/u32 have been replaced with standard types;
  4. the digital* APIs have been adapted
  5. modification of compile recipes (in "platform.txt") to add the API folder.

@facchinm facchinm force-pushed the namespaced_api_rebased_master branch from bffee69 to e908c9e Compare April 10, 2020 10:16
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