This fork of the MBED Library allows you to use counters on the external counter pins (15/16 for Timer 3, 29/30 for Timer 2) by switching internal timing functions in MBED to utilize Timer 0

Fork of mbed-src by mbed official

Committer:
bparrott
Date:
Thu Oct 23 10:10:42 2014 +0000
Revision:
349:591ef4b19797
Parent:
82:0b31dbcd4769
This changes the timer used at the core of MBED from Timer 3 to Timer 0. This allows for the use of external pins with both Timer 2 and 3.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 82:0b31dbcd4769 1 /* mbed Microcontroller Library
mbed_official 82:0b31dbcd4769 2 * Copyright (c) 2006-2013 ARM Limited
mbed_official 82:0b31dbcd4769 3 *
mbed_official 82:0b31dbcd4769 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 82:0b31dbcd4769 5 * you may not use this file except in compliance with the License.
mbed_official 82:0b31dbcd4769 6 * You may obtain a copy of the License at
mbed_official 82:0b31dbcd4769 7 *
mbed_official 82:0b31dbcd4769 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 82:0b31dbcd4769 9 *
mbed_official 82:0b31dbcd4769 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 82:0b31dbcd4769 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 82:0b31dbcd4769 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 82:0b31dbcd4769 13 * See the License for the specific language governing permissions and
mbed_official 82:0b31dbcd4769 14 * limitations under the License.
mbed_official 82:0b31dbcd4769 15 */
mbed_official 82:0b31dbcd4769 16
mbed_official 82:0b31dbcd4769 17 #ifndef MBED_PERIPHERALPINS_H
mbed_official 82:0b31dbcd4769 18 #define MBED_PERIPHERALPINS_H
mbed_official 82:0b31dbcd4769 19
mbed_official 82:0b31dbcd4769 20 #include "pinmap.h"
mbed_official 82:0b31dbcd4769 21 #include "PeripheralNames.h"
mbed_official 82:0b31dbcd4769 22
mbed_official 82:0b31dbcd4769 23 /************RTC***************/
mbed_official 82:0b31dbcd4769 24 extern const PinMap PinMap_RTC[];
mbed_official 82:0b31dbcd4769 25
mbed_official 82:0b31dbcd4769 26 /************ADC***************/
mbed_official 82:0b31dbcd4769 27 extern const PinMap PinMap_ADC[];
mbed_official 82:0b31dbcd4769 28
mbed_official 82:0b31dbcd4769 29 /************DAC***************/
mbed_official 82:0b31dbcd4769 30 extern const PinMap PinMap_DAC[];
mbed_official 82:0b31dbcd4769 31
mbed_official 82:0b31dbcd4769 32 /************I2C***************/
mbed_official 82:0b31dbcd4769 33 extern const PinMap PinMap_I2C_SDA[];
mbed_official 82:0b31dbcd4769 34 extern const PinMap PinMap_I2C_SCL[];
mbed_official 82:0b31dbcd4769 35
mbed_official 82:0b31dbcd4769 36 /************UART***************/
mbed_official 82:0b31dbcd4769 37 extern const PinMap PinMap_UART_TX[];
mbed_official 82:0b31dbcd4769 38 extern const PinMap PinMap_UART_RX[];
mbed_official 82:0b31dbcd4769 39
mbed_official 82:0b31dbcd4769 40 /************SPI***************/
mbed_official 82:0b31dbcd4769 41 extern const PinMap PinMap_SPI_SCLK[];
mbed_official 82:0b31dbcd4769 42 extern const PinMap PinMap_SPI_MOSI[];
mbed_official 82:0b31dbcd4769 43 extern const PinMap PinMap_SPI_MISO[];
mbed_official 82:0b31dbcd4769 44 extern const PinMap PinMap_SPI_SSEL[];
mbed_official 82:0b31dbcd4769 45
mbed_official 82:0b31dbcd4769 46 /************PWM***************/
mbed_official 82:0b31dbcd4769 47 extern const PinMap PinMap_PWM[];
mbed_official 82:0b31dbcd4769 48
mbed_official 82:0b31dbcd4769 49 #endif