Tim Barry / mbed_blinky_offset
Committer:
timbobazza
Date:
Sat Oct 04 09:07:08 2014 +0000
Revision:
0:2173789ea697
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timbobazza 0:2173789ea697 1 /* mbed Microcontroller Library
timbobazza 0:2173789ea697 2 * Copyright (c) 2006-2013 ARM Limited
timbobazza 0:2173789ea697 3 *
timbobazza 0:2173789ea697 4 * Licensed under the Apache License, Version 2.0 (the "License");
timbobazza 0:2173789ea697 5 * you may not use this file except in compliance with the License.
timbobazza 0:2173789ea697 6 * You may obtain a copy of the License at
timbobazza 0:2173789ea697 7 *
timbobazza 0:2173789ea697 8 * http://www.apache.org/licenses/LICENSE-2.0
timbobazza 0:2173789ea697 9 *
timbobazza 0:2173789ea697 10 * Unless required by applicable law or agreed to in writing, software
timbobazza 0:2173789ea697 11 * distributed under the License is distributed on an "AS IS" BASIS,
timbobazza 0:2173789ea697 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
timbobazza 0:2173789ea697 13 * See the License for the specific language governing permissions and
timbobazza 0:2173789ea697 14 * limitations under the License.
timbobazza 0:2173789ea697 15 */
timbobazza 0:2173789ea697 16 #ifndef MBED_PORTMAP_H
timbobazza 0:2173789ea697 17 #define MBED_PORTMAP_H
timbobazza 0:2173789ea697 18
timbobazza 0:2173789ea697 19 #include "device.h"
timbobazza 0:2173789ea697 20
timbobazza 0:2173789ea697 21 #if DEVICE_PORTIN || DEVICE_PORTOUT
timbobazza 0:2173789ea697 22
timbobazza 0:2173789ea697 23 #ifdef __cplusplus
timbobazza 0:2173789ea697 24 extern "C" {
timbobazza 0:2173789ea697 25 #endif
timbobazza 0:2173789ea697 26
timbobazza 0:2173789ea697 27 typedef struct port_s port_t;
timbobazza 0:2173789ea697 28
timbobazza 0:2173789ea697 29 PinName port_pin(PortName port, int pin_n);
timbobazza 0:2173789ea697 30
timbobazza 0:2173789ea697 31 void port_init (port_t *obj, PortName port, int mask, PinDirection dir);
timbobazza 0:2173789ea697 32 void port_mode (port_t *obj, PinMode mode);
timbobazza 0:2173789ea697 33 void port_dir (port_t *obj, PinDirection dir);
timbobazza 0:2173789ea697 34 void port_write(port_t *obj, int value);
timbobazza 0:2173789ea697 35 int port_read (port_t *obj);
timbobazza 0:2173789ea697 36
timbobazza 0:2173789ea697 37 #ifdef __cplusplus
timbobazza 0:2173789ea697 38 }
timbobazza 0:2173789ea697 39 #endif
timbobazza 0:2173789ea697 40 #endif
timbobazza 0:2173789ea697 41
timbobazza 0:2173789ea697 42 #endif