One Framework 0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
|
#include <OF/drivers/utils/status_leds.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/led.h>
#include <zephyr/kernel.h>
#include "zephyr/logging/log.h"
宏定义 | |
#define | DT_DRV_COMPAT status_leds |
#define | STATUS_LEDS_DEFINE(inst) |
函数 | |
LOG_MODULE_REGISTER (status_leds, CONFIG_STATUS_LEDS_LOG_LEVEL) | |
static void | heartbeat_timer_handler (const struct k_timer *timer) |
static void | error_single_blink_handler (const struct k_timer *timer) |
static void | error_blink_timer_handler (const struct k_timer *timer) |
错误闪烁定时器处理函数 | |
static void | status_set_heartbeat (const struct device *dev) |
static void | status_set_heartbeat_always_on (const struct device *dev) |
static int | status_leds_set_error_always_on (const struct device *dev) |
static int | status_leds_set_error_blink (const struct device *dev, const uint8_t times) |
static void | status_leds_remove_error (const struct device *dev) |
static int | status_leds_init (const struct device *dev) |
变量 | |
static const struct status_leds_api | status_leds_funcs |
#define DT_DRV_COMPAT status_leds |
#define STATUS_LEDS_DEFINE | ( | inst | ) |
|
static |
错误闪烁定时器处理函数
timer | k_timer 定时器指针 |
|
static |
|
static |
LOG_MODULE_REGISTER | ( | status_leds | , |
CONFIG_STATUS_LEDS_LOG_LEVEL | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |