25#if DEVICE_PORTIN || DEVICE_PORTOUT
void port_mode(port_t *obj, PinMode mode)
Set the input port mode.
int port_read(port_t *obj)
Read the current value on the port.
PinName port_pin(PortName port, int pin_n)
Get the pin name from the port's pin number.
void port_init(port_t *obj, PortName port, int mask, PinDirection dir)
Initilize the port.
void port_dir(port_t *obj, PinDirection dir)
Set port direction (in/out)
void port_write(port_t *obj, int value)
Write value to the port.
struct port_s port_t
Port HAL structure.