mbed library

Dependents:   Printf

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Aug 05 12:28:09 2013 +0300
Revision:
64:e3affc9e7238
Child:
66:9c8f0e3462fb
New build system structure, new target (LPC1347), bug fixes (I2C read/write errors, LPC11U24 memory map and others)

Who changed what in which revision?

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