mbed library sources
Fork of mbed-src by
targets/hal/TARGET_Atmel/TARGET_SAM21/port_api.c@592:a274ee790e56, 2015-07-17 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 17 09:15:10 2015 +0100
- Revision:
- 592:a274ee790e56
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6
Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/
More API implementation for SAMR21
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 592:a274ee790e56 | 1 | /* mbed Microcontroller Library |
mbed_official | 592:a274ee790e56 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 592:a274ee790e56 | 3 | * |
mbed_official | 592:a274ee790e56 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 592:a274ee790e56 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 592:a274ee790e56 | 6 | * You may obtain a copy of the License at |
mbed_official | 592:a274ee790e56 | 7 | * |
mbed_official | 592:a274ee790e56 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 592:a274ee790e56 | 9 | * |
mbed_official | 592:a274ee790e56 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 592:a274ee790e56 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 592:a274ee790e56 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 592:a274ee790e56 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 592:a274ee790e56 | 14 | * limitations under the License. |
mbed_official | 592:a274ee790e56 | 15 | */ |
mbed_official | 592:a274ee790e56 | 16 | #include "port_api.h" |
mbed_official | 592:a274ee790e56 | 17 | #include "pinmap.h" |
mbed_official | 592:a274ee790e56 | 18 | #include "gpio_api.h" |
mbed_official | 592:a274ee790e56 | 19 | |
mbed_official | 592:a274ee790e56 | 20 | void port_init(port_t *obj, PortName port, int mask, PinDirection dir) |
mbed_official | 592:a274ee790e56 | 21 | { |
mbed_official | 592:a274ee790e56 | 22 | } |
mbed_official | 592:a274ee790e56 | 23 | |
mbed_official | 592:a274ee790e56 | 24 | void port_mode(port_t *obj, PinMode mode) |
mbed_official | 592:a274ee790e56 | 25 | { |
mbed_official | 592:a274ee790e56 | 26 | } |
mbed_official | 592:a274ee790e56 | 27 | |
mbed_official | 592:a274ee790e56 | 28 | void port_dir(port_t *obj, PinDirection dir) |
mbed_official | 592:a274ee790e56 | 29 | { |
mbed_official | 592:a274ee790e56 | 30 | } |
mbed_official | 592:a274ee790e56 | 31 | |
mbed_official | 592:a274ee790e56 | 32 | void port_write(port_t *obj, int value) |
mbed_official | 592:a274ee790e56 | 33 | { |
mbed_official | 592:a274ee790e56 | 34 | } |
mbed_official | 592:a274ee790e56 | 35 | |
mbed_official | 592:a274ee790e56 | 36 | int port_read(port_t *obj) |
mbed_official | 592:a274ee790e56 | 37 | { |
mbed_official | 592:a274ee790e56 | 38 | return 0; |
mbed_official | 592:a274ee790e56 | 39 | } |