Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Seeed_Barometer_Sensor_Example
Fork of mbed-src by
targets/hal/TARGET_Freescale/TARGET_KL46Z/PeripheralNames.h@81:a9456fdf72fa, 2014-01-31 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jan 31 09:00:05 2014 +0000
- Revision:
- 81:a9456fdf72fa
- Parent:
- 31:42176bc3c368
Synchronized with git revision 2a782f50677ef823f25764c76cfed1bec98740be
Full URL: https://github.com/mbedmicro/mbed/commit/2a782f50677ef823f25764c76cfed1bec98740be/
Remove unnecessary semicolons.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 31:42176bc3c368 | 1 | /* mbed Microcontroller Library |
| mbed_official | 31:42176bc3c368 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| mbed_official | 31:42176bc3c368 | 3 | * |
| mbed_official | 31:42176bc3c368 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| mbed_official | 31:42176bc3c368 | 5 | * you may not use this file except in compliance with the License. |
| mbed_official | 31:42176bc3c368 | 6 | * You may obtain a copy of the License at |
| mbed_official | 31:42176bc3c368 | 7 | * |
| mbed_official | 31:42176bc3c368 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| mbed_official | 31:42176bc3c368 | 9 | * |
| mbed_official | 31:42176bc3c368 | 10 | * Unless required by applicable law or agreed to in writing, software |
| mbed_official | 31:42176bc3c368 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| mbed_official | 31:42176bc3c368 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| mbed_official | 31:42176bc3c368 | 13 | * See the License for the specific language governing permissions and |
| mbed_official | 31:42176bc3c368 | 14 | * limitations under the License. |
| mbed_official | 31:42176bc3c368 | 15 | */ |
| mbed_official | 31:42176bc3c368 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
| mbed_official | 31:42176bc3c368 | 17 | #define MBED_PERIPHERALNAMES_H |
| mbed_official | 31:42176bc3c368 | 18 | |
| mbed_official | 31:42176bc3c368 | 19 | #include "cmsis.h" |
| mbed_official | 31:42176bc3c368 | 20 | |
| mbed_official | 31:42176bc3c368 | 21 | #ifdef __cplusplus |
| mbed_official | 31:42176bc3c368 | 22 | extern "C" { |
| mbed_official | 31:42176bc3c368 | 23 | #endif |
| mbed_official | 31:42176bc3c368 | 24 | |
| mbed_official | 31:42176bc3c368 | 25 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 26 | UART_0 = (int)UART0_BASE, |
| mbed_official | 31:42176bc3c368 | 27 | UART_1 = (int)UART1_BASE, |
| mbed_official | 31:42176bc3c368 | 28 | UART_2 = (int)UART2_BASE |
| mbed_official | 31:42176bc3c368 | 29 | } UARTName; |
| mbed_official | 31:42176bc3c368 | 30 | #define STDIO_UART_TX USBTX |
| mbed_official | 31:42176bc3c368 | 31 | #define STDIO_UART_RX USBRX |
| mbed_official | 31:42176bc3c368 | 32 | #define STDIO_UART UART_0 |
| mbed_official | 31:42176bc3c368 | 33 | |
| mbed_official | 31:42176bc3c368 | 34 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 35 | I2C_0 = (int)I2C0_BASE, |
| mbed_official | 31:42176bc3c368 | 36 | I2C_1 = (int)I2C1_BASE, |
| mbed_official | 31:42176bc3c368 | 37 | } I2CName; |
| mbed_official | 31:42176bc3c368 | 38 | |
| mbed_official | 31:42176bc3c368 | 39 | #define TPM_SHIFT 8 |
| mbed_official | 31:42176bc3c368 | 40 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 41 | PWM_1 = (0 << TPM_SHIFT) | (0), // TPM0 CH0 |
| mbed_official | 31:42176bc3c368 | 42 | PWM_2 = (0 << TPM_SHIFT) | (1), // TPM0 CH1 |
| mbed_official | 31:42176bc3c368 | 43 | PWM_3 = (0 << TPM_SHIFT) | (2), // TPM0 CH2 |
| mbed_official | 31:42176bc3c368 | 44 | PWM_4 = (0 << TPM_SHIFT) | (3), // TPM0 CH3 |
| mbed_official | 31:42176bc3c368 | 45 | PWM_5 = (0 << TPM_SHIFT) | (4), // TPM0 CH4 |
| mbed_official | 31:42176bc3c368 | 46 | PWM_6 = (0 << TPM_SHIFT) | (5), // TPM0 CH5 |
| mbed_official | 31:42176bc3c368 | 47 | |
| mbed_official | 31:42176bc3c368 | 48 | PWM_7 = (1 << TPM_SHIFT) | (0), // TPM1 CH0 |
| mbed_official | 31:42176bc3c368 | 49 | PWM_8 = (1 << TPM_SHIFT) | (1), // TPM1 CH1 |
| mbed_official | 31:42176bc3c368 | 50 | |
| mbed_official | 31:42176bc3c368 | 51 | PWM_9 = (2 << TPM_SHIFT) | (0), // TPM2 CH0 |
| mbed_official | 31:42176bc3c368 | 52 | PWM_10 = (2 << TPM_SHIFT) | (1) // TPM2 CH1 |
| mbed_official | 31:42176bc3c368 | 53 | } PWMName; |
| mbed_official | 31:42176bc3c368 | 54 | |
| mbed_official | 31:42176bc3c368 | 55 | #define CHANNELS_A_SHIFT 5 |
| mbed_official | 31:42176bc3c368 | 56 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 57 | ADC0_SE0 = 0, |
| mbed_official | 31:42176bc3c368 | 58 | ADC0_SE3 = 3, |
| mbed_official | 31:42176bc3c368 | 59 | ADC0_SE4a = (1 << CHANNELS_A_SHIFT) | (4), |
| mbed_official | 31:42176bc3c368 | 60 | ADC0_SE4b = 4, |
| mbed_official | 31:42176bc3c368 | 61 | ADC0_SE5b = 5, |
| mbed_official | 31:42176bc3c368 | 62 | ADC0_SE6b = 6, |
| mbed_official | 31:42176bc3c368 | 63 | ADC0_SE7a = (1 << CHANNELS_A_SHIFT) | (7), |
| mbed_official | 31:42176bc3c368 | 64 | ADC0_SE7b = 7, |
| mbed_official | 31:42176bc3c368 | 65 | ADC0_SE8 = 8, |
| mbed_official | 31:42176bc3c368 | 66 | ADC0_SE9 = 9, |
| mbed_official | 31:42176bc3c368 | 67 | ADC0_SE11 = 11, |
| mbed_official | 31:42176bc3c368 | 68 | ADC0_SE12 = 12, |
| mbed_official | 31:42176bc3c368 | 69 | ADC0_SE13 = 13, |
| mbed_official | 31:42176bc3c368 | 70 | ADC0_SE14 = 14, |
| mbed_official | 31:42176bc3c368 | 71 | ADC0_SE15 = 15, |
| mbed_official | 31:42176bc3c368 | 72 | ADC0_SE23 = 23 |
| mbed_official | 31:42176bc3c368 | 73 | } ADCName; |
| mbed_official | 31:42176bc3c368 | 74 | |
| mbed_official | 31:42176bc3c368 | 75 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 76 | DAC_0 = 0 |
| mbed_official | 31:42176bc3c368 | 77 | } DACName; |
| mbed_official | 31:42176bc3c368 | 78 | |
| mbed_official | 31:42176bc3c368 | 79 | |
| mbed_official | 31:42176bc3c368 | 80 | typedef enum { |
| mbed_official | 31:42176bc3c368 | 81 | SPI_0 = (int)SPI0_BASE, |
| mbed_official | 31:42176bc3c368 | 82 | SPI_1 = (int)SPI1_BASE, |
| mbed_official | 31:42176bc3c368 | 83 | } SPIName; |
| mbed_official | 31:42176bc3c368 | 84 | |
| mbed_official | 31:42176bc3c368 | 85 | #ifdef __cplusplus |
| mbed_official | 31:42176bc3c368 | 86 | } |
| mbed_official | 31:42176bc3c368 | 87 | #endif |
| mbed_official | 31:42176bc3c368 | 88 | |
| mbed_official | 31:42176bc3c368 | 89 | #endif |
