This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 pmf gpio_hal.c 文件问题



在 gpio_hal.c 文件中有函数cc_gpio_enable_notification,其中有几行代码如下

curr_port_settings->pin_inttype &= ~(0xF << (pin_num * 2));
curr_port_settings->pin_inttype |=
((gpio_type & 0xF) << (pin_num * 2));

pin_num 只能是0-7, oxF 只能以2位左移。gpio_type 是引脚的中断类型,最大为0x6,所以相邻两个引脚中断类型数值保存以破坏前一次数值 。

我想问的是,TI 的工程师是有意为之,望得到回复