VSF Documented
mcs51_generic.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __MCS51_GENERIC_H__
19#define __MCS51_GENERIC_H__
20
21/*============================ INCLUDES ======================================*/
22#include "hal/vsf_hal_cfg.h"
23
24#define __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
25#include "hal/driver/driver.h"
26#undef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/*============================ MACROS ========================================*/
33
34#ifndef __BYTE_ORDER
35# define __BYTE_ORDER __LITTLE_ENDIAN
36#endif
37
38#define VSF_ARCH_PRI_NUM 2
39#define VSF_ARCH_PRI_BIT 1
40
41// software interrupt provided by arch
42#define VSF_ARCH_SWI_NUM 0
43#ifndef VSF_SYSTIMER_CFG_IMPL_MODE
44# define VSF_SYSTIMER_CFG_IMPL_MODE VSF_SYSTIMER_IMPL_WITH_NORMAL_TIMER
45#endif
46#define __VSF_ARCH_SYSTIMER_BITS 16
47
48/*============================ MACROFIED FUNCTIONS ===========================*/
49
50#define vsf_arch_wakeup()
51
52/*============================ TYPES =========================================*/
53
56
57#define __VSF_ARCH_PRI_INDEX(__N, __UNUSED) \
58 __vsf_arch_prio_index_##__N = (__N),
59
60enum {
62};
63
64#define __VSF_ARCH_PRI(__N, __BIT) \
65 VSF_ARCH_PRIO_##__N = (__N), \
66 vsf_arch_prio_##__N = (__N),
67
73};
75
76/*============================ GLOBAL VARIABLES ==============================*/
77/*============================ LOCAL VARIABLES ===============================*/
78/*============================ PROTOTYPES ====================================*/
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif
85/* EOF */
86
vsf_arch_prio_t
Definition cortex_a_generic.h:85
@ VSF_ARCH_PRIO_INVALID
Definition mcs51_generic.h:69
@ vsf_arch_prio_highest
Definition mcs51_generic.h:72
@ vsf_arch_prio_invalid
Definition mcs51_generic.h:70
int32_t vsf_systimer_tick_signed_t
Definition mcs51_generic.h:55
#define __VSF_ARCH_PRI(__N, __BIT)
Definition mcs51_generic.h:64
#define VSF_ARCH_PRI_BIT
Definition mcs51_generic.h:39
uint32_t vsf_systimer_tick_t
Definition mcs51_generic.h:54
#define __VSF_ARCH_PRI_INDEX(__N, __UNUSED)
Definition mcs51_generic.h:57
#define VSF_ARCH_PRI_NUM
Definition mcs51_generic.h:38
unsigned uint32_t
Definition stdint.h:9
int int32_t
Definition stdint.h:8
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition vsf_repeat_macro.h:51
Generated from commit: vsfteam/vsf@85be636