diff --git a/prj.conf b/prj.conf index 8b13789..4bfe201 100644 --- a/prj.conf +++ b/prj.conf @@ -1 +1,10 @@ +CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y +CONFIG_SHELL=y +CONFIG_CRYPTO=y +CONFIG_CONSOLE=y +CONFIG_LOG=y +CONFIG_LOG_BACKEND_UART=y + +CONFIG_ZIGBEE=y +CONFIG_ZIGBEE_ROLE_ROUTER=y \ No newline at end of file diff --git a/src/main.c b/src/main.c index 75a9c07..9e3d89c 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,26 @@ #include +#include + +#include + +LOG_MODULE_REGISTER(app, LOG_LEVEL_INF); int main(void) { - return 0; + LOG_INF("Starting main"); + + const struct gpio_dt_spec led_green = GPIO_DT_SPEC_GET(DT_NODELABEL(led0_green), gpios); + + gpio_pin_configure_dt(&led_green, GPIO_OUTPUT | GPIO_ACTIVE_LOW); + + + while(true) { + gpio_pin_set_dt(&led_green, 1); + + k_msleep(500); + + gpio_pin_set_dt(&led_green, 0); + + k_msleep(500); + } }