mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Sep 11 09:30:09 2015 +0100
Revision:
621:9c82b0f79f3d
Parent:
574:8e5b2476066a
Synchronized with git revision 6c1d63e069ab9bd86de92e8296ca783681257538

Full URL: https://github.com/mbedmicro/mbed/commit/6c1d63e069ab9bd86de92e8296ca783681257538/

ignore target files not supported by the yotta module

Who changed what in which revision?

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