2018年10月24日

枚举类型

摘要: 枚举类型是预处理指令#define的替代 sizeof用来计算一个变量或者数据类型的长度 c语言中,结构体内变量的存储空间是连续的,其中32位的变量占用4个字节,16位的占用2个字节 阅读全文

posted @ 2018-10-24 10:12 fortwater 阅读(140) 评论(0) 推荐(0) 编辑

2018年10月16日

裸机开发--CC2530(一)

摘要: 通用IO引脚,复位之后,所有IO端口均设为带上拉的输入 阅读全文

posted @ 2018-10-16 23:23 fortwater 阅读(236) 评论(0) 推荐(0) 编辑

2018年10月10日

c#事件处理

摘要: 1 /* 2 using System; 3 using System.Text; 4 using System.Runtime.InteropServices; 5 using System.Reflection; 6 using System.Windows.Forms; 7 8 namespace MouseKeyboardLibrary 9 { ... 阅读全文

posted @ 2018-10-10 16:26 fortwater 阅读(376) 评论(0) 推荐(0) 编辑

2018年9月27日

串口通信

摘要: tx和rx提供双缓冲,硬件流控制,适合高吞吐的全双工,有高精度波特率发生 P0_2 ->RX P0_3 ->TX 阅读全文

posted @ 2018-09-27 16:50 fortwater 阅读(141) 评论(0) 推荐(0) 编辑

定时器T1

摘要: 查询方式 阅读全文

posted @ 2018-09-27 13:58 fortwater 阅读(726) 评论(0) 推荐(0) 编辑

2018年9月26日

定时器延时

摘要: 1 #include 2 3 typedef unsigned char uchar; 4 typedef unsigned int uint; 5 6 uint flag = 0; //用于定时器计数 7 8 #define LED1 P1_0 9 #define LED2 P1_1 10 #define LED3 P1_2 11 #define L... 阅读全文

posted @ 2018-09-26 22:42 fortwater 阅读(249) 评论(0) 推荐(0) 编辑

cc2540->led/timer

摘要: 1 #include 2 3 typedef unsigned char uchar; 4 typedef unsigned int uint; 5 6 #define LED1 P1_0 7 8 void led_init(void) 9 { 10 P1DIR |= 0X01; 11 LED1 = 0; 12 } 13 14 void T1_init(voi... 阅读全文

posted @ 2018-09-26 20:59 fortwater 阅读(170) 评论(0) 推荐(0) 编辑

2018年9月21日

output oneself log txt

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 //using System.Diagnostics; 7 using System.IO; 8 9 10 namesp... 阅读全文

posted @ 2018-09-21 10:13 fortwater 阅读(122) 评论(0) 推荐(0) 编辑

establish log file in system

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Diagnostics; 7 8 9 namespace ConsoleApplication... 阅读全文

posted @ 2018-09-21 08:22 fortwater 阅读(121) 评论(0) 推荐(0) 编辑

2018年9月19日

Thread 实例化

摘要: 1 //运行实例方法 2 3 class Program { 4 public void myThreadMethod() 5 { 6 Console.WriteLine("myThreadMethod"); 7 } 8 static void Main(string[] a... 阅读全文

posted @ 2018-09-19 16:51 fortwater 阅读(107) 评论(0) 推荐(0) 编辑

导航