MCU
百年树人王
莫听穿林打叶声
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
STM32G070 RTC 时间不走的问题
由于我只用到时间,没有用到日期。 所以只调用了 HAL_RTC_GetTime, 发现时间一直不变。经查,需要调用 HAL_RTC_GetDate() 解锁一下。 修改后,时间正常运转。@note You must call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values RTC_DateTypeDef sdatestructureget; RTC_TimeTypeDef stimestructure...原创 2020-12-31 18:24:47 · 2468 阅读 · 0 评论 -
差分曼切斯特编码 原来有两种
百度百科差分曼彻斯特码,在信号位开始时改变信号极性,表示逻辑"0";在信号位开始时不改变信号极性,表示逻辑"1"NanoLockit差分曼彻斯特码,在信号位开始时改变信号极性,表示逻辑"1";在信号位开始时不改变信号极性,表示逻辑"0"...原创 2020-12-31 18:20:47 · 970 阅读 · 0 评论 -
STM32G070 定时器精度问题总结
定时器208us 时间有误差, 实际定时时间为185us问题原因是定时器的 Prescaler != 0, 造成误差。 对于us 级别的定时, Prescaler 一定要设置成 0修改后, 定时器208us, 实际207.6us原创 2020-12-31 18:19:13 · 2235 阅读 · 0 评论 -
TLV320AIC3204 声音输入设置
IN2_L 测试有声音// IN2L is routed to Left MICPGA with 10k resistance// CM is routed to Left MICPGA via CM1L with 10k resistance// IN2R is not routed to Right MICPGA// CM is not routed to Right MICPGA[END]~ # i2c_write 10 0x30 0x0 0x1*** B...原创 2020-11-25 16:32:39 · 2510 阅读 · 2 评论 -
STM32G070 移植一个shell,方便调试。基于FreeRTOS
测试ST 官网的 FreeRTOS移植shell主要是串口对接, 需要重写两个函数int fputc(int ch, FILE *f){ /* Place your implementation of fputc here */ /* e.g. write a character to the EVAL_COM1 and Loop until the end of transmission */ HAL_UART_Transmit(&huart1, (uint8_t *).原创 2020-11-24 19:05:44 · 2847 阅读 · 0 评论 -
按位解析32位数的小程序
按位解析, 按结构体解析 一个32位的程序 parse32.c#include <stdio.h>union INT32BITS { // struct PERI_CRG143_HI3559AV100 { unsigned int sdio2_sam_dll_ssel:13; unsigned int sdio2_sam_dll_mode:1; unsigned int res...原创 2018-06-27 11:46:23 · 789 阅读 · 0 评论 -
hostapd编译
从官网下载源码 http://w1.fi/hostapd/说明:本篇文章基于前两篇libnl编译和openssl编译的结果,存放路径第一步,解压tar -xvf hostapd-2.5.tar.gz cd hostapd-2.5/hostapd/第二步 cp defconfig .config修改.config将#CONFIG_LIBNL32=y修改为CONFIG_LIBNL32=y第三步,修改M...原创 2018-05-24 19:23:59 · 1859 阅读 · 0 评论 -
openssl 编译
从官网下载源代码 https://www.openssl.org/第一步,解压tar -xvf openssl-1.0.2h.tar.gz cd openssl-1.0.2h/第二步,配置./config no-asm shared --prefix=$(pwd)/__installmake depend第三步,修改Makefile修改Makefile:将下面CC= gccAR= ar $(ARF...原创 2018-05-24 18:56:55 · 693 阅读 · 0 评论 -
libnl 编译
从官网上下载最新代码 http://www.infradead.org/~tgr/libnl/第一步解压 tar -xvf libnl-3.2.25.tar.gz cd libnl-3.2.25/第二步配置 ./configure CC=aarch64-himix100-linux-gcc --host=aarch64-himix100-linux --enable-static --ena...原创 2018-05-24 18:39:13 · 3956 阅读 · 0 评论 -
ubuntu18.04 编译luvcview
在网上下载源码https://packages.ubuntu.com/source/trusty/luvcview安装依赖 sudo apt-get install debhelper sudo apt-get install libsdl1.2-dev sudo apt-get install libv4l-dev sudo apt-get install pkg-config解压源码tar -...原创 2018-06-02 16:48:34 · 4002 阅读 · 0 评论 -
wpa_supplicant编译
从官网下载源码 http://w1.fi/wpa_supplicant/说明:本篇文章基于前两篇libnl编译和openssl编译的结果,存放路径第一步,解压tar -xvf wpa_supplicant-2.5.tar.gz cd wpa_supplicant-2.5/wpa_supplicant/第二步 cp defconfig .config修改.config将#CONFIG_LIBNL32...原创 2018-05-25 11:14:54 · 3253 阅读 · 0 评论 -
SONY LANC 协议比较好的资料推荐
http://controlyourcamera.blogspot.co.uk/2011/02/arduino-controlled-video-recording-over.htmlhttp://controlyourcamera.blogspot.co.uk/2011/02/finding-out-lanc-remote-commands.htmlhttp://marcuswolschon.b...原创 2018-04-26 17:35:06 · 2772 阅读 · 0 评论
分享