02 2019 档案
摘要:GPIO控制: #include <ti/drivers/GPIO.h> GPIO_init() 函数会调用 结构体实例 GPIOCC26XX_config,把需要使用到的GPIO放一起,然后通过排列编号设置某个GPIO。 或者 #include <ti/drivers/PIN.h> UART: 遗
阅读全文
摘要:1.相关函数介绍 a. int pthread_cancel(pthread_t thread) 发送终止信号给thread线程,如果成功则返回0,否则为非0值。发送成功并不意味着thread会终止。 b. int pthread_setcancelstate(int state, int *old
阅读全文
摘要:linux内核会发射一些信号,应用程序可以捕捉信号执行指定函数 int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); 成功:0;失败:-1,设置errno act:传入参数,新的处理方式。o
阅读全文
摘要:安装完Ubuntu后忽然意识到没有设置root密码,不知道密码自然就无法进入根用户下。到网上搜了一下,原来是这麽回事。Ubuntu的默认root密码是随机的,即每次开机都有一个新的root密码。我们可以在终端输入命令 sudo passwd,然后输入当前用户的密码,enter,终端会提示我们输入新的
阅读全文
摘要:scp是 secure copy 的缩写,是linux系统下基于ssh远程登陆进行安全的远程文件拷贝命令。 传输文件主要有两种方式,一种是 secureCRT 自带可视化的文件传输工具 SSH Secure File Transfer,一种是通过命令的方式进行文件的传输 SCP
阅读全文