00001 /*############################################################################## 00002 00003 nIP - nano IP stack 00004 00005 File : os_core.c 00006 00007 Description : Functions to handle usual operating system calls 00008 00009 Copyright notice: 00010 00011 Copyright (C) 2005 - 00012 Andreas Dittrich, dittrich@informatik.hu-berlin.de 00013 Jon Kowal, kowal@informatik.hu-berlin.de 00014 00015 This program is free software; you can redistribute it and/or 00016 modify it under the terms of the GNU General Public License 00017 as published by the Free Software Foundation; either version 2 00018 of the License, or (at your option) any later version. 00019 00020 This program is distributed in the hope that it will be useful, 00021 but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 GNU General Public License for more details. 00024 00025 You should have received a copy of the GNU General Public License 00026 along with this program; if not, write to the Free Software 00027 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00028 00029 #############################################################################*/ 00030 00031 #include "nip_types.h" 00032 #include "os_core.h" 00033 00034 // time from user program 00035 extern uint32_t cur_time; 00036 00037 00038 // nip_time_t nip_time( ) 00039 // { 00040 // return cur_time; 00041 // } 00042 00043 void nip_memcpy( void* dest, void* src, uint16_t size) 00044 { 00045 while ( size-- > 0 ) 00046 { 00047 ((uint8_t*)dest)[size] = ((uint8_t *)src)[size]; 00048 } 00049 } 00050 00051 // void nip_memset( void* ptr, uint8_t c, uint16_t size ) 00052 // { 00053 // while( size-- > 0 ) 00054 // { 00055 // ((uint8_t*)ptr)[size] = c; 00056 // } 00057 // }