feat: add lab-rv32i-freertos-isr-drivers card

This commit is contained in:
user
2026-07-21 19:14:19 +02:00
commit e923e1c3b0
174 changed files with 56091 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef HOST_FREERTOS_H
#define HOST_FREERTOS_H
#include <cassert>
#include <cstddef>
#include <cstdint>
using BaseType_t = std::int32_t;
using UBaseType_t = std::uint32_t;
using TickType_t = std::uint32_t;
using TaskHandle_t = void *;
struct StaticQueue_t { alignas( std::max_align_t ) unsigned char bytes[ 128 ]; };
#define pdFALSE 0
#define pdTRUE 1
#define pdFAIL 0
#define pdPASS 1
#define configASSERT( condition ) assert( condition )
extern "C" void fake_yield_from_isr( BaseType_t );
#define portYIELD_FROM_ISR( request ) fake_yield_from_isr( request )
#endif
+9
View File
@@ -0,0 +1,9 @@
#ifndef HOST_QUEUE_H
#define HOST_QUEUE_H
#include "FreeRTOS.h"
struct FakeQueue;
using QueueHandle_t = FakeQueue *;
extern "C" QueueHandle_t xQueueCreateStatic( UBaseType_t, UBaseType_t, std::uint8_t *, StaticQueue_t * );
extern "C" BaseType_t xQueueSendFromISR( QueueHandle_t, const void *, BaseType_t * );
extern "C" BaseType_t xQueueReceive( QueueHandle_t, void *, TickType_t );
#endif
+5
View File
@@ -0,0 +1,5 @@
#ifndef HOST_TASK_H
#define HOST_TASK_H
#include "FreeRTOS.h"
extern "C" void vTaskNotifyGiveFromISR( TaskHandle_t, BaseType_t * );
#endif