摘要: https://blog.shiyunhong.com 阅读全文
posted @ 2025-08-01 12:36 xs314 阅读(26) 评论(0) 推荐(0)
摘要: static inline uint8_t elapsed_ge(uint16_t start, uint16_t delay) { uint16_t now = TIM10NOW; return (uint16_t)(now - start) >= delay; } typedef struct 阅读全文
posted @ 2026-01-30 22:31 xs314 阅读(4) 评论(0) 推荐(0)
摘要: #include "stm32f4xx_hal.h" #include <stdint.h> typedef enum { EVT_RELAY_ON = 0, EVT_RELAY_OFF } evt_type_t; typedef struct { uint8_t active; uint8_t r 阅读全文
posted @ 2026-01-27 23:18 xs314 阅读(8) 评论(0) 推荐(0)
摘要: 在本地终端上网或许需要设置代理,根据你的IP和端口设置 export http_proxy="http://192.168.1.2:10808" export https_proxy="http://192.168.1.2:10808" export all_proxy="socks5://192. 阅读全文
posted @ 2025-08-19 17:33 xs314 阅读(8) 评论(0) 推荐(0)
摘要: 启用bbr sudo sysctl -w net.ipv4.tcp_congestion_control=bbr sudo sysctl -w net.core.default_qdisc=fq_codel 临时修改 DNS vim /etc/resolv.conf 永久修改 DNS vim /et 阅读全文
posted @ 2025-08-18 18:32 xs314 阅读(11) 评论(0) 推荐(0)
摘要: 1. 工具链配置 下载好STM32CubeCLT (https://www.st.com/en/development-tools/stm32cubeclt.html) 通过 msys2 安装OpenOCD (自行参考互联网教程安装),也可通过其他渠道安装 核心命令: pacman -S mingw 阅读全文
posted @ 2025-06-01 12:47 xs314 阅读(2129) 评论(0) 推荐(1)
摘要: 使用 WCH-LinkUtility 工具切换 Link 模式 ① 点击 Active WCH-Link Mode 右侧 Get,查看当前 Link 模式 ② 点击 Active WCH-Link Mode 选项框,选择目标 Link 模式,点击 Set 切换后: 感觉切换就是重刷固件了 阅读全文
posted @ 2024-01-22 20:35 xs314 阅读(533) 评论(0) 推荐(0)
摘要: { "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**", "C:\\Keil_v5\\C51\\INC\\**" ], "defines": [ "_DEBUG", "UNICODE", "_ 阅读全文
posted @ 2023-10-26 10:52 xs314 阅读(55) 评论(0) 推荐(0)
摘要: ln -s C:\msys64\home\XS\.ssh C:\Users\XS\ 阅读全文
posted @ 2023-10-21 23:15 xs314 阅读(85) 评论(0) 推荐(0)
摘要: ```shell adb devices adb shell pm disable-user com.google.android.googlequicksearchbox com.google.android.gm com.google.android.apps.subscriptions.red 阅读全文
posted @ 2023-08-18 01:01 xs314 阅读(95) 评论(0) 推荐(0)