尊敬的工程师:
您好,对于外设,例如UART、I2C等等中的Enable是不是控制的就是是否供给给这个外设时钟的开关,非常感谢。
祝您好心情
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.
To enable the UART module, the UARTEN bit must be set.
Enable是不是控制的就是是否供给给这个外设时钟的开关
您指的是MAP_SysCtlPeripheralEnable函数?
//
// Enable the peripherals used by this example.
//
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
在driverlib内可以看到定义
#define MAP_SysCtlPeripheralEnable SysCtlPeripheralEnable |
具体您可以看一下
理论上是打开时钟开关以及置位对应的enable位,如UARTEN