手册里面有如下注意事项(主要内容就是KE02没有复选寄存器,通过使能相应的模块来使能pin脚功能,如果同时使能两个模块则优先级高的模块获得控制权。所以建议在使用pin脚资源前请规划好所要pin脚需要使用的功能):
When an alternative function is first enabled, it is possible to get a spurious edge to the module. User software must clear any associated flags before interrupts are enabled. Table 10-1 illustrates the priority if multiple modules are enabled. The highest priority module will have control over the pin. Selecting a higher priority pin function with a lower priority function already enabled can cause spurious edges to the lower priority module. Disable all modules that share a pin before enabling
another module.