ads1115 only
Fork of mbed by
TARGET_LPC1549/objects.h@81:7d30d6019079, 2014-03-19 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Mar 19 18:28:32 2014 +0000
- Revision:
- 81:7d30d6019079
- Parent:
- 79:0c05e21ae27e
Release 81 of the mbed library
Main changes:
- Updates and fixes for many targets
- LPC1768: serial interface code fixes
- nRF51822 targets now output a .hex file
- More exporters
- More flexible GPIO API
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 79:0c05e21ae27e | 1 | /* mbed Microcontroller Library |
emilmont | 79:0c05e21ae27e | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 79:0c05e21ae27e | 3 | * |
emilmont | 79:0c05e21ae27e | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
emilmont | 79:0c05e21ae27e | 5 | * you may not use this file except in compliance with the License. |
emilmont | 79:0c05e21ae27e | 6 | * You may obtain a copy of the License at |
emilmont | 79:0c05e21ae27e | 7 | * |
emilmont | 79:0c05e21ae27e | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
emilmont | 79:0c05e21ae27e | 9 | * |
emilmont | 79:0c05e21ae27e | 10 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 79:0c05e21ae27e | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 79:0c05e21ae27e | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 79:0c05e21ae27e | 13 | * See the License for the specific language governing permissions and |
emilmont | 79:0c05e21ae27e | 14 | * limitations under the License. |
emilmont | 79:0c05e21ae27e | 15 | */ |
emilmont | 79:0c05e21ae27e | 16 | #ifndef MBED_OBJECTS_H |
emilmont | 79:0c05e21ae27e | 17 | #define MBED_OBJECTS_H |
emilmont | 79:0c05e21ae27e | 18 | |
emilmont | 79:0c05e21ae27e | 19 | #include "cmsis.h" |
emilmont | 79:0c05e21ae27e | 20 | #include "PortNames.h" |
emilmont | 79:0c05e21ae27e | 21 | #include "PeripheralNames.h" |
emilmont | 79:0c05e21ae27e | 22 | #include "PinNames.h" |
emilmont | 79:0c05e21ae27e | 23 | |
emilmont | 79:0c05e21ae27e | 24 | #ifdef __cplusplus |
emilmont | 79:0c05e21ae27e | 25 | extern "C" { |
emilmont | 79:0c05e21ae27e | 26 | #endif |
emilmont | 79:0c05e21ae27e | 27 | |
emilmont | 79:0c05e21ae27e | 28 | struct gpio_irq_s { |
emilmont | 79:0c05e21ae27e | 29 | uint32_t ch; |
emilmont | 79:0c05e21ae27e | 30 | }; |
emilmont | 79:0c05e21ae27e | 31 | |
bogdanm | 81:7d30d6019079 | 32 | struct pwmout_s { |
bogdanm | 81:7d30d6019079 | 33 | LPC_SCT0_Type* pwm; |
bogdanm | 81:7d30d6019079 | 34 | uint32_t pwm_ch; |
bogdanm | 81:7d30d6019079 | 35 | }; |
bogdanm | 81:7d30d6019079 | 36 | |
emilmont | 79:0c05e21ae27e | 37 | struct serial_s { |
emilmont | 79:0c05e21ae27e | 38 | LPC_USART0_Type *uart; |
emilmont | 79:0c05e21ae27e | 39 | unsigned char index; |
emilmont | 79:0c05e21ae27e | 40 | }; |
emilmont | 79:0c05e21ae27e | 41 | |
emilmont | 79:0c05e21ae27e | 42 | struct analogin_s { |
emilmont | 79:0c05e21ae27e | 43 | ADCName adc; |
emilmont | 79:0c05e21ae27e | 44 | }; |
emilmont | 79:0c05e21ae27e | 45 | |
bogdanm | 81:7d30d6019079 | 46 | struct dac_s { |
bogdanm | 81:7d30d6019079 | 47 | DACName dac; |
bogdanm | 81:7d30d6019079 | 48 | }; |
bogdanm | 81:7d30d6019079 | 49 | |
emilmont | 79:0c05e21ae27e | 50 | struct i2c_s { |
emilmont | 79:0c05e21ae27e | 51 | LPC_I2C0_Type *i2c; |
emilmont | 79:0c05e21ae27e | 52 | }; |
emilmont | 79:0c05e21ae27e | 53 | |
emilmont | 79:0c05e21ae27e | 54 | struct spi_s { |
emilmont | 79:0c05e21ae27e | 55 | LPC_SPI0_Type *spi; |
emilmont | 79:0c05e21ae27e | 56 | unsigned char spi_n; |
emilmont | 79:0c05e21ae27e | 57 | }; |
emilmont | 79:0c05e21ae27e | 58 | |
emilmont | 79:0c05e21ae27e | 59 | #include "gpio_object.h" |
emilmont | 79:0c05e21ae27e | 60 | |
emilmont | 79:0c05e21ae27e | 61 | #ifdef __cplusplus |
emilmont | 79:0c05e21ae27e | 62 | } |
emilmont | 79:0c05e21ae27e | 63 | #endif |
emilmont | 79:0c05e21ae27e | 64 | |
emilmont | 79:0c05e21ae27e | 65 | #endif |