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 16
29# define VSF_ARCH_PRI_BIT 4
30
31#else
32
33#ifndef __HAL_DEVICE_WINNERMICRO_W600_H__
34#define __HAL_DEVICE_WINNERMICRO_W600_H__
35
36/*============================ INCLUDES ======================================*/
37
38#include "../common/common.h"
39
40/*============================ MACROS ========================================*/
41
42#define OSC0_FREQ (40 * 1000 * 1000)
43#define PLL0_OUT_FREQ (160 * 1000 * 1000)
44
45#define GPIO_COUNT 2
46
47#define PIO_PORTA
48#define PIO_PORTA_PIN_NUM 16
49
50#define PIO_PORTB
51#define PIO_PORTB_PIN_NUM 32
52
53/*============================ MACROFIED FUNCTIONS ===========================*/
54/*============================ TYPES =========================================*/
55/*============================ GLOBAL VARIABLES ==============================*/
56/*============================ LOCAL VARIABLES ===============================*/
57/*============================ PROTOTYPES ====================================*/
58
59#endif // __HAL_DEVICE_WINNERMICRO_W600_H__
60#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
61/* EOF */