-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace libopen's GPIO APIS by Zephyr GPIO APIs #3
Conversation
a9941ce
to
e7a5d7a
Compare
Zephyr has stopped configuring clock from the code and instead is doing it from device tree. Should I implement this in this pull request or should we work on this separately? |
9244a81
to
01b3ce2
Compare
Can you please not add 'Signed-off-by:' lines to the commit messages. It doesn't make any sense for the project at this stage. |
@@ -15,6 +15,6 @@ zephyr_include_directories(${CMAKE_SOURCE_DIR}/../..) | |||
project(led_test) | |||
|
|||
target_sources(app PRIVATE | |||
main.c | |||
bloodlight_based.c |
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.
It isn't clear why you have renamed 'main.c' as 'bloodlight_based.c'. The intended meaning of the name 'bloodlight based' isn't very clear.
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.
I edited the commit description. See: 8afe0b7
tests/led/bloodlight_based.c
Outdated
#include <drivers/uart.h> | ||
|
||
#include "../../src/led.h" | ||
#include "../../src/led.c" |
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.
The project should have 'led.c' in the target_sources() in the CMakeLists.txt file and there is not need to include the sources like this. Also 'led.c' will have an include for 'led.h' and you wouldn't need two includes if you to include the 'led.c' source like this.
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.
why is it that by including led.c in target_sources() I don need to include it in bloodlight_based.c?
01b3ce2
to
46ef867
Compare
It is my personal preference to sign all my commits, as it won't hurt in any way the project I will keep doing it. |
b924ae2
to
8cc986d
Compare
53cf0f3
to
6f78e52
Compare
7380329
to
7dcb0de
Compare
55354f1
to
a62352b
Compare
0c12b8e
to
d3a422d
Compare
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Configure inside bl_led__gpio_mode_setup() all pins containing a LED connected to them on each port. Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
This ensures that bl_led_get_port() can be used in spi.c Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
* Include console support * Bloodlight_based.c: Test leds with led.c APIs. * Build bloodlight_based.c by default. * Test bl_led_status_set() Keep both tests zephyr_based (previous main) and bloodlight_based.c so the user can select in CMakeFie which test wants to run. zephyr_based to test leds using zephyrs APIs or bloodlight_based to test them using bloodlight's APIs. Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
d3a422d
to
fa33bb8
Compare
This merge request replaces libopens GPIO;s APIs with Zephyr's GPIO API's.
Tested functions: