cancel
Showing results for 
Search instead for 
Did you mean: 

AIROC™ Bluetooth

JiZh_4619191
New Contributor II

Hi,

请问CYW20719B2 的中断功能该怎么用?

CYW20719B2的说明书中有中断功能的叙述,

JiZh_4619191_0-1615854826290.png

Device configurator也可以配置中断引脚,

JiZh_4619191_1-1615854929011.png

问题是:程序中该如何定义中断程序呢?

 

谢谢

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator

可以参考hal_gpio demo中的代码:

wiced_hal_gpio_register_pin_for_interrupt(WICED_GET_PIN_FOR_BUTTON(index), hal_gpio_app_interrrupt_handler, NULL);
wiced_hal_gpio_configure_pin(WICED_GET_PIN_FOR_BUTTON(index), WICED_GPIO_BUTTON_SETTINGS(GPIO_EN_INT_RISING_EDGE), GPIO_PIN_OUTPUT_LOW);

View solution in original post

0 Likes
2 Replies
Owen_Zhang123
Moderator
Moderator

可以参考hal_gpio demo中的代码:

wiced_hal_gpio_register_pin_for_interrupt(WICED_GET_PIN_FOR_BUTTON(index), hal_gpio_app_interrrupt_handler, NULL);
wiced_hal_gpio_configure_pin(WICED_GET_PIN_FOR_BUTTON(index), WICED_GPIO_BUTTON_SETTINGS(GPIO_EN_INT_RISING_EDGE), GPIO_PIN_OUTPUT_LOW);

View solution in original post

0 Likes
JiZh_4619191
New Contributor II

我在Modus toolbox的Device Configurator中定义了SPI1为Quad SPI,但是不起作用,SPI仍然是1bit方式。

JiZh_4619191_0-1615942820383.png

 

请问该如何设置Quad SPI工作方式?或者有没有CYW20719B2关于的Quad SPI例子。

谢谢

0 Likes