18#ifndef __MACOS_GENERIC_H__
19#define __MACOS_GENERIC_H__
26#if defined(__VSF_ARCH_MACOS_IMPLEMENT)
27# define __VSF_CLASS_IMPLEMENT__
38#ifndef __LITTLE_ENDIAN
39# define __LITTLE_ENDIAN 1
42# define __BYTE_ORDER __LITTLE_ENDIAN
45#ifndef VSF_ARCH_PRI_NUM
46# define VSF_ARCH_PRI_NUM 1
48#if VSF_ARCH_PRI_NUM != 1
49# error VSF_ARCH_PRI_NUM MUST be 1 for macos
52#ifndef VSF_SYSTIMER_CFG_IMPL_MODE
53# define VSF_SYSTIMER_CFG_IMPL_MODE VSF_SYSTIMER_IMPL_REQUEST_RESPONSE
57#ifndef VSF_ARCH_SWI_NUM
58# define VSF_ARCH_SWI_NUM 0
60#if VSF_ARCH_SWI_NUM != 0
61# error VSF_ARCH_SWI_NUM MUST be 0 for macos
64#define VSF_ARCH_STACK_ALIGN_BIT 4
65#define VSF_ARCH_LIMIT_NO_SET_STACK
67#define VSF_ARCH_STACK_PAGE_SIZE 4096
68#define VSF_ARCH_STACK_GUARDIAN_SIZE 4096
72#define __VSF_ARCH_PRI(__N, __BIT) \
73 VSF_ARCH_PRIO_##__N = (__N), \
74 vsf_arch_prio_##__N = (__N),
76#define vsf_arch_wakeup()
95 void *irq_thread_to_exit;
vsf_err_t
Definition __type.h:42
Definition linux_generic.h:104
Definition linux_generic.h:122
vsf_arch_prio_t
Definition cortex_a_generic.h:88
unsigned int uint32_t
Definition lvgl.h:43
@ VSF_ARCH_PRIO_INVALID
Definition macos_generic.h:84
@ vsf_arch_prio_highest
Definition macos_generic.h:87
@ vsf_arch_prio_invalid
Definition macos_generic.h:85
void __vsf_arch_irq_set_background(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:724
#define __VSF_ARCH_PRI(__N, __BIT)
Definition macos_generic.h:72
void __vsf_arch_irq_init(vsf_arch_irq_thread_t *irq_thread, char *name, vsf_arch_irq_entry_t entry, vsf_arch_prio_t priority)
Definition win_generic.c:691
vsf_err_t __vsf_arch_irq_restart(vsf_arch_irq_thread_t *irq_thread, vsf_arch_irq_request_t *request_pending)
Definition linux_generic.c:309
void __vsf_arch_irq_request_fini(vsf_arch_irq_request_t *request)
Definition linux_generic.c:188
uint64_t vsf_systimer_tick_t
Definition macos_generic.h:81
void __vsf_arch_irq_sleep(uint32_t ms)
Definition linux_generic.c:321
volatile bool vsf_gint_state_t
Definition macos_generic.h:102
void __vsf_arch_irq_end(vsf_arch_irq_thread_t *irq_thread, bool is_terminate)
Definition win_generic.c:669
void __vsf_arch_irq_fini(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:679
void __vsf_arch_irq_request_pend(vsf_arch_irq_request_t *request)
Definition linux_generic.c:205
void(* vsf_arch_irq_entry_t)(void *)
Definition macos_generic.h:90
void __vsf_arch_irq_start(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:659
void __vsf_arch_irq_request_send(vsf_arch_irq_request_t *request)
Definition linux_generic.c:228
void __vsf_arch_irq_request_init(vsf_arch_irq_request_t *request)
Definition linux_generic.c:167
void __vsf_arch_irq_exit(vsf_arch_irq_thread_t *irq_thread)
Definition linux_generic.c:303
#define VSF_ARCH_PRI_NUM
Definition macos_generic.h:46
#define VSF_ARCH_PRI_BIT
Definition mcs51_generic.h:42
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned long long uint64_t
Definition stdint.h:11
#define exit
Definition stdlib.h:33
Definition vsf_arch_without_thread_suspend_template.h:23
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition vsf_repeat_macro.h:51