- 博客(4)
- 收藏
- 关注
转载 Linux设置环境变量的方法
与windows不同,在linux上安装软件后通常需要配置环境变量。我在linux上安装软件的过程中发现,不同的软件的安装说明中要求配置的环境变量方法不尽相同,这让我有点“头晕”,不知道不同配置方法之间有什么不同。 经过一番折腾,现总结如下: 1.在终端中临时设置 在终端中输入:export PATH=$PATH:::----------------: 注意冒号为分隔符。
2018-01-31 09:31:44
511
原创 延时函数
定义的延时函数(单片机中) void delay_ms(const uint16 ms) { uint16 i,j; for ( i=0;i { for ( j=0;j { _nop(); } } } void delay_s(
2018-01-26 11:15:37
3807
转载 printf log信息调试宏定义
#ifndef __DEBUG_H__ #define __DEBUG_H__ #define LOG_LEVEL 0x01 //通过设置LOG_LEVEL可以设置调试以及取消打印语句,开发调试以及发产品 #define LEVEL_NONE 0x00 #define LEVEL_INFO 0x01 #define LEVEL_WARNING 0x02 #defin
2018-01-26 11:04:46
702
原创 socket client代码
#include #include #include #include #include #include #include #include #include #include #include "client.h" #include "debug.h" // get sockaddr, IPv4 or IPv6: stati
2018-01-26 10:40:46
446
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人