ads1115 only
Fork of mbed by
TARGET_LPC812/objects.h@65:5798e58a58b1, 2013-08-12 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 12 13:17:46 2013 +0300
- Revision:
- 65:5798e58a58b1
- Parent:
- 64:e3affc9e7238
- Child:
- 66:9c8f0e3462fb
New target (LPC4088), new features (interrupt chaining), bug fixes (KL25Z I2C).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 62:7e6c9f46b3bd | 1 | /* mbed Microcontroller Library |
emilmont | 62:7e6c9f46b3bd | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 62:7e6c9f46b3bd | 3 | * |
emilmont | 62:7e6c9f46b3bd | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
emilmont | 62:7e6c9f46b3bd | 5 | * you may not use this file except in compliance with the License. |
emilmont | 62:7e6c9f46b3bd | 6 | * You may obtain a copy of the License at |
emilmont | 62:7e6c9f46b3bd | 7 | * |
emilmont | 62:7e6c9f46b3bd | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
emilmont | 62:7e6c9f46b3bd | 9 | * |
emilmont | 62:7e6c9f46b3bd | 10 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 62:7e6c9f46b3bd | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 62:7e6c9f46b3bd | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 62:7e6c9f46b3bd | 13 | * See the License for the specific language governing permissions and |
emilmont | 62:7e6c9f46b3bd | 14 | * limitations under the License. |
emilmont | 62:7e6c9f46b3bd | 15 | */ |
emilmont | 62:7e6c9f46b3bd | 16 | #ifndef MBED_OBJECTS_H |
emilmont | 62:7e6c9f46b3bd | 17 | #define MBED_OBJECTS_H |
emilmont | 62:7e6c9f46b3bd | 18 | |
emilmont | 62:7e6c9f46b3bd | 19 | #include "cmsis.h" |
emilmont | 62:7e6c9f46b3bd | 20 | #include "PortNames.h" |
emilmont | 62:7e6c9f46b3bd | 21 | #include "PeripheralNames.h" |
emilmont | 62:7e6c9f46b3bd | 22 | #include "PinNames.h" |
emilmont | 62:7e6c9f46b3bd | 23 | |
emilmont | 62:7e6c9f46b3bd | 24 | #ifdef __cplusplus |
emilmont | 62:7e6c9f46b3bd | 25 | extern "C" { |
emilmont | 62:7e6c9f46b3bd | 26 | #endif |
emilmont | 62:7e6c9f46b3bd | 27 | |
emilmont | 62:7e6c9f46b3bd | 28 | struct gpio_irq_s { |
emilmont | 62:7e6c9f46b3bd | 29 | uint32_t ch; |
emilmont | 62:7e6c9f46b3bd | 30 | }; |
emilmont | 62:7e6c9f46b3bd | 31 | |
emilmont | 62:7e6c9f46b3bd | 32 | struct serial_s { |
emilmont | 62:7e6c9f46b3bd | 33 | LPC_USART_TypeDef *uart; |
emilmont | 62:7e6c9f46b3bd | 34 | unsigned char index; |
emilmont | 62:7e6c9f46b3bd | 35 | }; |
emilmont | 62:7e6c9f46b3bd | 36 | |
emilmont | 62:7e6c9f46b3bd | 37 | struct i2c_s { |
emilmont | 62:7e6c9f46b3bd | 38 | LPC_I2C_TypeDef *i2c; |
bogdanm | 65:5798e58a58b1 | 39 | }; |
bogdanm | 65:5798e58a58b1 | 40 | |
bogdanm | 65:5798e58a58b1 | 41 | struct spi_s { |
bogdanm | 65:5798e58a58b1 | 42 | LPC_SPI_TypeDef *spi; |
bogdanm | 65:5798e58a58b1 | 43 | unsigned char spi_n; |
emilmont | 62:7e6c9f46b3bd | 44 | }; |
emilmont | 62:7e6c9f46b3bd | 45 | |
emilmont | 62:7e6c9f46b3bd | 46 | #include "gpio_object.h" |
emilmont | 62:7e6c9f46b3bd | 47 | |
emilmont | 62:7e6c9f46b3bd | 48 | #ifdef __cplusplus |
emilmont | 62:7e6c9f46b3bd | 49 | } |
emilmont | 62:7e6c9f46b3bd | 50 | #endif |
emilmont | 62:7e6c9f46b3bd | 51 | |
emilmont | 62:7e6c9f46b3bd | 52 | #endif |