mbed OS5

Fork of UIPEthernet by Zoltan Hudak

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers clock-arch.c Source File

clock-arch.c

00001 /*
00002  clock-arch.c - mbed implementation of UIP clock device.
00003  Copyright (c) 2010 Adam Nielsen <malvineous@shikadi.net>
00004  All rights reserved.
00005 
00006  Modified (ported to mbed) by Zoltan Hudak <hudakz@inbox.com>
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  Lesser General Public License for more details.
00017 
00018  You should have received a copy of the GNU Lesser General Public
00019  License along with this library; if not, write to the Free Software
00020  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022 #include <time.h>
00023 #include "clock-arch.h"
00024 
00025 /**
00026  * @brief
00027  * @note
00028  * @param
00029  * @retval
00030  */
00031 clock_time_t clock_time(void) {
00032     return(clock_time_t) time(NULL);
00033 }