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.

[参考译文] CCS/CC1352R:中断缺失

Guru**** 2595805 points
Other Parts Discussed in Thread: CC1352R, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/920248/ccs-cc1352r-missing-interrupts

器件型号:CC1352R
Thread 中讨论的其他器件: SysConfig

工具/软件:Code Composer Studio

您好!

我将 cc1352R 与 SDK 4.10搭配使用。

对于所有上升/下降/双边沿/低电平和高电平中断、SysConfig 配置的驱动程序似乎都缺失。

我已经使用 SysConfig 和 TI-RTOS 为所有中断配置了一个输入引脚。 但它不起作用。

cc1352R 是否支持检测中断? 如果是、那么我会做什么错。

谢谢、  

Kartik

 代码如下:

void gpioCallbackFxn0 (uint_least8_t index)
{

int hallState = 0; //初始化用于存储霍尔传感器状态的变量。

hallState = GPIO_Read (hallPin); //从传感器读取并存储霍尔效应传感器的状态:

printf (回调中的"\n");

if (hallState ==0) //检查模块的状态是高电平还是低电平
{
GPIO_WRITE (CONFIG_GPIO_LED_0、CONFIG_GPIO_LED_ON); //如果模块的状态为高电平,则打开 LED
printf (" hallState =%d\n"、hallState);
}
其他
{
GPIO_WRITE (CONFIG_GPIO_LED_0、CONFIG_GPIO_LED_OFF); //否则关闭 LED:
printf (" hallState =%d\n"、hallState);
}
}


/*
=== mainThread ====
//
void * mainThread (void * arg0)
{
/* 1秒延迟*/
uint32_t 时间= 1;

/*调用驱动程序初始化函数*/
GPIO_init();

/*配置 LED 和按钮引脚*/
GPIO_setConfig (CONFIG_GPIO_LED_0、GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
GPIO_setConfig (hallPin、GPIO_CFG_IN_pu | GPIO_CFG_IN_INT_LOW);


/*启用中断*/
GPIO_enableInt (hallPin);

while (1)
{
睡眠(时间);
}
} 

以下引脚配置: