VSF Documented
device.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/*============================ INCLUDES ======================================*/
19
20#include "hal/vsf_hal_cfg.h"
21
22/*============================ MACROS ========================================*/
23
24#if defined(__VSF_HEADER_ONLY_SHOW_ARCH_INFO__)
25
26/*\note first define basic info for arch. */
28# define VSF_ARCH_PRI_NUM 64
29# define VSF_ARCH_PRI_BIT 6
30
31// software interrupt provided by a dedicated device
32#define VSF_DEV_SWI_NUM 9
33
34#elif defined(__VSF_HAL_SHOW_VENDOR_INFO__)
35
36# ifdef FALSE
37# undef FALSE
38# endif
39# ifdef TRUE
40# undef TRUE
41# endif
42
43# define __VSF_HEADER_ONLY_SHOW_VENDOR_INFO__
44# include "air105.h"
45
46#else
47
48#ifndef __HAL_DEVICE_LUAT_AIR05_H__
49#define __HAL_DEVICE_LUAT_AIR05_H__
50
51/*============================ INCLUDES ======================================*/
52
53#include "common.h"
54
55/*============================ MACROS ========================================*/
56
57// software interrupt provided by a dedicated device
58#define VSF_DEV_SWI_LIST 28, 30, 31, 34, 41, 43, 44, 45, 48
59
60#define VSF_MUSB_FDRC_PRIV_REG_T
61#define VSF_MUSB_FDRC_DYNAMIC_FIFO2
62
63#define USB_OTG_COUNT 1
64#define USB_OTG0_CONFIG \
65 .reg = (void *)0x40000C00, \
66 .irqn = 1,
67
68#define VSF_HW_USART_COUNT 4
69#define VSF_HW_USART_MASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3))
70
71/*============================ MACROFIED FUNCTIONS ===========================*/
72/*============================ TYPES =========================================*/
73/*============================ GLOBAL VARIABLES ==============================*/
74/*============================ LOCAL VARIABLES ===============================*/
75/*============================ PROTOTYPES ====================================*/
76
77#endif // __HAL_DEVICE_LUAT_AIR05_H__
78#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
79/* EOF */