请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TM4C129ENCPDT 香榭丽舍
您能想到一种从外部观察复位成功/失败的方法吗? 例如、是否有一个引脚在成功完成复位后会切换? 我看到数据表中提到过几次“数字复位”,但它没有说明它到底是什么(看起来它会触发软件执行的开始?) 以及是否可以在外部观察到它

谢谢
Michael
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.
香榭丽舍
您能想到一种从外部观察复位成功/失败的方法吗? 例如、是否有一个引脚在成功完成复位后会切换? 我看到数据表中提到过几次“数字复位”,但它没有说明它到底是什么(看起来它会触发软件执行的开始?) 以及是否可以在外部观察到它

谢谢
Michael
您好、Michael、
没有内置的引脚指示已完成复位操作、因此最佳方法是在时钟配置后立即配置 GPIO 以开启 LED。
为此、将使用以下 API:
//
// Enable the GPIO port that is used for the on-board LED.
//
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPION);
//
// Check if the peripheral access is enabled.
//
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPION))
{
}
//
// Enable the GPIO pin for the LED (PN0). Set the direction as output, and
// enable the GPIO pin for digital function.
//
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_0);
//
// Turn on the LED.
//
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_0, GPIO_PIN_0);
作为一些添加的信息、如果使用休眠模块、/HIB 引脚会指示器件是否处于休眠模式。
此致、
Ralph Jacobi