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.

CCS/MSP-EXP432E401Y: Configure a GPIO

Part Number: MSP-EXP432E401Y

Tool/software: Code Composer Studio

Hi. I'm trying to configure PN0 as output, but I came out with a doubt about the library of MSP432E. The user guide states to configure a GPIO we must enable the clock to the port using RCGCGPIO register; however checking the library there two RCGCGPIO, one named SYSCTL_RCGCGPIO and other inside of SYSCTL_Type structure. FWhat is the difference between them?

  • gomezramones said:
    What is the difference between them?

    They are are two different ways of accessing the same peripheral register.

    SYSCTL_RCGCGPIO is originally from the TI TivaWare software, which defined a macro for the address of each peripheral register.

    The SYSCTL_Type structure is for the ARM CMSIS Peripheral Access style where a structure is used to define the layout of the registers for one peripheral, with a macro which places the structure at the base address of the peripheral.

    Which method you use is personal choice / project coding conventions / potential for core reuse.

    gomezramones said:
    The user guide states to configure a GPIO we must enable the clock to the port using RCGCGPIO register

    As well as using "Direct Register Modification (DRM)" to access peripheral registers, it is also possible to use SysCtlPeripheralEnable function in driverlib.

  • Hi Chester Gillon, Thanks for your support on this thread!

**Attention** This is a public forum