回答
嗨kallsop。 根据各类文档支持XUD(XMOS USB设备)库,第二针(保留)用于内部目的:
#define UIFM_FLAG_0_PORT XS1_PORT_1N
#define UIFM_FLAG_1_PORT XS1_PORT_1O
#define UIFM_FLAG_2_PORT XS1_PORT_1P
如果你无法找到直接引用这些针我源文件、源可能会使用一些汇编代码。 在SRC树,你看到任何。 文件吗? 的。 后缀的文件汇编源文件。 怀疑上述端口正在使用针通过汇编代码。
看到XS1-L或XS1-U数据表的更多细节的别针成为XUD保留如果使用库。
3.1.2 U-Series
E XMOS USB Interface
- for XS1-L datasheet
更新 :发现了一些更多的细节在上述被审查 xs1 - u6a - 64 数据表- F - USB PHY看到部分
XS1_PORT_1N
flag1
XS1_PORT_1O
flag2
XS1_PORT_1P
flag3
The USB PHY is peripheral 1. The control registers are accessed using 32-bit
reads and writes (use write_periph_32(device, 1, ...) and read_periph_32(device,
> 1, ...) for reads and writes).