[stm32] more platform support

This commit is contained in:
Travis Geiselbrecht
2012-03-17 17:33:26 -07:00
parent d09b83ceef
commit a753bbdd64
3 changed files with 44 additions and 0 deletions

34
platform/stm32f1xx/init.c Normal file
View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 2012 Travis Geiselbrecht
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <err.h>
#include <debug.h>
#include <platform.h>
void platform_early_init(void)
{
}
void platform_init(void)
{
}

View File

@@ -18,6 +18,7 @@ INCLUDES += \
-I$(LOCAL_DIR)/include
OBJS += \
$(LOCAL_DIR)/init.o \
$(LOCAL_DIR)/debug.o \
$(LOCAL_DIR)/timer.o \

View File

@@ -20,16 +20,25 @@
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <debug.h>
#include <sys/types.h>
#include <platform.h>
#include <platform/timer.h>
time_t current_time(void)
{
PANIC_UNIMPLEMENTED;
return 0;
}
bigtime_t current_time_hires(void)
{
PANIC_UNIMPLEMENTED;
return 0;
}
status_t platform_set_periodic_timer(platform_timer_callback callback, void *arg, time_t interval)
{
PANIC_UNIMPLEMENTED;
}