ads1115 only

Fork of mbed by mbed official

Committer:
kaoshen
Date:
Tue Jan 17 23:27:32 2017 +0000
Revision:
135:fce8a9387ed1
Parent:
102:da0ca467f8b5
333 ADS1115 ADC1

Who changed what in which revision?

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