meh
Fork of mbed by
TARGET_KL25Z/objects.h@64:e3affc9e7238, 2013-08-05 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 05 12:28:09 2013 +0300
- Revision:
- 64:e3affc9e7238
- Parent:
- KL25Z/objects.h@60:3d0ef94e36ec
- Child:
- 66:9c8f0e3462fb
New build system structure, new target (LPC1347), bug fixes (I2C read/write errors, LPC11U24 memory map and others)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 60:3d0ef94e36ec | 1 | /* mbed Microcontroller Library |
emilmont | 60:3d0ef94e36ec | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 60:3d0ef94e36ec | 3 | * |
emilmont | 60:3d0ef94e36ec | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
emilmont | 60:3d0ef94e36ec | 5 | * you may not use this file except in compliance with the License. |
emilmont | 60:3d0ef94e36ec | 6 | * You may obtain a copy of the License at |
emilmont | 60:3d0ef94e36ec | 7 | * |
emilmont | 60:3d0ef94e36ec | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
emilmont | 60:3d0ef94e36ec | 9 | * |
emilmont | 60:3d0ef94e36ec | 10 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 60:3d0ef94e36ec | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 60:3d0ef94e36ec | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 60:3d0ef94e36ec | 13 | * See the License for the specific language governing permissions and |
emilmont | 60:3d0ef94e36ec | 14 | * limitations under the License. |
emilmont | 60:3d0ef94e36ec | 15 | */ |
emilmont | 60:3d0ef94e36ec | 16 | #ifndef MBED_OBJECTS_H |
emilmont | 60:3d0ef94e36ec | 17 | #define MBED_OBJECTS_H |
emilmont | 60:3d0ef94e36ec | 18 | |
emilmont | 60:3d0ef94e36ec | 19 | #include "cmsis.h" |
emilmont | 60:3d0ef94e36ec | 20 | #include "PortNames.h" |
emilmont | 60:3d0ef94e36ec | 21 | #include "PeripheralNames.h" |
emilmont | 60:3d0ef94e36ec | 22 | #include "PinNames.h" |
emilmont | 60:3d0ef94e36ec | 23 | |
emilmont | 60:3d0ef94e36ec | 24 | #ifdef __cplusplus |
emilmont | 60:3d0ef94e36ec | 25 | extern "C" { |
emilmont | 60:3d0ef94e36ec | 26 | #endif |
emilmont | 60:3d0ef94e36ec | 27 | |
emilmont | 60:3d0ef94e36ec | 28 | struct gpio_irq_s { |
emilmont | 60:3d0ef94e36ec | 29 | uint32_t port; |
emilmont | 60:3d0ef94e36ec | 30 | uint32_t pin; |
emilmont | 60:3d0ef94e36ec | 31 | uint32_t ch; |
emilmont | 60:3d0ef94e36ec | 32 | }; |
emilmont | 60:3d0ef94e36ec | 33 | |
emilmont | 60:3d0ef94e36ec | 34 | struct port_s { |
emilmont | 60:3d0ef94e36ec | 35 | __IO uint32_t *reg_dir; |
emilmont | 60:3d0ef94e36ec | 36 | __IO uint32_t *reg_out; |
emilmont | 60:3d0ef94e36ec | 37 | __I uint32_t *reg_in; |
emilmont | 60:3d0ef94e36ec | 38 | PortName port; |
emilmont | 60:3d0ef94e36ec | 39 | uint32_t mask; |
emilmont | 60:3d0ef94e36ec | 40 | }; |
emilmont | 60:3d0ef94e36ec | 41 | |
emilmont | 60:3d0ef94e36ec | 42 | struct pwmout_s { |
emilmont | 60:3d0ef94e36ec | 43 | __IO uint32_t *MOD; |
emilmont | 60:3d0ef94e36ec | 44 | __IO uint32_t *CNT; |
emilmont | 60:3d0ef94e36ec | 45 | __IO uint32_t *CnV; |
emilmont | 60:3d0ef94e36ec | 46 | }; |
emilmont | 60:3d0ef94e36ec | 47 | |
emilmont | 60:3d0ef94e36ec | 48 | struct serial_s { |
emilmont | 60:3d0ef94e36ec | 49 | UARTLP_Type *uart; |
emilmont | 60:3d0ef94e36ec | 50 | int index; |
emilmont | 60:3d0ef94e36ec | 51 | }; |
emilmont | 60:3d0ef94e36ec | 52 | |
emilmont | 60:3d0ef94e36ec | 53 | struct analogin_s { |
emilmont | 60:3d0ef94e36ec | 54 | ADCName adc; |
emilmont | 60:3d0ef94e36ec | 55 | }; |
emilmont | 60:3d0ef94e36ec | 56 | |
emilmont | 60:3d0ef94e36ec | 57 | struct dac_s { |
emilmont | 60:3d0ef94e36ec | 58 | DACName dac; |
emilmont | 60:3d0ef94e36ec | 59 | }; |
emilmont | 60:3d0ef94e36ec | 60 | |
emilmont | 60:3d0ef94e36ec | 61 | struct i2c_s { |
emilmont | 60:3d0ef94e36ec | 62 | I2C_Type *i2c; |
emilmont | 60:3d0ef94e36ec | 63 | }; |
emilmont | 60:3d0ef94e36ec | 64 | |
emilmont | 60:3d0ef94e36ec | 65 | struct spi_s { |
emilmont | 60:3d0ef94e36ec | 66 | SPI_Type *spi; |
emilmont | 60:3d0ef94e36ec | 67 | }; |
emilmont | 60:3d0ef94e36ec | 68 | |
emilmont | 60:3d0ef94e36ec | 69 | #include "gpio_object.h" |
emilmont | 60:3d0ef94e36ec | 70 | |
emilmont | 60:3d0ef94e36ec | 71 | #ifdef __cplusplus |
emilmont | 60:3d0ef94e36ec | 72 | } |
emilmont | 60:3d0ef94e36ec | 73 | #endif |
emilmont | 60:3d0ef94e36ec | 74 | |
emilmont | 60:3d0ef94e36ec | 75 | #endif |