stm32cubeide iap

使用 stm32cubeide 实现 uart 基础上的 iap 功能。

stm32cubeide 串口输出

在 main.c 中增加 /* USER CODE BEGIN Includes */ #include <stdio.h> /* USER CODE END Includes */ /* USER CODE BEGIN 0 */ #ifdef __GNUC__ #def...

unistd 提供的 read 怎么才能 timeout 退出。

最近在调试 android,使用 串口半双工模式接收数据,碰到的问题是 unistd 中的 read 是block的,怎样才能超时退出。 刚开始找到的资料说是 c_cc[VMIN] = 0, c_cc[VTIME] = 10; 这样就能配置为 1s 超时了。但是实际上并不能够达到超时退出的功能...

android studio 类和方法注释

在 android studio 中对类和方法进行注释,快捷功能。

emacs org export pdf

1. 生成 tex 在 org 文件中按键 C-c C-e l l 这样能够生成 tex 文件 参考: http://tieba.baidu.com/p/3522363035 https://www.dazhuanlan.com/2019/10/16/5da60df92dd09/ https:...

emacs 中文

系统: win7en 在 emacs 文件的开头输入: -*- coding: utf-8 -*- 这样就可以以 utf-8 的编码进行保存。 还可以在配置文件中加入: (setq default-buffer-file-coding-system 'utf-8-unix) 。 具体参考: h...

texlive 安装

texlive 可以从下面两个网址下载 https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/ https://mirrors.ustc.edu.cn/CTAN/systems/texlive/Images/ 下载完成...

emacs 配置文件目录

在 windows 环境下,emacs 的配置目录可以通过下面几种方式来设置: If the environment variableHOME is set, use the directory it indicates. If the registry entry HKCU\SOFTWA...

android 使用 git 进行版本控制

远程建立仓库 vcs --> import into version control --> create git respository 选中整个工程(project 页面) vcs --> git -> add vcs --> git --> remo...

jni 学习笔记

jni 用来连接 java 和 c。