Jump to content
43oh

pinMode INPUT_PULLDOWN not working properly on MSP432


Recommended Posts

Here is the problem. In C:\energia-0101E0015\hardware\msp432\cores\msp432\wiring_digital.c the pull directions are ignored.

 

 

GPIO_PinConfig mode2gpioConfig(uint8_t pin, uint8_t mode)
{
   switch (mode) {
        case INPUT:
        case INPUT_PULLUP:
            digital_pin_to_pin_function[pin] = PIN_FUNC_DIGITAL_INPUT;
            return (GPIO_CFG_IN_PU);


        case INPUT_PULLDOWN:
            digital_pin_to_pin_function[pin] = PIN_FUNC_DIGITAL_INPUT;
            return (GPIO_CFG_IN_PD);


        case OUTPUT:
            digital_pin_to_pin_function[pin] = PIN_FUNC_DIGITAL_OUTPUT;
            return (GPIO_CFG_OUT_STR_HIGH);
    }
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...