fix nrf51822 i2c & spi conflict
Dependencies: BLE_API eMPL_MPU6050 nRF51822
Fork of Seeed_Tiny_BLE_Flash by
mbed-src/hal/buffer.h@5:b8c02645e6af, 2015-11-17 (annotated)
- Committer:
- yihui
- Date:
- Tue Nov 17 07:48:56 2015 +0000
- Revision:
- 5:b8c02645e6af
fix i2c & spi conflict
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 5:b8c02645e6af | 1 | /* mbed Microcontroller Library |
yihui | 5:b8c02645e6af | 2 | * Copyright (c) 2014-2015 ARM Limited |
yihui | 5:b8c02645e6af | 3 | * |
yihui | 5:b8c02645e6af | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
yihui | 5:b8c02645e6af | 5 | * you may not use this file except in compliance with the License. |
yihui | 5:b8c02645e6af | 6 | * You may obtain a copy of the License at |
yihui | 5:b8c02645e6af | 7 | * |
yihui | 5:b8c02645e6af | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
yihui | 5:b8c02645e6af | 9 | * |
yihui | 5:b8c02645e6af | 10 | * Unless required by applicable law or agreed to in writing, software |
yihui | 5:b8c02645e6af | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
yihui | 5:b8c02645e6af | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
yihui | 5:b8c02645e6af | 13 | * See the License for the specific language governing permissions and |
yihui | 5:b8c02645e6af | 14 | * limitations under the License. |
yihui | 5:b8c02645e6af | 15 | */ |
yihui | 5:b8c02645e6af | 16 | #ifndef MBED_BUFFER_H |
yihui | 5:b8c02645e6af | 17 | #define MBED_BUFFER_H |
yihui | 5:b8c02645e6af | 18 | |
yihui | 5:b8c02645e6af | 19 | #include <stddef.h> |
yihui | 5:b8c02645e6af | 20 | |
yihui | 5:b8c02645e6af | 21 | /** Generic buffer structure |
yihui | 5:b8c02645e6af | 22 | */ |
yihui | 5:b8c02645e6af | 23 | typedef struct buffer_s { |
yihui | 5:b8c02645e6af | 24 | void *buffer; /**< the pointer to a buffer */ |
yihui | 5:b8c02645e6af | 25 | size_t length; /**< the buffer length */ |
yihui | 5:b8c02645e6af | 26 | size_t pos; /**< actual buffer position */ |
yihui | 5:b8c02645e6af | 27 | uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ |
yihui | 5:b8c02645e6af | 28 | } buffer_t; |
yihui | 5:b8c02645e6af | 29 | |
yihui | 5:b8c02645e6af | 30 | #endif |