temp

Dependencies:   mbed SDFileSystem MS5607 ADXL345_I2C FATFileSystem

Committer:
IKobayashi
Date:
Mon Mar 16 23:37:42 2020 +0900
Revision:
0:c88c3b616c00
copy

Who changed what in which revision?

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