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.

msp432e401y的SDK的例程blinky.c中操作GPIO口前为什么没有看到初始化GPIO口时钟?

Other Parts Discussed in Thread: MSP432E401Y

msp432e401y在SDK的例程brink中操作GPIO口前为什么没有看到初始化GPIO口时钟,关于GPIO口使能函数SysCtlPeripheralEnable,它的作用是什么?

  • SysCtlPeripheralEnable

    This function enables peripherals. At power-up, all peripherals are disabled; they must be enabled in order to operate or respond to register reads/writes.

    此功能可启用外围设备。上电时,所有外设都被禁用;您必须要启用以便操作或响应寄存器读/写。
  • 那这个函数是同时初始化了时钟的意思吗?
  • 这个函数只是使能了外设。时钟的话,您可以使用 CS_initClockSignal 来配置

    This function initializes each of the clock signals. The user must ensure that this function is called for each clock signal. If not, the default state is assumed for the particular clock signal.

    若是没有配置的话,就会使用默认的时钟配置