Skip to content

void Port_AlternateFunction (uint8_t port_index, uint8_t pins_mask, uint8_t enable, uint32_t pctl_mask)  #26

Description

@salma97

This Function is provided to set or reset AFSEL register
if enable == 1 ---> set AFSEL and set the corresponding 4 bits in the PCTL register using pctl_mask
if enable == 0 ---> reset AFSEL and reset the corresponding 4 bits in the PCTL register

set CR using pins_mask

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions