ble

Dependencies:   HC_SR04_Ultrasonic_Library Servo mbed

Fork of FIP_REV1 by Robotique FIP

Committer:
julientiron
Date:
Thu Jul 09 13:33:36 2015 +0000
Revision:
4:69a35a56ac48
Parent:
0:3d641e170a74
BLE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
julientiron 0:3d641e170a74 1 /******************** (C) COPYRIGHT 2012 STMicroelectronics ********************
julientiron 0:3d641e170a74 2 * File Name : osal.h
julientiron 0:3d641e170a74 3 * Author : AMS - HEA&RF BU
julientiron 0:3d641e170a74 4 * Version : V1.0.0
julientiron 0:3d641e170a74 5 * Date : 19-July-2012
julientiron 0:3d641e170a74 6 * Description : This header file defines the OS abstraction layer used by
julientiron 0:3d641e170a74 7 * the BLE stack. OSAL defines the set of functions
julientiron 0:3d641e170a74 8 * which needs to be ported to target operating system and
julientiron 0:3d641e170a74 9 * target platform.
julientiron 0:3d641e170a74 10 ********************************************************************************
julientiron 0:3d641e170a74 11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
julientiron 0:3d641e170a74 12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
julientiron 0:3d641e170a74 13 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
julientiron 0:3d641e170a74 14 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
julientiron 0:3d641e170a74 15 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
julientiron 0:3d641e170a74 16 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
julientiron 0:3d641e170a74 17 *******************************************************************************/
julientiron 0:3d641e170a74 18
julientiron 0:3d641e170a74 19 #ifndef __OSAL_H__
julientiron 0:3d641e170a74 20 #define __OSAL_H__
julientiron 0:3d641e170a74 21
julientiron 0:3d641e170a74 22 /******************************************************************************
julientiron 0:3d641e170a74 23 * Includes
julientiron 0:3d641e170a74 24 *****************************************************************************/
julientiron 0:3d641e170a74 25 #include <hal_types.h>
julientiron 0:3d641e170a74 26 #ifdef __ICCARM__
julientiron 0:3d641e170a74 27 #include <intrinsics.h>
julientiron 0:3d641e170a74 28 #endif
julientiron 0:3d641e170a74 29
julientiron 0:3d641e170a74 30 /******************************************************************************
julientiron 0:3d641e170a74 31 * Macros
julientiron 0:3d641e170a74 32 *****************************************************************************/
julientiron 0:3d641e170a74 33
julientiron 0:3d641e170a74 34
julientiron 0:3d641e170a74 35 /******************************************************************************
julientiron 0:3d641e170a74 36 * Function Prototypes
julientiron 0:3d641e170a74 37 *****************************************************************************/
julientiron 0:3d641e170a74 38
julientiron 0:3d641e170a74 39 /**
julientiron 0:3d641e170a74 40 * This function copies size number of bytes from a
julientiron 0:3d641e170a74 41 * memory location pointed by src to a destination
julientiron 0:3d641e170a74 42 * memory location pointed by dest
julientiron 0:3d641e170a74 43 *
julientiron 0:3d641e170a74 44 * @param[in] dest Destination address
julientiron 0:3d641e170a74 45 * @param[in] src Source address
julientiron 0:3d641e170a74 46 * @param[in] size size in the bytes
julientiron 0:3d641e170a74 47 *
julientiron 0:3d641e170a74 48 * @return Address of the destination
julientiron 0:3d641e170a74 49 */
julientiron 0:3d641e170a74 50
julientiron 0:3d641e170a74 51 extern void* Osal_MemCpy(void *dest,const void *src,tHalUint size);
julientiron 0:3d641e170a74 52
julientiron 0:3d641e170a74 53
julientiron 0:3d641e170a74 54 /**
julientiron 0:3d641e170a74 55 * This function sets first number of bytes, specified
julientiron 0:3d641e170a74 56 * by size, to the destination memory pointed by ptr
julientiron 0:3d641e170a74 57 * to the specified value
julientiron 0:3d641e170a74 58 *
julientiron 0:3d641e170a74 59 * @param[in] ptr Destination address
julientiron 0:3d641e170a74 60 * @param[in] value Value to be set
julientiron 0:3d641e170a74 61 * @param[in] size Size in the bytes
julientiron 0:3d641e170a74 62 *
julientiron 0:3d641e170a74 63 * @return Address of the destination
julientiron 0:3d641e170a74 64 */
julientiron 0:3d641e170a74 65
julientiron 0:3d641e170a74 66 extern void* Osal_MemSet(void *ptr, tHalInt value,tHalUint size);
julientiron 0:3d641e170a74 67
julientiron 0:3d641e170a74 68
julientiron 0:3d641e170a74 69 #endif /* __OSAL_H__ */