123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- #ifndef MBED_PORTMAP_H
- #define MBED_PORTMAP_H
-
- #include "device.h"
-
- #if DEVICE_PORTIN || DEVICE_PORTOUT
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- typedef struct port_s port_t;
-
- PinName port_pin(PortName port, int pin_n);
-
- void port_init (port_t *obj, PortName port, int mask, PinDirection dir);
- void port_mode (port_t *obj, PinMode mode);
- void port_dir (port_t *obj, PinDirection dir);
- void port_write(port_t *obj, int value);
- int port_read (port_t *obj);
-
- #ifdef __cplusplus
- }
- #endif
- #endif
-
- #endif
|