📄 board.h
字号:
#define IMR_ADDR 0
#define DXR10_ADDR 0x23
#define DRR10_ADDR 0x21
#define UART_COUNTER 0x62
#define KEYIN_COUNTER 0X61
#define LCD_SIZE 23
#define KEY_SIZE 6
#define LED_SIZE 14
#define N 125
#define COS697 1.73012076 /* 2*COS(2*PI*f0/fs) */
#define COS770 1.67230433 /* 2*COS(2*PI*f0/fs) */
#define COS852 1.60132892 /* 2*COS(2*PI*f0/fs) */
#define COS941 1.51737895 /* 2*COS(2*PI*f0/fs) */
#define COS1209 1.22501963 /* 2*COS(2*PI*f0/fs) */
//1.26040766708382 //1179
#define COS1336 1.06825621 /* 2*COS(2*PI*f0/fs) */
//1.01671309809108 //1376
//1.02967037892284//1366 ok
#define COS1477 0.88281128 /* 2*COS(2*PI*f0/fs) */
//0.93244940677016 //1440 ok
//0.91908203912045 //1450 ok
//0.90566241871558 //1460 ok
// 0.93911325820160 //1435
//0.94576376168710 //1430
// 0.97223040852487 //1410
//0.98538119573214//1400
#define COS1633 0.66611311 /* 2*COS(2*PI*f0/fs) */
#define GATE 50
ioport unsigned port8000; /* for CTRL word */
ioport unsigned porte000; /* for DC MOTOR run */
ioport unsigned portc000; /* for LEDs show */
ioport unsigned portf000; /* for STEPMOTOR */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -