One Framework 0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
载入中...
搜索中...
未找到
NotifyHub.cpp 文件参考
#include <OF/lib/NotifyHub/NotifyHub.hpp>
#include <OF/utils/CCM.h>
#include <OF/drivers/output/buzzer.h>
#include <zephyr/logging/log.h>
#include <zephyr/init.h>
NotifyHub.cpp 的引用(Include)关系图:

结构体

class  SimpleMap< Key, Value, Capacity >
 
struct  SimpleMap< Key, Value, Capacity >::Entry
 

命名空间

namespace  OF
 

宏定义

#define DT_DRV_COMPAT   one_framework_notify_hub
 

函数

 LOG_MODULE_REGISTER (NotifyHub, CONFIG_NOTIFY_HUB_LOG_LEVEL)
 
OF_CCM_ATTR char __aligned (4) g_buzzer_msgq_buffer[16 *sizeof(BuzzerCommand)]
 
 K_THREAD_STACK_DEFINE (g_buzzer_stack, 1024)
 
 K_THREAD_STACK_DEFINE (g_led_stack, 1024)
 
static int notify_hub_init ()
 
 SYS_INIT (notify_hub_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY)
 

变量

OF_CCM_ATTR NotifyHub hub
 
OF_CCM_ATTR SimpleMap< FixedString< MAX_KEY_LEN >, BuzzerStatus, 16 > g_buzzer_noti
 
OF_CCM_ATTR SimpleMap< FixedString< MAX_KEY_LEN >, LEDStatus, 16 > g_led_noti
 
OF_CCM_ATTR k_msgq g_buzzer_msgq
 
OF_CCM_ATTR k_msgq g_led_msgq
 

宏定义说明

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   one_framework_notify_hub

函数说明

◆ notify_hub_init()

static int notify_hub_init ( )
static

◆ SYS_INIT()

SYS_INIT ( notify_hub_init ,
APPLICATION ,
CONFIG_APPLICATION_INIT_PRIORITY  )