Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
osal.c
00001 /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** 00002 * File Name : osal.c 00003 * Author : AMS - HEA&RF BU 00004 * Version : V1.0.0 00005 * Date : 19-July-2012 00006 * Description : Implementation of OS abstraction layer functions used by 00007 * the library. 00008 ******************************************************************************** 00009 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00010 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00011 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00012 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00013 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00014 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00015 *******************************************************************************/ 00016 00017 /****************************************************************************** 00018 * Includes 00019 *****************************************************************************/ 00020 #include <string.h> 00021 #include <osal.h> 00022 00023 /** 00024 * Osal_MemCpy 00025 * 00026 */ 00027 00028 void* Osal_MemCpy(void *dest,const void *src,tHalUint size) 00029 { 00030 return(memcpy(dest,src,size)); 00031 } 00032 00033 /** 00034 * Osal_MemSet 00035 * 00036 */ 00037 00038 void* Osal_MemSet(void *ptr, tHalInt value,tHalUint size) 00039 { 00040 return(memset(ptr,value,size)); 00041 } 00042 00043 /****************************************************************************** 00044 * local Functions 00045 *****************************************************************************/
Generated on Tue Jul 12 2022 21:42:00 by
