aboutsummaryrefslogtreecommitdiff
path: root/nrf528xx/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'nrf528xx/main.c')
-rw-r--r--nrf528xx/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nrf528xx/main.c b/nrf528xx/main.c
index 22777f9..c85a6c1 100644
--- a/nrf528xx/main.c
+++ b/nrf528xx/main.c
@@ -1,13 +1,13 @@
-#include <zephyr/zephyr.h>
#include <zephyr/drivers/gpio.h>
+#include <zephyr/zephyr.h>
-static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
+static const struct gpio_dt_spec CD_LED = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
-void main() {
- gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE);
+void main() { // NOLINT
+ gpio_pin_configure_dt(&CD_LED, GPIO_OUTPUT_ACTIVE);
- while (1) {
- gpio_pin_toggle_dt(&led);
- k_msleep(500);
- }
+ while (1) {
+ gpio_pin_toggle_dt(&CD_LED);
+ k_msleep(500);
+ }
}