本文档分析了基于Realtek RTL8189 WiFi芯片的SDIO初始化完整流程,从硬件初始化到SDIO通信建立,包括CID,CSD,CCCR等关键信息的处理.
bsp/peripheral/wireless/realtek/
├── realtek_wifi_drv.c # 主驱动程序入口
| // Language: Verilog 2001 | |
| `timescale 1ns/1ps | |
| `default_nettype none | |
| module s2mm_2k_burst # | |
| ( | |
| parameter integer AXIS_DW = 32, // DataMover S_AXIS_S2MM 数据位宽 | |
| parameter [63:0] BASE_ADDR = 64'h0000_0000_1000_0000 // 目标 DDR 地址(64b) | |
| ) | |
| ( |
| #!/usr/bin/env bash | |
| # 一键安装 & 布署 GoBGP(Debian 系) | |
| # - 自动抓取 GitHub Releases 最新版(除非手动指定 GOBGP_VERSION) | |
| # - 安装 gobgpd/gobgp 到 /usr/local/bin | |
| # - 放置 /etc/gobgp 目录与示例 | |
| # - 创建最小权限 systemd 服务(启用但不启动,等你改配置) | |
| # - 提供一个"从文件注入 IPv6前缀"的小脚本 /usr/local/libexec/gobgp-origin.sh | |
| # 使用: | |
| # GOBGP_VERSION=3.37.0 /root/setup-gobgp.sh # 固定版本(可带或不带前缀 v) | |
| # /root/setup-gobgp.sh # 自动取最新 |
| // SPDX-License-Identifier: GPL-2.0+ | |
| /* ============================================================================= | |
| * FIXUP NOTICE (by TaterLi): | |
| * 本文件为去除 TLV/EEPROM 依赖后的版本(fb_spacemit_no_tlv.c). | |
| * 主要变更: | |
| * 1) 删除 <tlv_eeprom.h> 头文件依赖. | |
| * 2) fastboot_oem config 相关接口改为仅访问 U‑Boot 环境变量,flush=saveenv. | |
| * 3) 清除存储的 eeprom 擦除分支改为直接 FAIL,提示不再支持. | |
| * 4) 在修改处添加了 "FIXUP" 标记与中文注释,方便审阅与回退. | |
| * 注意:若仍需 EEPROM/TLV,请在上层通过 env 注入数据或自行恢复相关代码. |
| /********************************** (C) COPYRIGHT ******************************* | |
| * File Name : VendorDefinedDev.C | |
| * Author : WCH | |
| * Version : V1.7 | |
| * Date : 2023/05/31 | |
| * Description : CH554模拟USB Module(CH554),厂商自定义接口设备,需要安装驱动, | |
| 驱动搜索CH37XDRV或者安装ISPTool会自动安装该设备类驱动,该设备类除了控制传输外,还是直插端点2批量上下传和端点1 | |
| 中断上传,可以通过372DEBUG.EXE获取其他USB调试工具进行收发数据演示 | |
| ********************************************************************************* |
| source [find interface/cmsis-dap.cfg] | |
| transport select swd | |
| set CHIPNAME stm32h7b0xx | |
| if {![info exists OCTOSPI1]} { | |
| set OCTOSPI1 1 | |
| set OCTOSPI2 0 | |
| } | |
| source [find target/stm32h7x.cfg] |
| /********************************** (C) COPYRIGHT ******************************* | |
| * File Name : Main.c | |
| * Author : WCH | |
| * Version : V1.1 | |
| * Date : 2022/01/25 | |
| * Description : 模拟USB复合设备,键鼠,支持类命令 | |
| ********************************************************************************* | |
| * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. | |
| * Attention: This software (modified or not) and binary are used for | |
| * microcontroller manufactured by Nanjing Qinheng Microelectronics. |
| /********************************** (C) COPYRIGHT ******************************* | |
| * File Name : Main.c | |
| * Author : WCH | |
| * Version : V1.1 | |
| * Date : 2022/01/25 | |
| * Description : 模拟兼容HID设备 | |
| ********************************************************************************* | |
| * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. | |
| * Attention: This software (modified or not) and binary are used for | |
| * microcontroller manufactured by Nanjing Qinheng Microelectronics. |
| package com.example.bleapplication; | |
| import android.annotation.SuppressLint; | |
| import android.bluetooth.BluetoothGattCharacteristic; | |
| import android.bluetooth.BluetoothGattDescriptor; | |
| import android.bluetooth.BluetoothGattService; | |
| import android.bluetooth.BluetoothManager; | |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.util.Log; |