-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
applications: nrf5340_audio: LED module for kits with other LED setup #20483
base: main
Are you sure you want to change the base?
applications: nrf5340_audio: LED module for kits with other LED setup #20483
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 238384ffe16279bb78e2e04b75cf16dea2321cda more detailssdk-nrf:
Github labels
List of changed files detected by CI (24)
Outputs:ToolchainVersion: 4cff34261a Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
@@ -0,0 +1,39 @@ | |||
/* |
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.
commit message is indented when it should not be
<&gpio0 26 GPIO_ACTIVE_HIGH>; | ||
label = "RGB LED 0"; | ||
}; | ||
rgb2: rgb-2 { |
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.
line spacing between child nodes
psels = <NRF_PSEL(I2S_MCK, 0, 12)>; | ||
nordic,drive-mode = <NRF_DRIVE_H0H1>; | ||
}; | ||
group2 { |
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.
apply throughout PR
/** @brief List of buttons and associated metadata | ||
*/ | ||
enum button_pin_names { | ||
BUTTON_VOLUME_DOWN = DT_GPIO_PIN(DT_ALIAS(sw0), gpios), | ||
BUTTON_VOLUME_UP = DT_GPIO_PIN(DT_ALIAS(sw1), gpios), | ||
BUTTON_PLAY_PAUSE = DT_GPIO_PIN(DT_ALIAS(sw2), gpios), | ||
#if defined(CONFIG_BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP) |
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.
use DT macros to check if node exists
@@ -52,6 +52,7 @@ const static struct btn_config btn_cfg[] = { | |||
.btn_pin = BUTTON_PLAY_PAUSE, | |||
.btn_cfg_mask = DT_GPIO_FLAGS(DT_ALIAS(sw2), gpios), | |||
}, | |||
#if defined(CONFIG_BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP) |
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.
as above
|
||
#include <zephyr/logging/log.h> | ||
LOG_MODULE_REGISTER(led, CONFIG_MODULE_LED_LOG_LEVEL); | ||
LOG_MODULE_REGISTER(led, 4); /* CONFIG_MODULE_LED_LOG_LEVEL); */ |
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.
no
@@ -8,8 +8,8 @@ target_sources(app PRIVATE | |||
${CMAKE_CURRENT_SOURCE_DIR}/channel_assignment.c | |||
${CMAKE_CURRENT_SOURCE_DIR}/error_handler.c | |||
${CMAKE_CURRENT_SOURCE_DIR}/uicr.c | |||
${CMAKE_CURRENT_SOURCE_DIR}/board_init.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.
fix indent
* | ||
* @return 0 if successful, error otherwise. | ||
*/ | ||
int board_init(void); |
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.
do not name function with board_* likewise with Kconfigs, that is reserved for actual boards files in the boards folder not applications
#ifndef _BOARD_H_ | ||
#define _BOARD_H_ |
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.
same here
cc4d61d
to
7fb59b9
Compare
7fb59b9
to
1e62820
Compare
After documentation is built, you will find the preview for this PR here. |
1e62820
to
a50c58c
Compare
The LED module is currently written in a way that’s highly dependent on all of the LEDs present on the audio DK, which prevents the application from running on the nRF5340 DK. The module must be refactored so that it can still show the state of the application with a different selection of LEDs. Signed-off-by: Graham Wacey <[email protected]>
a50c58c
to
238384f
Compare
OCT-3012
The LED module is currently written in a way that’s highly dependent on all of the LEDs present n the audio DK, which prevents the application from running on the nRF5340 DK. The module must be refactored so that it can still show the state of the application with different selection of LEDs.