-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnyID_SM5001_Config.h
55 lines (42 loc) · 1.67 KB
/
AnyID_SM5001_Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef _ANYID_SM5001_CONFIG_
#define _ANYID_SM5001_CONFIG_
#include "AnyID_Type.h"
#include "AnyID_Stdlib.h"
#include "stm32f10x_conf.h"
#include <stdio.h>
#include <string.h>
#define SYS_ENABLE_WDT 0
#define SYS_WM_DISH 0
#define SYS_WM_NORMAL 1
//锟借定锟斤拷锟斤拷时锟斤拷
#define SYS_CLOCK_FREQ 120000000
#define SYS_PROTOCOL_ISO15693 0x00
//#define SYS_PROTOCOL_ISO14443A 0x10
//#define SYS_PROTOCOL_ISO14443B 0x20
#define SYS_PROTOCOL_MASK 0xF0
//STM32平台锟斤拷锟?
#if (defined(_ANYID_STM32_) || defined(_ANYID_GD32_))
#include "stm32f10x.h"
//锟剿口讹拷锟斤拷
typedef struct Port_Inf
{
GPIO_TypeDef* Port;
u16 Pin;
} PORT_INF;
#endif
#define STM32_CPUID_LEN 12
#define STM32_CPUID_ADDR (0x1FFFF7E8)
//锟斤拷锟饺硷拷锟斤拷锟斤拷锟斤拷2:2
#define INT_PRIORITY_GROUP 2
#define INT_PRIORITY_STICK 0 //STICK锟斤拷锟斤拷锟饺硷拷锟斤拷锟?
#define INT_PRIORITY_UART_RX 14 //锟斤拷锟节斤拷锟斤拷
#define INT_PRIORITY_UART_TXDMA 8 //锟斤拷锟节凤拷锟斤拷DMA
#define INT_PRIORITY_UART_RXDMA 13
#define INT_PRIORITY_ADC 2 //锟斤拷锟节斤拷锟斤拷
#define INT_PRIORITY_PCD_IO 4 //15693锟侥凤拷锟酵讹拷时锟斤拷锟斤拷锟饺硷拷锟斤拷锟?
#define INT_PRIORITY_LOW 14
#define INT_PRIORITY_UART_DMA 8 //涓插彛鍙戦�丏MA
#define Sys_EnableInt() __enable_irq()
#define Sys_DisableInt() __disable_irq()
#define Sys_SoftReset() (*((u32 *)0xE000ED0C) = 0x05fa0004)
#endif