上一页 1 ··· 3 4 5 6 7 8 下一页

2018年5月31日

cmake语法

摘要: #添加子目录 add_subdirectory(dir) #添加指定目录下可识别的源码文件到变量 aux_source_directory(path _SRC) #过滤部分文件 list(REMOVE_ITEM _SRC file1 file2 ...) #复制文件 configure_file(s 阅读全文

posted @ 2018-05-31 18:16 zlyang 阅读(797) 评论(0) 推荐(0) 编辑

2018年5月30日

CentOS安装OpenOCD

摘要: 1. 下载openocd http://openocd.org/ 2.解压 unzip openocd 0.10.0.zip 3. 配置 ./configure enable ftdi enable openjtag 报错,提示需要安装libftdi 4. 安装libftdi 略 5. 继续配置 . 阅读全文

posted @ 2018-05-30 21:11 zlyang 阅读(1780) 评论(0) 推荐(0) 编辑

CentOS安装udev

摘要: 安装libusb时,执行autogen.sh报错,提示未找到udev configure: error: udev support requested but libudev header not installed yum search udev没有找到正确的包 解决方法: yum provide 阅读全文

posted @ 2018-05-30 20:37 zlyang 阅读(3326) 评论(0) 推荐(0) 编辑

Build GNU environment for stm32 development

摘要: OS Ubuntu 18.04 LTS Toolchain https://github.com/gnu mcu eclipse/arm none eabi gcc/releases IDE GNU MCU Eclipse includes the latest Eclipse CDT and th 阅读全文

posted @ 2018-05-30 16:46 zlyang 阅读(141) 评论(0) 推荐(0) 编辑

2018年5月24日

Continuous Integration - 持续集成

摘要: https://www.mindtheproduct.com/2016/02/what the hell are ci cd and devops a cheatsheet for the rest of us/ 可持续软件开发 代码开发 代码风格 google::cpplint.py 代码检查 c 阅读全文

posted @ 2018-05-24 10:27 zlyang 阅读(105) 评论(0) 推荐(0) 编辑

代码风格

摘要: 每个人都觉得自己是代码大师,各有各的代码风格 自己的项目爱怎么写怎么写 公司项目就不要标新立异了,按google的来吧 https://github.com/google/styleguide http://zh google styleguide.readthedocs.io/en/latest/ 阅读全文

posted @ 2018-05-24 10:06 zlyang 阅读(145) 评论(0) 推荐(0) 编辑

2018年5月20日

C语言带返回值的宏

摘要: define TWICE(x) \ ({ \ int _ret; \ ret = (x) 阅读全文

posted @ 2018-05-20 16:25 zlyang 阅读(2439) 评论(0) 推荐(0) 编辑

设计模式之PIMPL模式

摘要: PIMPL,即private implementation的缩写,简言之就是类的声明和实现分离。 其作用概括如下: 1. 类方法定义与函数分离,适合作为API使用 类的实现对用户来说完全是黑盒,在头文件中声明的类仅包含对用户有用的信息。 2. 加快编译速度 a.hpp定义了类A,b.cpp调用了类A 阅读全文

posted @ 2018-05-20 13:30 zlyang 阅读(393) 评论(0) 推荐(0) 编辑

2018年5月18日

打印控制之VT100

摘要: \033[0m 关闭所有属性 \033[1m 设置高亮度 \033[4m 下划线 \033[5m 闪烁 \033[7m 反显 \033[8m 消隐 \033[30m \033[37m 设置前景色 \033[40m \033[47m 设置背景色 \033[nA 光标上移n 行 \033[nB 光标下移 阅读全文

posted @ 2018-05-18 20:48 zlyang 阅读(301) 评论(0) 推荐(0) 编辑

2018年5月12日

C语言实现反射

摘要: 高级语言的反射机制,简单来说就是可以通过字符串型获取对应的类或者函数。 基础形式,c语言结构化编程基础实现 1)声明 typedef void (*callback)(void); typedef struct { const char *name; callback fn; }callback_t 阅读全文

posted @ 2018-05-12 22:28 zlyang 阅读(11188) 评论(2) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 下一页

导航