-
Notifications
You must be signed in to change notification settings - Fork 5
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
Basic arduino port of PULSOXYv0.0.1 #8
base: master
Are you sure you want to change the base?
Conversation
@JosefKauer could you please review this PR? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this port!
why did you copy all files into a new structure instead of using the existing files?
the minimal changes in the original UART.c
& Update_Signals.h
& main.c
do not justify such a split.
This leads to either dead code, which won't be used in the future or at least duplicated code that gets hard to maintain. you could split up the original main.c
into parts which can be used by by the old project and by your port.
It's all in one directory because that's how Arduino projects work. The Arduino IDE does not look for files in subdirectories. This project is organized in a way that you can just open the
The way I understood issue #7 this should replace the Atmel Studio code. Not sure if there is another upstream repository for the PULSOXY software that you want to track for future improvements. |
Thanks for the info, I didn't know this about the arduino toolchain. I had some issues reviewing this PR, because your initial copy already contained modifications (I couldn't easily determine your changes and ended up diffing each file by hand). |
Copy .c and .h files from Driver/ Include/ Util/ and main.c from the original project. Put everything in one directory for the Arduino IDE to find everything. Signed-off-by: Stefan Nuernberger <[email protected]>
CFile1.c and init_ADC.c do not contribute to the project. Remove these files. Also remove init_ADC.h header file. All ADC related functions are already declared and implemented in the ADC.c/.h files. Signed-off-by: Stefan Nuernberger <[email protected]> Remove init_ADC.h header Signed-off-by: Stefan Nuernberger <[email protected]>
The .ino should have the same name as the containing folder for the Arduino IDE to recognize it. Signed-off-by: Stefan Nuernberger <[email protected]>
F_CPU is usually already defined by the project makefile. Signed-off-by: Stefan Nuernberger <[email protected]>
Prevent C++ name mangling when reading these functions. Signed-off-by: Stefan Nuernberger <[email protected]>
Signed-off-by: Stefan Nuernberger <[email protected]>
These are ADC values that are used as signed int16 in the code. Signed-off-by: Hannes Seidel <[email protected]>
Signed-off-by: Stefan Nuernberger <[email protected]>
Signed-off-by: Stefan Nuernberger <[email protected]>
Split the main() function into setup() and loop() for classical Arduino feeling. Arduino will provide a main() that calls those. Signed-off-by: Stefan Nuernberger <[email protected]>
Signed-off-by: Stefan Nuernberger <[email protected]>
Started from a clean working directory and force-pushed to update the PR. Also removed the unused
|
For reference, this code matches the status of the arduino-pulsoxy repo seihan/arduino-pulsoxy@a6a5245 |
This is an import of this repository: https://github.com/seihan/arduino-pulsoxy
with status from commit seihan/arduino-pulsoxy@cbdd3d9
into a subdirectory of the circuit boards repository.
Fixes: #7