version_2.0

Dependents:   cc3000_ping_demo_try_2

Fork of mbed by mbed official

Committer:
emilmont
Date:
Wed Apr 17 15:30:58 2013 +0100
Revision:
62:7e6c9f46b3bd
Add NXP LPC812
[KL25Z] Use channel 0 as a prescaler for channel 1
[CodeSourcery] Fix standard library retargeting removing duplicate "_isatty"
Move parse_pins in RPC module

Who changed what in which revision?

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