ECE 486 Support Libraries
Macros for the board-specific digital i/o line

Macros

#define DIGITAL_IO_SET()   HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_SET)
 
#define DIGITAL_IO_RESET()   HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_RESET)
 
#define DIGITAL_IO_TOGGLE()   HAL_GPIO_TogglePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN)
 

Detailed Description

Each development board has one dedicated configured digital i/o pin. These macros control the state of that output pin. (Pin PD0) for STM32L476G-Discovery)

Macro Definition Documentation

#define DIGITAL_IO_RESET ( )    HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_RESET)

Definition at line 133 of file init486.h.

#define DIGITAL_IO_SET ( )    HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_SET)

Definition at line 132 of file init486.h.

#define DIGITAL_IO_TOGGLE ( )    HAL_GPIO_TogglePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN)

Definition at line 134 of file init486.h.