added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h@121:7f86b4238bec, 2016-05-03 (annotated)
- Committer:
- mbed_official
- Date:
- Tue May 03 00:15:16 2016 +0100
- Revision:
- 121:7f86b4238bec
- Child:
- 144:ef7eb2e8f9f7
Synchronized with git revision 9cef243de23875778f461bbe9a8c1bc47e65212b
Full URL: https://github.com/mbedmicro/mbed/commit/9cef243de23875778f461bbe9a8c1bc47e65212b/
Switch to KSDK 2.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 121:7f86b4238bec | 1 | /* mbed Microcontroller Library |
mbed_official | 121:7f86b4238bec | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 121:7f86b4238bec | 3 | * |
mbed_official | 121:7f86b4238bec | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 121:7f86b4238bec | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 121:7f86b4238bec | 6 | * You may obtain a copy of the License at |
mbed_official | 121:7f86b4238bec | 7 | * |
mbed_official | 121:7f86b4238bec | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 121:7f86b4238bec | 9 | * |
mbed_official | 121:7f86b4238bec | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 121:7f86b4238bec | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 121:7f86b4238bec | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 121:7f86b4238bec | 13 | * See the License for the specific language governing permissions and |
mbed_official | 121:7f86b4238bec | 14 | * limitations under the License. |
mbed_official | 121:7f86b4238bec | 15 | */ |
mbed_official | 121:7f86b4238bec | 16 | #ifndef MBED_OBJECTS_H |
mbed_official | 121:7f86b4238bec | 17 | #define MBED_OBJECTS_H |
mbed_official | 121:7f86b4238bec | 18 | |
mbed_official | 121:7f86b4238bec | 19 | #include "cmsis.h" |
mbed_official | 121:7f86b4238bec | 20 | #include "PortNames.h" |
mbed_official | 121:7f86b4238bec | 21 | #include "PeripheralNames.h" |
mbed_official | 121:7f86b4238bec | 22 | #include "PinNames.h" |
mbed_official | 121:7f86b4238bec | 23 | |
mbed_official | 121:7f86b4238bec | 24 | #ifdef __cplusplus |
mbed_official | 121:7f86b4238bec | 25 | extern "C" { |
mbed_official | 121:7f86b4238bec | 26 | #endif |
mbed_official | 121:7f86b4238bec | 27 | |
mbed_official | 121:7f86b4238bec | 28 | struct gpio_irq_s { |
mbed_official | 121:7f86b4238bec | 29 | uint32_t port; |
mbed_official | 121:7f86b4238bec | 30 | uint32_t pin; |
mbed_official | 121:7f86b4238bec | 31 | uint32_t ch; |
mbed_official | 121:7f86b4238bec | 32 | }; |
mbed_official | 121:7f86b4238bec | 33 | |
mbed_official | 121:7f86b4238bec | 34 | struct port_s { |
mbed_official | 121:7f86b4238bec | 35 | PortName port; |
mbed_official | 121:7f86b4238bec | 36 | uint32_t mask; |
mbed_official | 121:7f86b4238bec | 37 | }; |
mbed_official | 121:7f86b4238bec | 38 | |
mbed_official | 121:7f86b4238bec | 39 | struct pwmout_s { |
mbed_official | 121:7f86b4238bec | 40 | PWMName pwm_name; |
mbed_official | 121:7f86b4238bec | 41 | }; |
mbed_official | 121:7f86b4238bec | 42 | |
mbed_official | 121:7f86b4238bec | 43 | struct serial_s { |
mbed_official | 121:7f86b4238bec | 44 | int index; |
mbed_official | 121:7f86b4238bec | 45 | }; |
mbed_official | 121:7f86b4238bec | 46 | |
mbed_official | 121:7f86b4238bec | 47 | struct analogin_s { |
mbed_official | 121:7f86b4238bec | 48 | ADCName adc; |
mbed_official | 121:7f86b4238bec | 49 | }; |
mbed_official | 121:7f86b4238bec | 50 | |
mbed_official | 121:7f86b4238bec | 51 | struct i2c_s { |
mbed_official | 121:7f86b4238bec | 52 | uint32_t instance; |
mbed_official | 121:7f86b4238bec | 53 | }; |
mbed_official | 121:7f86b4238bec | 54 | |
mbed_official | 121:7f86b4238bec | 55 | struct spi_s { |
mbed_official | 121:7f86b4238bec | 56 | uint32_t instance; |
mbed_official | 121:7f86b4238bec | 57 | }; |
mbed_official | 121:7f86b4238bec | 58 | |
mbed_official | 121:7f86b4238bec | 59 | struct dac_s { |
mbed_official | 121:7f86b4238bec | 60 | DACName dac; |
mbed_official | 121:7f86b4238bec | 61 | }; |
mbed_official | 121:7f86b4238bec | 62 | |
mbed_official | 121:7f86b4238bec | 63 | #include "gpio_object.h" |
mbed_official | 121:7f86b4238bec | 64 | |
mbed_official | 121:7f86b4238bec | 65 | #ifdef __cplusplus |
mbed_official | 121:7f86b4238bec | 66 | } |
mbed_official | 121:7f86b4238bec | 67 | #endif |
mbed_official | 121:7f86b4238bec | 68 | |
mbed_official | 121:7f86b4238bec | 69 | #endif |