summaryrefslogtreecommitdiff
path: root/n/avr/modules/utils
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/modules/utils')
-rw-r--r--n/avr/modules/utils/test/test_utils.c3
-rw-r--r--n/avr/modules/utils/utils.host.c2
-rw-r--r--n/avr/modules/utils/utils.host.h5
3 files changed, 4 insertions, 6 deletions
diff --git a/n/avr/modules/utils/test/test_utils.c b/n/avr/modules/utils/test/test_utils.c
index 4c85c45..d4df7b9 100644
--- a/n/avr/modules/utils/test/test_utils.c
+++ b/n/avr/modules/utils/test/test_utils.c
@@ -27,8 +27,9 @@
#include "io.h"
int
-main (void)
+main (int argc, char **argv)
{
+ avr_init (argc, argv);
#ifndef HOST
/* Test regv, the first one should generate a warning. */
TCCR0 = regv (FOC0, WGM00, COM01, COM0, WGM01, CS02, CS00, CS01,
diff --git a/n/avr/modules/utils/utils.host.c b/n/avr/modules/utils/utils.host.c
index 8d2be82..54dda95 100644
--- a/n/avr/modules/utils/utils.host.c
+++ b/n/avr/modules/utils/utils.host.c
@@ -22,12 +22,12 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
+#include "common.h"
#include "utils.h"
#include "modules/host/host.h"
#include <time.h>
#include <errno.h>
-#include <assert.h>
/** Delay in seconds. */
void
diff --git a/n/avr/modules/utils/utils.host.h b/n/avr/modules/utils/utils.host.h
index e4c5183..2e73dc4 100644
--- a/n/avr/modules/utils/utils.host.h
+++ b/n/avr/modules/utils/utils.host.h
@@ -29,11 +29,8 @@
void
utils_delay (double s);
-void
-utils_reset (void) __attribute__ ((noreturn));
-
/** Reset. */
void
-utils_reset (void);
+utils_reset (void) __attribute__ ((noreturn));
#endif /* utils_host_h */