Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Change CPU_GPIO_DisablePin AltFunction parameter type to UINT32 #514

Description

@cw2

As I have hit similar issue with the GPIO API, I vote for @smaillet-ms suggestion in #464 (comment) to change the type of the alternate parameter in CPU_GPIO_DisablePin function from GPIO_ALT_MODE to UINT32, and add inline function for backward compatibility:

void CPU_GPIO_DisablePin(GPIO_PIN Pin, GPIO_RESISTOR ResistorState, UINT32 Direction, UINT32 AltFunction);

inline void CPU_GPIO_DisablePin(GPIO_PIN Pin, GPIO_RESISTOR ResistorState, UINT32 Direction, GPIO_ALT_MODE AltFunction)
{
  return CPU_GPIO_DisablePin(Pin, ResistorState, Direction, (UINT32)AltFunction);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions