SDK3.5
This document shows Ameba SDK 3.5 APIs
|
This file provides following mbed GPIO PORT API. More...
Ameba Common | |
typedef struct port_s | port_t |
void | port_init (port_t *obj, PortName port, int mask, PinDirection dir) |
Initializes the GPIO device port, include data direction registers. More... | |
PinName | port_pin (PortName port, int pin_n) |
Get GPIO port pin name. More... | |
void | port_mode (port_t *obj, PinMode mode) |
Configure GPIO port pins pull up/pull down. More... | |
void | port_dir (port_t *obj, PinDirection dir) |
Set GPIO port pins data direction. More... | |
void | port_write (port_t *obj, int value) |
Sets value to the selected port pins. More... | |
int | port_read (port_t *obj) |
Reads the specified gpio port pins. More... | |
This file provides following mbed GPIO PORT API.
mbed Microcontroller Library
Copyright (c) 2006-2013 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.