-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
60 lines (45 loc) · 816 Bytes
/
main.c
File metadata and controls
60 lines (45 loc) · 816 Bytes
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
56
57
58
#include <stdio.h>
#include <math.h>
#include <xparameters.h>
#include "platform.h"
#include "xil_printf.h"
#include "xil_io.h"
#include <lcd_controller.h>
#include <xgpio.h>
#include ".\lcd\lcd.h"
#include ".\fdc2214\iic.h"
#include ".\fdc2214\fdc2214.h"
#include ".\touch\ctiic.h"
#include ".\touch\touch.h"
#include ".\touch\graph.h"
#include "preph.h"
u32 ch0,ch1,ch2,ch3;
extern double short_num;
int main()
{
init_platform();
double cap=0.0;
double freq =0.0;
CT_IIC_Init();
IIC_Init();
LCD_Init(0);
tp_dev.init();
Beep_Init();
LED_Init();
FDC2214_Init();
/*
POINT_COLOR=BLUE;
LCD_ShowString(30,10,200,16,16,"Capcity(pF):");
LCD_ShowString(150,30,200,16,16," pF");
POINT_COLOR=RED;
printf("OK\n");
while(1)
{
cap = IIR();
delay_ms(500);
}
*/
Draw_Start();
while(1)
;
}