摘要: 嵌入式设备一般都处理一些数据,大多都是通过flash分块来管理。 如下示例写入一些调试数据到flash dump.c #include <stdlib.h> #include <string.h> #include "drivers/spi_flash.h" #define DEBUG_DATA_S 阅读全文
posted @ 2017-11-06 01:43 dong1 阅读(394) 评论(0) 推荐(0)
摘要: 经过几次吐血的教训,不要去转换时区。 用世界时间,100年不动摇。 时间转换(localtime和mktime),有些系统没有localtime和mketime, 把linux内核里边这两函数扣出来用。 #include <stdio.h> #include <string.h> #include 阅读全文
posted @ 2017-11-06 01:04 dong1 阅读(525) 评论(0) 推荐(0)