Skip to content

Due and Zero appear not to support shiftIn() #252

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

Closed
RobTillaart opened this issue Dec 22, 2020 · 1 comment · Fixed by #256
Closed

Due and Zero appear not to support shiftIn() #252

RobTillaart opened this issue Dec 22, 2020 · 1 comment · Fixed by #256
Milestone

Comments

@RobTillaart
Copy link

RobTillaart commented Dec 22, 2020

shiftIn() is missing in unit test for DUE and ZERO
While compilation of examples does work ..

Error message ZERO

Last command:  $ g++ -std=c++0x -o /github/workspace/unittest_unit_test_001.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DNUM_SERIAL_PORTS=2 -I/action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino -I/action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/unittest -I/github/home/Arduino/libraries/FastShiftIn /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/Arduino.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/Godmode.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/stdlib.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/unittest/ArduinoUnitTests.cpp /github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp /github/home/Arduino/libraries/FastShiftIn/test/unit_test_001.cpp

/github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp: In member function ‘int FastShiftIn::readLSBFIRST()’:
/github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp:78:12: error: ‘shiftIn’ was not declared in this scope
   _value = shiftIn(_databit, _clockbit, LSBFIRST);
            ^~~~~~~

error message DUE

Last command:  $ g++ -std=c++0x -o /github/workspace/unittest_unit_test_001.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__SAM3X8E__ -DARDUINO_ARCH_SAM -DARDUINO_SAM_DUE -DNUM_SERIAL_PORTS=4 -I/action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino -I/action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/unittest -I/github/home/Arduino/libraries/FastShiftIn /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/Arduino.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/Godmode.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/arduino/stdlib.cpp /action/bundle/ruby/2.6.0/bundler/gems/arduino_ci-d86200aa8b3b/cpp/unittest/ArduinoUnitTests.cpp /github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp /github/home/Arduino/libraries/FastShiftIn/test/unit_test_001.cpp

/github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp: In member function ‘int FastShiftIn::readLSBFIRST()’:
/github/home/Arduino/libraries/FastShiftIn/FastShiftIn.cpp:78:12: error: ‘shiftIn’ was not declared in this scope
   _value = shiftIn(_databit, _clockbit, LSBFIRST);
            ^~~~~~~
RobTillaart added a commit to RobTillaart/FastShiftIn that referenced this issue Dec 22, 2020
* initial arduino-ci
* added unit tests (fails for due and zero) ==> Arduino-CI/arduino_ci#252
@RobTillaart
Copy link
Author

RobTillaart commented Dec 22, 2020

Has the same problem with shiftOut()

RobTillaart added a commit to RobTillaart/FastShiftOut that referenced this issue Dec 22, 2020
* initial arduino-ci
* added unit test - fails due to - Arduino-CI/arduino_ci#252
* fix some things to get unit test and examples running
@ianfixes ianfixes added this to the 2020 Wrapup milestone Dec 23, 2020
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 a pull request may close this issue.

2 participants