03 2016 档案
摘要://# cat treecmd.c #include #include #include #include #include #define MAXNAME 200 void s_printf(char *filename,int depth); void s_dirwalk(char *dirname,int depth,void (*fcn)(char *,int)); void ...
阅读全文
该文被密码保护。
摘要:ST官方翻译的中文应用笔记汇总 http://www.51hei.com/stm32/3382.html 官方中文AN:AN3116:STM32? 的 ADC 模式及其应用AN1015:用于提高微控制器 EMC 性能的软件技术AN1181:静电放电敏感性测量AN1709:ST 微控制器电磁兼容性 (
阅读全文
摘要:STM32 时钟系统 http://blog.chinaunix.net/uid-24219701-id-4081961.html STM32的时钟系统 *** http://www.cnblogs.com/wangh0802PositiveANDupward/archive/2012/12/24/
阅读全文
摘要:#include #include #include void main(void) { printf("O_ACCMODE %08x\n", O_ACCMODE ) ; printf("O_RDONLY %08x\n", O_RDONLY ) ; ...
阅读全文
摘要:#include #include #include #define NEW_TIME_VALE struct timeval startTime,endTime; \ float Timeuse;\ #define START_GETTIME \ gettimeofday(&startTime,NULL); \ #def...
阅读全文
摘要:关于死区时间,看到有这两种理解,一种是电机电感需要释放能量,一种是功率器件以及电路的延迟需要等待。个人理解他们都是死区时间的考虑因素。//ocj,待专业人士验证 1. 电机的各相输入的控制信号之间设定的互锁时间,留一段时间让储能电感放电,以免造成短路。 2. PWM输出时的Dead Zone(死区)
阅读全文
摘要:1. 使用dd命令制作烧写文件 环境: bootargs=mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:512K(boot),3M(kernel),2560K(rootfs),1
阅读全文
摘要:函数的名字大小写是否为同一函数? 不是,大小写不同,函数不同。 环境: gcc 版本 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19
阅读全文
摘要:编译错误: /bin/sh: 1: pushd: not found的问题 http://www.cnblogs.com/wansui/p/4230869.html 查看原因:进入/bin目录,查看sh的链接文件,显示如下:表示sh命令链接到的是dash,而pushd命令需要在bash的环境中执
阅读全文
摘要:linux下解压命令大全 .tar 解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)———————————————.gz解压1:gunzip FileName.gz解压2:gzip -d FileName.g
阅读全文
摘要:pthread_detach(pthread_self()) 将状态改为unjoinable状态,确保资源的释放。其实简单的说就是在线程函数头加上 pthread_detach(pthread_self())的话,线程状态改变,在函数尾部直接 pthread_exit线程就会自动退出。省去了给线程擦
阅读全文
摘要:linux下的二进制文件的编辑和查看 http://blog.csdn.net/wangxiaoqin00007/article/details/6618003 一、在Linux下查看二进制文件的软件: xxd (2进制) hexdump (16进制) 二、编辑: 1、biew 2、hexedit
阅读全文
摘要:每天一个linux命令(35):ln 命令 实例1:给文件创建软链接 命令: ln -s log2013.log link2013 输出: [root@localhost test]# ll -rw-r--r-- 1 root bin 61 11-13 06:03 log2013.log [root
阅读全文
摘要:uart串口协议 /* USART Word Length ---------------------------------------------------------*/ USART_WordLength_8b USART_WordLength_9b /* USART Stop Bits -------------------------------------...
阅读全文