/** * @file softirq.h * @author fslongjin (longjin@RinGoTek.cn) * @brief 软中断 * @version 0.1 * @date 2022-04-08 * * @copyright Copyright (c) 2022 * */ #pragma once #include // ==================implementation with rust=================== extern void rs_softirq_init(); extern void rs_raise_softirq(uint32_t sirq_num); extern void rs_unregister_softirq(uint32_t sirq_num); extern void rs_do_softirq(); extern void rs_clear_softirq_pending(uint32_t softirq_num); // for temporary #define MAX_SOFTIRQ_NUM 64 #define TIMER_SIRQ 0 // 时钟软中断号 #define VIDEO_REFRESH_SIRQ 1 // 帧缓冲区刷新软中断