资源简介
飞鸽传书源码,使用vs2010可以直接运行, 本人亲自测试使用过,绝对真实。
代码片段和文件信息
/* tsdemo.c
*
*
* Copyright (c)2008 Nuvoton technology corporation
* http://www.nuvoton.com
*
* Touch screen demo application
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
typedef struct PWM_cfg {
unsigned int Frequency;
unsigned int Duty;
}MyPWM_cfg;
//驱动ioctl命令
#define PWM_CONFIG 0
#define QUIT 100
static int dev_fd= -1;
int main(void)
{
int sel;
MyPWM_cfg cfg;
dev_fd=open(“/dev/pwm_dev“O_RDWR);
while(1)
{
printf(“Select Fun\n“);
printf(“0:PWM Config\n“);
printf(“100:Quit\n“);
scanf(“%d“&sel);
usleep(100000);
switch(sel)
{
case PWM_CONFIG:
printf(“input Frequency:“);
scanf(“%d“ &cfg.Frequency);
printf(“input Duty:“);
scanf(“%d“ &cfg.Duty);
ioctl(dev_fdPWM_CONFIG&cfg);
break;
case QUIT:
break;
default:
printf(“scanf error!\n“);
break;
}
if(sel == QUIT)
break;
}
end:
close(dev_fd);
printf(“App Exit\n“);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 30208 2016-03-30 19:05 ipmsg364src\.vs\IPMsg\v14\.suo
文件 1326080 2018-08-03 13:29 ipmsg364src\Debug\IPMsg.exe
文件 3261232 2018-08-03 13:29 ipmsg364src\Debug\IPMsg.ilk
文件 5622784 2018-08-03 13:29 ipmsg364src\Debug\IPMsg.pdb
文件 1583 2015-07-15 16:10 ipmsg364src\Demo.c
....... 4968 2015-10-13 18:29 ipmsg364src\external\zlib\adler32.c
....... 2529 2015-10-13 18:29 ipmsg364src\external\zlib\compress.c
....... 13174 2015-10-13 18:29 ipmsg364src\external\zlib\crc32.c
....... 30562 2015-10-13 18:29 ipmsg364src\external\zlib\crc32.h
....... 71476 2015-10-13 18:29 ipmsg364src\external\zlib\deflate.c
....... 12774 2015-10-13 18:29 ipmsg364src\external\zlib\deflate.h
....... 16573 2015-10-13 18:29 ipmsg364src\external\zlib\FAQ
....... 678 2015-10-13 18:29 ipmsg364src\external\zlib\gzclose.c
....... 6552 2015-10-13 18:29 ipmsg364src\external\zlib\gzguts.h
....... 16415 2015-10-13 18:29 ipmsg364src\external\zlib\gzlib.c
....... 18694 2015-10-13 18:29 ipmsg364src\external\zlib\gzread.c
....... 16199 2015-10-13 18:29 ipmsg364src\external\zlib\gzwrite.c
....... 22709 2015-10-13 18:29 ipmsg364src\external\zlib\infback.c
....... 13455 2015-10-13 18:29 ipmsg364src\external\zlib\inffast.c
....... 427 2015-10-13 18:29 ipmsg364src\external\zlib\inffast.h
....... 6332 2015-10-13 18:29 ipmsg364src\external\zlib\inffixed.h
....... 53512 2015-10-13 18:29 ipmsg364src\external\zlib\inflate.c
....... 6399 2015-10-13 18:29 ipmsg364src\external\zlib\inflate.h
....... 13028 2015-10-13 18:29 ipmsg364src\external\zlib\inftrees.c
....... 2928 2015-10-13 18:29 ipmsg364src\external\zlib\inftrees.h
....... 5185 2015-10-13 18:29 ipmsg364src\external\zlib\README
....... 44255 2015-10-13 18:29 ipmsg364src\external\zlib\trees.c
....... 8472 2015-10-13 18:29 ipmsg364src\external\zlib\trees.h
....... 2003 2015-10-13 18:29 ipmsg364src\external\zlib\uncompr.c
....... 15508 2015-10-13 18:29 ipmsg364src\external\zlib\zconf.h
............此处省略237个文件信息
- 上一篇:HzkASC点阵字库+代码+分析
- 下一篇:Vissim7使用说明手册 完整中文版
评论
共有 条评论