ads1115 only
Fork of mbed by
TARGET_LPC11U35_501/objects.h@81:7d30d6019079, 2014-03-19 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Mar 19 18:28:32 2014 +0000
- Revision:
- 81:7d30d6019079
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 |
---|---|---|---|
bogdanm | 81:7d30d6019079 | 1 | /* mbed Microcontroller Library |
bogdanm | 81:7d30d6019079 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 81:7d30d6019079 | 3 | * |
bogdanm | 81:7d30d6019079 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 81:7d30d6019079 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 81:7d30d6019079 | 6 | * You may obtain a copy of the License at |
bogdanm | 81:7d30d6019079 | 7 | * |
bogdanm | 81:7d30d6019079 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 81:7d30d6019079 | 9 | * |
bogdanm | 81:7d30d6019079 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 81:7d30d6019079 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 81:7d30d6019079 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 81:7d30d6019079 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 81:7d30d6019079 | 14 | * limitations under the License. |
bogdanm | 81:7d30d6019079 | 15 | */ |
bogdanm | 81:7d30d6019079 | 16 | #ifndef MBED_OBJECTS_H |
bogdanm | 81:7d30d6019079 | 17 | #define MBED_OBJECTS_H |
bogdanm | 81:7d30d6019079 | 18 | |
bogdanm | 81:7d30d6019079 | 19 | #include "cmsis.h" |
bogdanm | 81:7d30d6019079 | 20 | #include "PortNames.h" |
bogdanm | 81:7d30d6019079 | 21 | #include "PeripheralNames.h" |
bogdanm | 81:7d30d6019079 | 22 | #include "PinNames.h" |
bogdanm | 81:7d30d6019079 | 23 | |
bogdanm | 81:7d30d6019079 | 24 | #ifdef __cplusplus |
bogdanm | 81:7d30d6019079 | 25 | extern "C" { |
bogdanm | 81:7d30d6019079 | 26 | #endif |
bogdanm | 81:7d30d6019079 | 27 | |
bogdanm | 81:7d30d6019079 | 28 | struct gpio_irq_s { |
bogdanm | 81:7d30d6019079 | 29 | uint32_t ch; |
bogdanm | 81:7d30d6019079 | 30 | }; |
bogdanm | 81:7d30d6019079 | 31 | |
bogdanm | 81:7d30d6019079 | 32 | struct port_s { |
bogdanm | 81:7d30d6019079 | 33 | __IO uint32_t *reg_dir; |
bogdanm | 81:7d30d6019079 | 34 | __IO uint32_t *reg_mpin; |
bogdanm | 81:7d30d6019079 | 35 | PortName port; |
bogdanm | 81:7d30d6019079 | 36 | uint32_t mask; |
bogdanm | 81:7d30d6019079 | 37 | }; |
bogdanm | 81:7d30d6019079 | 38 | |
bogdanm | 81:7d30d6019079 | 39 | struct pwmout_s { |
bogdanm | 81:7d30d6019079 | 40 | PWMName pwm; |
bogdanm | 81:7d30d6019079 | 41 | }; |
bogdanm | 81:7d30d6019079 | 42 | |
bogdanm | 81:7d30d6019079 | 43 | struct serial_s { |
bogdanm | 81:7d30d6019079 | 44 | LPC_USART_Type *uart; |
bogdanm | 81:7d30d6019079 | 45 | int index; |
bogdanm | 81:7d30d6019079 | 46 | }; |
bogdanm | 81:7d30d6019079 | 47 | |
bogdanm | 81:7d30d6019079 | 48 | struct analogin_s { |
bogdanm | 81:7d30d6019079 | 49 | ADCName adc; |
bogdanm | 81:7d30d6019079 | 50 | }; |
bogdanm | 81:7d30d6019079 | 51 | |
bogdanm | 81:7d30d6019079 | 52 | struct i2c_s { |
bogdanm | 81:7d30d6019079 | 53 | LPC_I2C_Type *i2c; |
bogdanm | 81:7d30d6019079 | 54 | }; |
bogdanm | 81:7d30d6019079 | 55 | |
bogdanm | 81:7d30d6019079 | 56 | struct spi_s { |
bogdanm | 81:7d30d6019079 | 57 | LPC_SSPx_Type *spi; |
bogdanm | 81:7d30d6019079 | 58 | }; |
bogdanm | 81:7d30d6019079 | 59 | |
bogdanm | 81:7d30d6019079 | 60 | #include "gpio_object.h" |
bogdanm | 81:7d30d6019079 | 61 | |
bogdanm | 81:7d30d6019079 | 62 | #ifdef __cplusplus |
bogdanm | 81:7d30d6019079 | 63 | } |
bogdanm | 81:7d30d6019079 | 64 | #endif |
bogdanm | 81:7d30d6019079 | 65 | |
bogdanm | 81:7d30d6019079 | 66 | #endif |