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#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
25
26/*\note first define basic info for arch. */
28#define VSF_ARCH_PRI_NUM 4
29#define VSF_ARCH_PRI_BIT 2
30
31// software interrupt provided by a dedicated device
32#define VSF_DEV_SWI_NUM 4
33
34#else // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
35
36#ifndef __HAL_DEVICE_ALLWINNER_F1C100S_H__
37#define __HAL_DEVICE_ALLWINNER_F1C100S_H__
38
39// software interrupt provided by a dedicated device
40#define VSF_DEV_SWI_LIST 60, 61, 62, 63
41
42/*============================ INCLUDES ======================================*/
43
44/*\note this is should be the only place where __common.h is included.*/
45#include "../common/__common.h"
46#include "./f1c100s_reg.h"
47
48/*============================ MACROS ========================================*/
49
50#define F1CX00S_DRAM_ADDR 0x80000000
51
52#ifndef F1CX00S_PLL_CPU_CLK_HZ
53# define F1CX00S_PLL_CPU_CLK_HZ (408UL * 1000 * 1000)
54#endif
55
56#ifndef F1CX00S_PLL_DDR_CLK_HZ
57# define F1CX00S_PLL_DDR_CLK_HZ (156UL * 1000 * 1000)
58#endif
59
60
62#define F1CX00S_INTC_BASE_ADDRESS (0x01C20400ul)
63
64#define USART_MAX_PORT 0x03
65#define USART_PORT_MASK 0x07
66
67#define VSF_HW_USART_COUNT 3
68
69/*============================ MACROFIED FUNCTIONS ===========================*/
70/*============================ TYPES =========================================*/
71/*============================ GLOBAL VARIABLES ==============================*/
72/*============================ LOCAL VARIABLES ===============================*/
73/*============================ PROTOTYPES ====================================*/
74
75#endif // __HAL_DEVICE_ALLWINNER_F1C100S_H__
76#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
77/* EOF */