From 5eaef67b02cd9a7027f4b33fbe4c4962498ffab6 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Thu, 3 Dec 2009 23:56:23 -0800 Subject: [PATCH] get the sam7ex256 platform building again --- platform/at91sam7/debug.c | 6 ++++++ platform/at91sam7/timer.c | 5 +++++ scripts/do-sam7ex256-test | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/platform/at91sam7/debug.c b/platform/at91sam7/debug.c index 24a0d85..5520a21 100644 --- a/platform/at91sam7/debug.c +++ b/platform/at91sam7/debug.c @@ -64,6 +64,12 @@ void ser_puts(const char *s) } } +int dgetc(char *c, bool wait) +{ + return -1; +} + + void _dputc(char c) { ser_putc(c); diff --git a/platform/at91sam7/timer.c b/platform/at91sam7/timer.c index be65e9c..8e2c6e3 100644 --- a/platform/at91sam7/timer.c +++ b/platform/at91sam7/timer.c @@ -48,6 +48,11 @@ time_t current_time(void) return ticks; } +bigtime_t current_time_hires(void) +{ + return ticks * 1000ULL; +} + static enum handler_return pit_irq_handler(void *arg) { AT91PIT *pit = AT91PIT_ADDR; diff --git a/scripts/do-sam7ex256-test b/scripts/do-sam7ex256-test index 4505ad6..d549831 100755 --- a/scripts/do-sam7ex256-test +++ b/scripts/do-sam7ex256-test @@ -1,6 +1,6 @@ #!/bin/sh -export DEBUG=true +export DEBUG=2 export PROJECT=sam7ex256-test make