This commit is contained in:
刘可亮
2024-01-27 08:47:24 +08:00
parent d3bd993b5f
commit 9f7ba67007
2345 changed files with 74421 additions and 76616 deletions

View File

@@ -14,6 +14,19 @@
#include <rtconfig.h>
#include <aic_common.h>
/* Common malloc align */
typedef void *(*aicos_malloc1_t)(size_t);
typedef void (*aicos_free1_t)(void *);
typedef void *(*aicos_malloc2_t)(unsigned int, size_t);
typedef void (*aicos_free2_t)(unsigned int, void *);
void *_aicos_malloc_align_(size_t size, size_t align, unsigned int type, void *func);
void _aicos_free_align_(void *ptr, unsigned int type, void *func);
/* Irq */
void aicos_irq_enter(void);
void aicos_irq_exit(void);
/* New define */
typedef void *aicos_thread_t;
typedef void (*aic_thread_entry_t)(void *argument);
@@ -22,13 +35,6 @@ typedef void *aicos_mutex_t;
typedef void *aicos_event_t;
typedef void *aicos_queue_t;
typedef struct {
int item_size;
int depth;
void *buf;
void *q;
} osal_queue_def_t;
#if defined(KERNEL_RTTHREAD)
#include "aic_osal_rtthread.h"
#elif defined(KERNEL_FREERTOS)