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@98:3b81ecf1eeec, 2014-02-18 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Feb 18 22:15:05 2014 +0000
- Revision:
- 98:3b81ecf1eeec
- Parent:
- 86:26fc69fd3b6c
Synchronized with git revision 111cad58e960e1341fff6cd403436799963e3703
Full URL: https://github.com/mbedmicro/mbed/commit/111cad58e960e1341fff6cd403436799963e3703/
Frdm fix
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 | {PTA0, ADC0_SE12, 0}, |
mbed_official | 98:3b81ecf1eeec | 27 | {PTA7, ADC0_SE7, 0}, |
mbed_official | 82:0b31dbcd4769 | 28 | {PTA8, ADC0_SE3, 0}, |
mbed_official | 82:0b31dbcd4769 | 29 | {PTA9, ADC0_SE2, 0}, |
mbed_official | 98:3b81ecf1eeec | 30 | {PTA12, ADC0_SE0, 0}, |
mbed_official | 98:3b81ecf1eeec | 31 | |
mbed_official | 98:3b81ecf1eeec | 32 | {PTB0, ADC0_SE6, 0}, |
mbed_official | 98:3b81ecf1eeec | 33 | {PTB1, ADC0_SE5, 0}, |
mbed_official | 98:3b81ecf1eeec | 34 | {PTB2, ADC0_SE4, 0}, |
mbed_official | 98:3b81ecf1eeec | 35 | {PTB5, ADC0_SE1, 0}, |
mbed_official | 82:0b31dbcd4769 | 36 | {PTB8, ADC0_SE11, 0}, |
mbed_official | 82:0b31dbcd4769 | 37 | {PTB9, ADC0_SE10, 0}, |
mbed_official | 98:3b81ecf1eeec | 38 | {PTB10, ADC0_SE9, 0}, |
mbed_official | 98:3b81ecf1eeec | 39 | {PTB11, ADC0_SE8, 0}, |
mbed_official | 82:0b31dbcd4769 | 40 | {PTB13, ADC0_SE13, 0}, |
mbed_official | 98:3b81ecf1eeec | 41 | {NC, NC, 0} |
mbed_official | 82:0b31dbcd4769 | 42 | }; |
mbed_official | 82:0b31dbcd4769 | 43 | |
mbed_official | 82:0b31dbcd4769 | 44 | /************DAC***************/ |
mbed_official | 82:0b31dbcd4769 | 45 | const PinMap PinMap_DAC[] = { |
mbed_official | 82:0b31dbcd4769 | 46 | {PTB1, DAC_0, 0}, |
mbed_official | 82:0b31dbcd4769 | 47 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 48 | }; |
mbed_official | 82:0b31dbcd4769 | 49 | |
mbed_official | 82:0b31dbcd4769 | 50 | /************I2C***************/ |
mbed_official | 82:0b31dbcd4769 | 51 | const PinMap PinMap_I2C_SDA[] = { |
mbed_official | 98:3b81ecf1eeec | 52 | {PTA3, I2C_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 53 | {PTA4, I2C_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 54 | {PTB4, I2C_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 55 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 56 | }; |
mbed_official | 82:0b31dbcd4769 | 57 | |
mbed_official | 82:0b31dbcd4769 | 58 | const PinMap PinMap_I2C_SCL[] = { |
mbed_official | 98:3b81ecf1eeec | 59 | {PTA3, I2C_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 60 | {PTA4, I2C_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 61 | {PTB3, I2C_0, 2}, |
mbed_official | 82:0b31dbcd4769 | 62 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 63 | }; |
mbed_official | 82:0b31dbcd4769 | 64 | /************UART***************/ |
mbed_official | 82:0b31dbcd4769 | 65 | const PinMap PinMap_UART_TX[] = { |
mbed_official | 82:0b31dbcd4769 | 66 | {PTB1, UART_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 67 | {PTB2, UART_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 68 | {PTB3, UART_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 69 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 70 | }; |
mbed_official | 82:0b31dbcd4769 | 71 | |
mbed_official | 82:0b31dbcd4769 | 72 | const PinMap PinMap_UART_RX[] = { |
mbed_official | 98:3b81ecf1eeec | 73 | {PTB1, UART_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 74 | {PTB2, UART_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 75 | {PTB4, UART_0, 3}, |
mbed_official | 82:0b31dbcd4769 | 76 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 77 | }; |
mbed_official | 82:0b31dbcd4769 | 78 | |
mbed_official | 82:0b31dbcd4769 | 79 | /************SPI***************/ |
mbed_official | 82:0b31dbcd4769 | 80 | const PinMap PinMap_SPI_SCLK[] = { |
mbed_official | 98:3b81ecf1eeec | 81 | {PTB0, SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 82 | {PTB17, SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 83 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 84 | }; |
mbed_official | 82:0b31dbcd4769 | 85 | |
mbed_official | 82:0b31dbcd4769 | 86 | const PinMap PinMap_SPI_MOSI[] = { |
mbed_official | 98:3b81ecf1eeec | 87 | {PTA7 , SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 88 | {PTB15, SPI_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 89 | {PTB16, SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 90 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 91 | }; |
mbed_official | 82:0b31dbcd4769 | 92 | |
mbed_official | 82:0b31dbcd4769 | 93 | const PinMap PinMap_SPI_MISO[] = { |
mbed_official | 98:3b81ecf1eeec | 94 | {PTA6 , SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 95 | {PTA7 , SPI_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 96 | {PTB15, SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 97 | {PTB16, SPI_0, 2}, |
mbed_official | 98:3b81ecf1eeec | 98 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 99 | }; |
mbed_official | 82:0b31dbcd4769 | 100 | |
mbed_official | 82:0b31dbcd4769 | 101 | const PinMap PinMap_SPI_SSEL[] = { |
mbed_official | 98:3b81ecf1eeec | 102 | {PTA5 , SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 103 | {PTA19, SPI_0, 3}, |
mbed_official | 98:3b81ecf1eeec | 104 | {NC , NC , 0} |
mbed_official | 82:0b31dbcd4769 | 105 | }; |
mbed_official | 82:0b31dbcd4769 | 106 | |
mbed_official | 82:0b31dbcd4769 | 107 | /************PWM***************/ |
mbed_official | 82:0b31dbcd4769 | 108 | const PinMap PinMap_PWM[] = { |
mbed_official | 86:26fc69fd3b6c | 109 | {PTA0, PWM_7, 2}, // PTA0 , TPM1 CH0 |
mbed_official | 86:26fc69fd3b6c | 110 | {PTA5, PWM_6 , 2}, // PTA5 , TPM0 CH5 |
mbed_official | 86:26fc69fd3b6c | 111 | {PTA6, PWM_5, 2}, // PTA6 , TPM0 CH4 |
mbed_official | 86:26fc69fd3b6c | 112 | {PTA12, PWM_7 , 2}, // PTA12, TPM1 CH0 |
mbed_official | 86:26fc69fd3b6c | 113 | |
mbed_official | 86:26fc69fd3b6c | 114 | {PTB5, PWM_8, 2}, // PTB5 , TPM1 CH1 |
mbed_official | 86:26fc69fd3b6c | 115 | {PTB6, PWM_4, 2}, // PTB6 , TPM0 CH3 |
mbed_official | 86:26fc69fd3b6c | 116 | {PTB7, PWM_3, 2}, // PTB7 , TPM0 CH2 |
mbed_official | 86:26fc69fd3b6c | 117 | {PTB8, PWM_4, 2}, // PTB8 , TPM0 CH3 |
mbed_official | 86:26fc69fd3b6c | 118 | {PTB9, PWM_3, 2}, // PTB9 , TPM0 CH2 |
mbed_official | 86:26fc69fd3b6c | 119 | {PTB10, PWM_2, 2}, // PTB10 , TPM0 CH1 |
mbed_official | 86:26fc69fd3b6c | 120 | {PTB11, PWM_1, 2}, // PTB11 , TPM0 CH0 |
mbed_official | 86:26fc69fd3b6c | 121 | {PTB13, PWM_8, 2}, // PTB13 , TPM1 CH1 |
mbed_official | 86:26fc69fd3b6c | 122 | {NC , NC, 0} |
mbed_official | 82:0b31dbcd4769 | 123 | }; |