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.

CC1312R: 1310迁移到1312的配置问题

Part Number: CC1312R
Other Parts Discussed in Thread: CC1310, , SYSCONFIG

ti你好

我们原来使用cc1310,现在因为内存等原因切换到1312,请问我之前在1310上使用的初始化配置如下:

#define CC1310_LAUNCHXL_SPI_ACC_CS              IOID_4

static PIN_Config BoardACCPinTable[] =
{
CC1310_LAUNCHXL_SPI_ACC_CS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MIN,

PIN_TERMINATE
};

hAccPin = PIN_open(&pinState, BoardACCPinTable);

切换到1312应该如何配置?

如下配置是否正确?

#define CC1310_LAUNCHXL_SPI_ACC_CS              IOID_4

GPIO_setConfig(CC1310_LAUNCHXL_SPI_ACC_CS , GPIO_CFG_OUTPUT | GPIO_CFG_OUT_HIGH |GPIO_CFG_OUT_STR_LOW);