diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-11-20 16:53:33 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-11-20 16:53:33 +0100 |
commit | 87feae8a58bcda71b2e60a9156f678f3c4cec6d7 (patch) | |
tree | d0fb3837d45088dc0758eb27b8c575c2e6b2870c /nrf528xx/main.c | |
parent | 4413a40440a48aa0f79ae4bec0adf3a68408a0e3 (diff) |
add clang-tidy and clang-format
Diffstat (limited to 'nrf528xx/main.c')
-rw-r--r-- | nrf528xx/main.c | 16 |
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); + } } |