ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
gpio_driver.c File Reference
#include "gpio_driver.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hardware/gpio.h"
#include "drivers/v24_config.h"
#include "platform/pinmap.h"
#include "system/common.h"
Include dependency graph for gpio_driver.c:

Go to the source code of this file.

Functions

V24_POLARITIES_T init_polarities (void)
 Build default V.24 polarity configuration.
 
void init_pins (void)
 Initialize all board GPIOs used by the application.
 

Variables

V24_PIN_T outputs [] = {V24_RTS, V24_TXD, V24_DTR, V24_TXC_DTE, V24_TXC_DCE}
 
V24_PIN_T inputs [] = {V24_DCD, V24_DSR, V24_CTS, V24_RXD, V24_RXC}
 

Function Documentation

◆ init_pins()

void init_pins ( void  )

Initialize all board GPIOs used by the application.

Definition at line 53 of file gpio_driver.c.

References ARRAY_LEN, inputs, and outputs.

Referenced by main().

Here is the caller graph for this function:

◆ init_polarities()

V24_POLARITIES_T init_polarities ( void  )

Build default V.24 polarity configuration.

Returns
Default polarity set for TX/RX/control lines.

Definition at line 35 of file gpio_driver.c.

References LOG_DEBUG.

Referenced by init_v24_config().

Here is the caller graph for this function:

Variable Documentation

◆ inputs

Definition at line 33 of file gpio_driver.c.

Referenced by init_pins().

◆ outputs

Definition at line 31 of file gpio_driver.c.

Referenced by init_pins().