Simulavr: an AVR simulator - News: simulavr-0.1.1 released
test_c/demo.c parameters backwards in outb? (posted by William, Thu 17 Oct 2002 04:09:01 AM UTC) |
I'm trying to get a handle on how to use simulavr to prototype a couple of projects and found that simulavr-1.0 built with very little trouble...
simulavr-1.1 has a test file (test_c/demo.c) that used to compile in v1.0, but apparently due to changes no longer compiles. (parameters swapped in outb/outp)
What is going on here? Is my configuration wrong or is the current "test_c/demo.c" in fact broken in 1.1.
(I'm using avr-gcc v3.1.1, not sure what else is relevant...)
Here's the diff:
diff simulavr-0.1.0/test_c/demo.c simulavr-0.1.1/test_c/demo.c
2c2
< * $Id: demo.c,v 1.4 2001/12/09 20:42:40 troth Exp $
---
> * $Id: demo.c,v 1.5 2002/09/05 17:18:44 troth Exp $
7,8c7,8
< #include <io.h>
< #include <progmem.h>
---
> #include <avr/io.h>
> #include <avr/pgmspace.h>
18c18
< outp( 0xff, DDRB ); /* enable port b for output */
---
> outb( DDRB, 0xff ); /* enable port b for output */
21c21
< outp( cnt, PORTB );
---
> outb( PORTB, cnt );
|
RE: test_c/demo.c parameters backwards in out (posted by Theodore A. Roth, Tue 27 May 2003 04:16:42 AM UTC) |
Sorry, I just notice this post... :-(
Simluavr requires the latest bintuilts/gcc/avr-libc to build the test files. Simulavr can be configured to ignore the test using the --disable-tests option.
Ted
|