Microchip® Advanced Software Framework

qs_port_basic.c File Reference

SAM GPIO Port Driver Quick Start.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Functions

void configure_port_pins (void)
 [setup] More...
 
int main (void)
 [setup] More...
 

void configure_port_pins ( void  )

[setup]

Port pin configuration / assignments.

LED Port Pin Configuration.

[setup_1]

[setup_1] [setup_2]

[setup_2]

[setup_3]

[setup_3] [setup_4]

[setup_4]

[setup_5]

[setup_5] [setup_6]

[setup_6]

References port_config::direction, port_config::input_pull, port_get_config_defaults(), PORT_PIN_DIR_INPUT, PORT_PIN_DIR_OUTPUT, PORT_PIN_PULL_UP, and port_pin_set_config().

Referenced by demo_start(), and main().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main]

[main_1]

[main_1]

[main_2]

[main_2]

[main]

References configure_port_pins(), port_pin_get_input_level(), port_pin_set_output_level(), and system_init().