mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c@86:26fc69fd3b6c, 2014-02-08 (annotated)
- Committer:
- mbed_official
- Date:
- Sat Feb 08 12:00:07 2014 +0000
- Revision:
- 86:26fc69fd3b6c
- Parent:
- 82:0b31dbcd4769
- Child:
- 98:3b81ecf1eeec
Synchronized with git revision 8c4fcca8c8e600391a5ccb90a3f889019733d082
Full URL: https://github.com/mbedmicro/mbed/commit/8c4fcca8c8e600391a5ccb90a3f889019733d082/
PWM update for Freescale Targets
Who changed what in which revision?
User | Revision | Line number | New 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 | #include "PeripheralPins.h" |
mbed_official | 82:0b31dbcd4769 | 18 | |
mbed_official | 82:0b31dbcd4769 | 19 | /************RTC***************/ |
mbed_official | 82:0b31dbcd4769 | 20 | const PinMap PinMap_RTC[] = { |
mbed_official | 82:0b31dbcd4769 | 21 | {NC, OSC32KCLK, 0}, |
mbed_official | 82:0b31dbcd4769 | 22 | }; |
mbed_official | 82:0b31dbcd4769 | 23 | |
mbed_official | 82:0b31dbcd4769 | 24 | /************ADC***************/ |
mbed_official | 82:0b31dbcd4769 | 25 | const PinMap PinMap_ADC[] = { |
mbed_official | 82:0b31dbcd4769 | 26 | /* A0-A5 pins */ |
mbed_official | 82:0b31dbcd4769 | 27 | {PTA0, ADC0_SE12, 0}, |
mbed_official | 82:0b31dbcd4769 | 28 | {PTA8, ADC0_SE3, 0}, |
mbed_official | 82:0b31dbcd4769 | 29 | {PTA9, ADC0_SE2, 0}, |
mbed_official | 82:0b31dbcd4769 | 30 | {PTB8, ADC0_SE11, 0}, |
mbed_official | 82:0b31dbcd4769 | 31 | {PTB9, ADC0_SE10, 0}, |
mbed_official | 82:0b31dbcd4769 | 32 | {PTB13, ADC0_SE13, 0}, |
mbed_official | 82:0b31dbcd4769 | 33 | /* Rest of pins ADC Mux */ |
mbed_official | 82:0b31dbcd4769 | 34 | {PTB2, ADC0_SE4, 0}, |
mbed_official | 82:0b31dbcd4769 | 35 | {PTB1, ADC0_SE5, 0}, |
mbed_official | 82:0b31dbcd4769 | 36 | {PTB5, ADC0_SE1, 0}, |
mbed_official | 82:0b31dbcd4769 | 37 | {PTA12, ADC0_SE0, 0}, |
mbed_official | 82:0b31dbcd4769 | 38 | {PTB10, ADC0_SE9, 0}, |
mbed_official | 82:0b31dbcd4769 | 39 | {PTB11, ADC0_SE8, 0}, |
mbed_official | 82:0b31dbcd4769 | 40 | {PTB7, ADC0_SE7, 0}, |
mbed_official | 82:0b31dbcd4769 | 41 | {PTB0, ADC0_SE6, 0}, |
mbed_official | 82:0b31dbcd4769 | 42 | {NC, NC, 0} |
mbed_official | 82:0b31dbcd4769 | 43 | }; |
mbed_official | 82:0b31dbcd4769 | 44 | |
mbed_official | 82:0b31dbcd4769 | 45 | /************DAC***************/ |
mbed_official | 82:0b31dbcd4769 | 46 | const PinMap PinMap_DAC[] = { |
mbed_official | 82:0b31dbcd4769 | 47 | {PTB1, DAC_0, 0}, |
mbed_official | 82:0b31dbcd4769 | 48 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 49 | }; |
mbed_official | 82:0b31dbcd4769 | 50 | |
mbed_official | 82:0b31dbcd4769 | 51 | /************I2C***************/ |
mbed_official | 82:0b31dbcd4769 | 52 | const PinMap PinMap_I2C_SDA[] = { |
mbed_official | 82:0b31dbcd4769 | 53 | {PTB4, I2C_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 54 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 55 | }; |
mbed_official | 82:0b31dbcd4769 | 56 | |
mbed_official | 82:0b31dbcd4769 | 57 | const PinMap PinMap_I2C_SCL[] = { |
mbed_official | 82:0b31dbcd4769 | 58 | {PTB3, I2C_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 59 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 60 | }; |
mbed_official | 82:0b31dbcd4769 | 61 | /************UART***************/ |
mbed_official | 82:0b31dbcd4769 | 62 | const PinMap PinMap_UART_TX[] = { |
mbed_official | 82:0b31dbcd4769 | 63 | {PTB1, UART_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 64 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 65 | }; |
mbed_official | 82:0b31dbcd4769 | 66 | |
mbed_official | 82:0b31dbcd4769 | 67 | const PinMap PinMap_UART_RX[] = { |
mbed_official | 82:0b31dbcd4769 | 68 | {PTB2, UART_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 69 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 70 | }; |
mbed_official | 82:0b31dbcd4769 | 71 | |
mbed_official | 82:0b31dbcd4769 | 72 | /************SPI***************/ |
mbed_official | 82:0b31dbcd4769 | 73 | const PinMap PinMap_SPI_SCLK[] = { |
mbed_official | 82:0b31dbcd4769 | 74 | {PTB0, SPI_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 75 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 76 | }; |
mbed_official | 82:0b31dbcd4769 | 77 | |
mbed_official | 82:0b31dbcd4769 | 78 | const PinMap PinMap_SPI_MOSI[] = { |
mbed_official | 82:0b31dbcd4769 | 79 | {PTA7, SPI_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 80 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 81 | }; |
mbed_official | 82:0b31dbcd4769 | 82 | |
mbed_official | 82:0b31dbcd4769 | 83 | const PinMap PinMap_SPI_MISO[] = { |
mbed_official | 82:0b31dbcd4769 | 84 | {PTA6, SPI_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 85 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 86 | }; |
mbed_official | 82:0b31dbcd4769 | 87 | |
mbed_official | 82:0b31dbcd4769 | 88 | const PinMap PinMap_SPI_SSEL[] = { |
mbed_official | 82:0b31dbcd4769 | 89 | {PTA5, SPI_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 90 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 91 | }; |
mbed_official | 82:0b31dbcd4769 | 92 | |
mbed_official | 82:0b31dbcd4769 | 93 | /************PWM***************/ |
mbed_official | 82:0b31dbcd4769 | 94 | const PinMap PinMap_PWM[] = { |
mbed_official | 86:26fc69fd3b6c | 95 | {PTA0, PWM_7, 2}, // PTA0 , TPM1 CH0 |
mbed_official | 86:26fc69fd3b6c | 96 | {PTA5, PWM_6 , 2}, // PTA5 , TPM0 CH5 |
mbed_official | 86:26fc69fd3b6c | 97 | {PTA6, PWM_5, 2}, // PTA6 , TPM0 CH4 |
mbed_official | 86:26fc69fd3b6c | 98 | {PTA12, PWM_7 , 2}, // PTA12, TPM1 CH0 |
mbed_official | 86:26fc69fd3b6c | 99 | |
mbed_official | 86:26fc69fd3b6c | 100 | {PTB5, PWM_8, 2}, // PTB5 , TPM1 CH1 |
mbed_official | 86:26fc69fd3b6c | 101 | {PTB6, PWM_4, 2}, // PTB6 , TPM0 CH3 |
mbed_official | 86:26fc69fd3b6c | 102 | {PTB7, PWM_3, 2}, // PTB7 , TPM0 CH2 |
mbed_official | 86:26fc69fd3b6c | 103 | {PTB8, PWM_4, 2}, // PTB8 , TPM0 CH3 |
mbed_official | 86:26fc69fd3b6c | 104 | {PTB9, PWM_3, 2}, // PTB9 , TPM0 CH2 |
mbed_official | 86:26fc69fd3b6c | 105 | {PTB10, PWM_2, 2}, // PTB10 , TPM0 CH1 |
mbed_official | 86:26fc69fd3b6c | 106 | {PTB11, PWM_1, 2}, // PTB11 , TPM0 CH0 |
mbed_official | 86:26fc69fd3b6c | 107 | {PTB13, PWM_8, 2}, // PTB13 , TPM1 CH1 |
mbed_official | 86:26fc69fd3b6c | 108 | {NC , NC, 0} |
mbed_official | 82:0b31dbcd4769 | 109 | }; |