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/*\note first define basic info for arch. */
25#if defined(__VSF_HEADER_ONLY_SHOW_ARCH_INFO__)
27# define VSF_ARCH_PRI_NUM 16
28# define VSF_ARCH_PRI_BIT 4
29
30// software interrupt provided by a dedicated device
31#define VSF_DEV_SWI_NUM 0
32
33#else
34
35#ifndef __HAL_DEVICE_ST_STM32F103ZE_H__
36#define __HAL_DEVICE_ST_STM32F103ZE_H__
37
38#define VSF_DEV_SWI_LIST 0
39
40
41#define PCLK1 36000000
42#define PCLK2 72000000
43
44#define USART0 NULL
45
46#define USART_MAX_PORT 5
47
49#undef VSF_HAL_USE_USART0
50
52#define USART4_IRQn UART4_IRQn
53#define USART5_IRQn UART5_IRQn
54#define USART4 UART4
55#define USART5 UART5
56
57#define SPI_COUNT 3
58#define IIC_COUNT 3
59#define GPIO_COUNT 4
60
61/*============================ INCLUDES ======================================*/
62
63/*\note this is should be the only place where __common.h is included.*/
64#include "../common/__common.h"
65
66/*============================ GLOBAL VARIABLES ==============================*/
67/*============================ LOCAL VARIABLES ===============================*/
68/*============================ PROTOTYPES ====================================*/
69
70#endif // __HAL_DEVICE_ST_STM32F103ZE_H__
71#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
72/* EOF */