ble
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
BlueNRG_F4_BSP/src/osal.c@4:69a35a56ac48, 2015-07-09 (annotated)
- Committer:
- julientiron
- Date:
- Thu Jul 09 13:33:36 2015 +0000
- Revision:
- 4:69a35a56ac48
- Parent:
- 0:3d641e170a74
BLE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
julientiron | 0:3d641e170a74 | 1 | /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** |
julientiron | 0:3d641e170a74 | 2 | * File Name : osal.c |
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 : Implementation of OS abstraction layer functions used by |
julientiron | 0:3d641e170a74 | 7 | * the library. |
julientiron | 0:3d641e170a74 | 8 | ******************************************************************************** |
julientiron | 0:3d641e170a74 | 9 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
julientiron | 0:3d641e170a74 | 10 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
julientiron | 0:3d641e170a74 | 11 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
julientiron | 0:3d641e170a74 | 12 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
julientiron | 0:3d641e170a74 | 13 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
julientiron | 0:3d641e170a74 | 14 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
julientiron | 0:3d641e170a74 | 15 | *******************************************************************************/ |
julientiron | 0:3d641e170a74 | 16 | |
julientiron | 0:3d641e170a74 | 17 | /****************************************************************************** |
julientiron | 0:3d641e170a74 | 18 | * Includes |
julientiron | 0:3d641e170a74 | 19 | *****************************************************************************/ |
julientiron | 0:3d641e170a74 | 20 | #include <string.h> |
julientiron | 0:3d641e170a74 | 21 | #include <osal.h> |
julientiron | 0:3d641e170a74 | 22 | |
julientiron | 0:3d641e170a74 | 23 | /** |
julientiron | 0:3d641e170a74 | 24 | * Osal_MemCpy |
julientiron | 0:3d641e170a74 | 25 | * |
julientiron | 0:3d641e170a74 | 26 | */ |
julientiron | 0:3d641e170a74 | 27 | |
julientiron | 0:3d641e170a74 | 28 | void* Osal_MemCpy(void *dest,const void *src,tHalUint size) |
julientiron | 0:3d641e170a74 | 29 | { |
julientiron | 0:3d641e170a74 | 30 | return(memcpy(dest,src,size)); |
julientiron | 0:3d641e170a74 | 31 | } |
julientiron | 0:3d641e170a74 | 32 | |
julientiron | 0:3d641e170a74 | 33 | /** |
julientiron | 0:3d641e170a74 | 34 | * Osal_MemSet |
julientiron | 0:3d641e170a74 | 35 | * |
julientiron | 0:3d641e170a74 | 36 | */ |
julientiron | 0:3d641e170a74 | 37 | |
julientiron | 0:3d641e170a74 | 38 | void* Osal_MemSet(void *ptr, tHalInt value,tHalUint size) |
julientiron | 0:3d641e170a74 | 39 | { |
julientiron | 0:3d641e170a74 | 40 | return(memset(ptr,value,size)); |
julientiron | 0:3d641e170a74 | 41 | } |
julientiron | 0:3d641e170a74 | 42 | |
julientiron | 0:3d641e170a74 | 43 | /****************************************************************************** |
julientiron | 0:3d641e170a74 | 44 | * local Functions |
julientiron | 0:3d641e170a74 | 45 | *****************************************************************************/ |