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.

LP-MSPM0L1306: Using DL_GPIO_clearPins()

Part Number: LP-MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG

Shown below is the function for clearing GPIO pins.

  • Let's assume that I want to clear Pin 0 of Port A (PA0). For the pins parameter, I would use DL_GPIO_PIN_0. What would I need to use for the gpio parameter?
  • The parameters gpio and pin appear to be typed as [in]. Is my perception correct, because an integer is typically labeled as int, not as in
  • Hi Thomas,

    It would help if you had the GPIO parameter to specify the Port of the GPIO. Also, the [in] in the picture doesn't stand for an integer. Instead, it's a doxygen standard to have param[in].

    Also, the type of parameters are specified in the function's parameter list.

    Best Regards,
    Diego Abad

  • Thank you Diego, but you answered only part of the question.

    What would I need to use for the gpio parameter? In other words, what is the proper gpio parameter for this function? I bet it's GPIOA, but I want a firm answer, since it will influence what I need to use in the same parameter located in other DL functions.

    I would also like to know what is meant by the "register overlay for the peripheral" and where those overlays are documented.

  • Hi Thomas,

    You are correct; it is to specify GPIOA. The register overlay for the Peripheral is the base address of the Peripheral you want to use. You can find the complete peripheral address in the MSPM0L130x Mixed-Signal Microcontrollers datasheet (Rev. C)  Section 8.7.2.

    If you need more "coding" examples of this, please refer to any of the SDKs DriverLib examples, and analyze the sysconfig output file ti_msp_dl_config.h

    Best Regards,

    Diego Abad