请问MSP432的各个GPIO口的时钟是默认开启的还是需要使能的?我在MSP432P401R的TRM中没有找到相关的外设时钟使能寄存器,请教TI工程师。
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.
默认开启。
给你个MSP432的例子体会一下。
#include "msp.h"
int main(void)
{
volatile uint32_t i;
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; // Stop watchdog timer
// The following code toggles P1.0 port
P1->DIR |= BIT0; // Configure P1.0 as output
while(1)
{
P1->OUT ^= BIT0; // Toggle P1.0
for(i=10000; i>0; i--); // Delay
}
}