project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
/*
|
|
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2013-11-04 Grissiom add comment
|
|
*/
|
|
|
|
#ifndef __PRIO_QUEUE_H__
|
|
#define __PRIO_QUEUE_H__
|
|
|
|
#include <rtthread.h>
|
|
|
|
#define RT_PRIO_QUEUE_PRIO_MAX 32
|
|
|
|
struct rt_prio_queue_item;
|
|
|
|
struct rt_prio_queue {
|
|
rt_uint32_t bitmap;
|
|
struct rt_prio_queue_item *head[RT_PRIO_QUEUE_PRIO_MAX];
|
|
struct rt_prio_queue_item *tail[RT_PRIO_QUEUE_PRIO_MAX];
|
|
/* push thread suspend on the mempool, not queue */
|
|
rt_list_t suspended_pop_list;
|
|
rt_size_t item_sz;
|
|
|
|
struct rt_mempool pool;
|
|
};
|
|
|
|
rt_err_t rt_prio_queue_init(struct rt_prio_queue *que,
|
|
const char *name,
|
|
void *buf,
|
|
rt_size_t bufsz,
|
|
rt_size_t itemsz);
|
|
void rt_prio_queue_detach(struct rt_prio_queue *que);
|
|
|
|
rt_err_t rt_prio_queue_push(struct rt_prio_queue *que,
|
|
rt_uint8_t prio,
|
|
void *data,
|
|
rt_int32_t timeout);
|
|
rt_err_t rt_prio_queue_pop(struct rt_prio_queue *que,
|
|
void *data,
|
|
rt_int32_t timeout);
|
|
#ifdef RT_USING_HEAP
|
|
struct rt_prio_queue* rt_prio_queue_create(const char *name,
|
|
rt_size_t item_nr,
|
|
rt_size_t item_sz);
|
|
void rt_prio_queue_delete(struct rt_prio_queue *que);
|
|
#endif
|
|
|
|
void rt_prio_queue_dump(struct rt_prio_queue *que);
|
|
|
|
#endif /* end of include guard: __PRIO_QUEUE_H__ */
|