30 lines
422 B
C
30 lines
422 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/logging/log.h>
|
|
|
|
LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
|
|
|
|
|
|
int main(void)
|
|
{
|
|
int ret;
|
|
|
|
/* LED driver - status indicators */
|
|
ret = led_init();
|
|
if (ret != 0) {
|
|
LOG_ERR("Failed to initialize LED driver: %d", ret);
|
|
}
|
|
|
|
|
|
while (1) {
|
|
k_msleep(1000);
|
|
}
|
|
return 0;
|
|
}
|