![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
IOTIO
Dependencies: Nucleo_BLE_API_IOTIO Nucleo_BLE_BlueNRG Nucleo_BLE_DemoApp Nucleo_Sensor_Shield mbed
Dependents: Nucleo_BLE_Demo_IOTIO
Fork of Nucleo_BLE_Demo by
mbed/pinmap.h@1:4bdfa7d7e8bf, 2016-10-29 (annotated)
- Committer:
- 16038618
- Date:
- Sat Oct 29 15:11:28 2016 +0000
- Revision:
- 1:4bdfa7d7e8bf
IOTIO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
16038618 | 1:4bdfa7d7e8bf | 1 | /* mbed Microcontroller Library |
16038618 | 1:4bdfa7d7e8bf | 2 | * Copyright (c) 2006-2013 ARM Limited |
16038618 | 1:4bdfa7d7e8bf | 3 | * |
16038618 | 1:4bdfa7d7e8bf | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
16038618 | 1:4bdfa7d7e8bf | 5 | * you may not use this file except in compliance with the License. |
16038618 | 1:4bdfa7d7e8bf | 6 | * You may obtain a copy of the License at |
16038618 | 1:4bdfa7d7e8bf | 7 | * |
16038618 | 1:4bdfa7d7e8bf | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
16038618 | 1:4bdfa7d7e8bf | 9 | * |
16038618 | 1:4bdfa7d7e8bf | 10 | * Unless required by applicable law or agreed to in writing, software |
16038618 | 1:4bdfa7d7e8bf | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
16038618 | 1:4bdfa7d7e8bf | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16038618 | 1:4bdfa7d7e8bf | 13 | * See the License for the specific language governing permissions and |
16038618 | 1:4bdfa7d7e8bf | 14 | * limitations under the License. |
16038618 | 1:4bdfa7d7e8bf | 15 | */ |
16038618 | 1:4bdfa7d7e8bf | 16 | #ifndef MBED_PINMAP_H |
16038618 | 1:4bdfa7d7e8bf | 17 | #define MBED_PINMAP_H |
16038618 | 1:4bdfa7d7e8bf | 18 | |
16038618 | 1:4bdfa7d7e8bf | 19 | #include "PinNames.h" |
16038618 | 1:4bdfa7d7e8bf | 20 | |
16038618 | 1:4bdfa7d7e8bf | 21 | #ifdef __cplusplus |
16038618 | 1:4bdfa7d7e8bf | 22 | extern "C" { |
16038618 | 1:4bdfa7d7e8bf | 23 | #endif |
16038618 | 1:4bdfa7d7e8bf | 24 | |
16038618 | 1:4bdfa7d7e8bf | 25 | typedef struct { |
16038618 | 1:4bdfa7d7e8bf | 26 | PinName pin; |
16038618 | 1:4bdfa7d7e8bf | 27 | int peripheral; |
16038618 | 1:4bdfa7d7e8bf | 28 | int function; |
16038618 | 1:4bdfa7d7e8bf | 29 | } PinMap; |
16038618 | 1:4bdfa7d7e8bf | 30 | |
16038618 | 1:4bdfa7d7e8bf | 31 | void pin_function(PinName pin, int function); |
16038618 | 1:4bdfa7d7e8bf | 32 | void pin_mode (PinName pin, PinMode mode); |
16038618 | 1:4bdfa7d7e8bf | 33 | |
16038618 | 1:4bdfa7d7e8bf | 34 | uint32_t pinmap_peripheral(PinName pin, const PinMap* map); |
16038618 | 1:4bdfa7d7e8bf | 35 | uint32_t pinmap_function(PinName pin, const PinMap* map); |
16038618 | 1:4bdfa7d7e8bf | 36 | uint32_t pinmap_merge (uint32_t a, uint32_t b); |
16038618 | 1:4bdfa7d7e8bf | 37 | void pinmap_pinout (PinName pin, const PinMap *map); |
16038618 | 1:4bdfa7d7e8bf | 38 | uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map); |
16038618 | 1:4bdfa7d7e8bf | 39 | uint32_t pinmap_find_function(PinName pin, const PinMap* map); |
16038618 | 1:4bdfa7d7e8bf | 40 | |
16038618 | 1:4bdfa7d7e8bf | 41 | #ifdef __cplusplus |
16038618 | 1:4bdfa7d7e8bf | 42 | } |
16038618 | 1:4bdfa7d7e8bf | 43 | #endif |
16038618 | 1:4bdfa7d7e8bf | 44 | |
16038618 | 1:4bdfa7d7e8bf | 45 | #endif |