log for a80a738acc247fdb5a37c79b3b9cf90aa7c81505
Commit a80a738acc247fdb5a37c79b3b9cf90aa7c81505
author: Michel Pollet [Thu, 5 Apr 2012 16:45:34 +0000 (17:45 +0100)]
Message:
thermistor: Now works

Return millivolts, not ADC values

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 50c4758a22b354ffc6d7a6bebf3d0c6ea29c6b19
author: Michel Pollet [Thu, 5 Apr 2012 14:29:40 +0000 (15:29 +0100)]
Message:
New example board: reprap

Proto shell for a reprap emulator. Currently can run Marlin, up to a point
There are lots of stuff to add, but with a bit of luck we could use the
"pins.h" of the firmware itseld to configure the simavr board, and
have it "adapt" to various hardware boards.

Currently the fake thermistor has been moderately tested, and seems to work.
It needs more work, like linear extrapolation, target temps etc.
Commit 6855916d10c6e7acf94765a27d9253aaddb4c22c
author: Michel Pollet [Thu, 5 Apr 2012 14:27:12 +0000 (15:27 +0100)]
Message:
elf: Do not set values that weren't present

Some ELF binaries without a simavr section can now be loaded

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a69c1fc62beead0b65e01169d0116031dbfbb038
author: Michel Pollet [Thu, 5 Apr 2012 14:26:29 +0000 (15:26 +0100)]
Message:
uart: Trace the use of the x2 flag

No functional change

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 59c1754a7505a44571a496c39ee2ed8afb40620b
author: Michel Pollet [Thu, 5 Apr 2012 14:26:05 +0000 (15:26 +0100)]
Message:
timer: Added phase correct mode, possibly works

Not tested..

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 894f031e78eb3f237f44a9069280f3a334f61937
author: Michel Pollet [Thu, 5 Apr 2012 12:36:20 +0000 (13:36 +0100)]
Message:
uart_pty: Added a debug terminal

You can now launch an xterm with picocom by setting environment
SIMAVR_UART_XTERM. This could (will) be improved.

Also, the uart_pty symlinks the pty pathname to /tmp/simavr-uart-X
so you can rely on a constant pathname.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6c1c2f54cacbc2bd67028ada2597bdce6d950367
author: Michel Pollet [Thu, 15 Mar 2012 14:19:36 +0000 (14:19 +0000)]
Message:
uart_udp: Updated, obsolete

Will probably remive this part in the future

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit db78200886d664f4c39b3e6a2aca239a67515a07
author: Michel Pollet [Thu, 15 Mar 2012 14:19:08 +0000 (14:19 +0000)]
Message:
simduino: Updated, uses uart_pty

Now works properly again, and uses the new pty part.

Also removed mmap and uses a read/write instead for the flash file,

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit fcfd703f95cc714f7bcc1eede3905b18d98b2b92
author: Michel Pollet [Thu, 15 Mar 2012 14:18:01 +0000 (14:18 +0000)]
Message:
uart_pty: New part

This one replaces uart_udp, that was really a toy. This new part simulates
a proper serial port (almost) on the host, and allow connection with minicom
or anything you like.
Properly implemented flow control too, do it's safe at any speed.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 8528e582c4124634376de162bd7b949de39c1603
author: Michel Pollet [Thu, 15 Mar 2012 14:16:34 +0000 (14:16 +0000)]
Message:
irq: Added an INIT flag

'filtered' interrupts didn't work if the initial value was the same as the
one used to raise the irq. Now it works properly, can could also be used
to track IRQs in the pool by usage.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 015f187421ac91a4535567653ad397b4bd67fbc9
author: Michel Pollet [Thu, 15 Mar 2012 14:14:59 +0000 (14:14 +0000)]
Message:
uart: Finaly fixed the xon/xoff

Now works as intended

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a384d39e32edfa5a7df6356d3421d8cd8663f299
author: Michel Pollet [Thu, 15 Mar 2012 14:14:29 +0000 (14:14 +0000)]
Message:
interrupts: Delivery fix

Polled interrupts as for the UART were borken. Now fixed.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 617305ddb21c497c64b2da3fc2cee5326ce445df
author: Michel Pollet [Thu, 15 Mar 2012 14:13:12 +0000 (14:13 +0000)]
Message:
fifo: Small update

Expose the size specified as a constant

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6765511f32792eff65c1c82b33bb3a41162e2f50
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:38 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:33:03 +0000 (14:33 +0000)]
Message:
simavr: Now use the generated config files

Removed the statis tables, use the generated config
Also updated .gitignore

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5159dffcaccabb4fe8b04e1854e944132a31aa78
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:26 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:30:21 +0000 (14:30 +0000)]
Message:
Makefile: Generate config files

The Makefile now tries to detect the cores that can
be built using the current avr-gcc install. This allows
simavr to be built with older toolchain that don't have
the latest cores. Like arduidiot.

It also allows generation of an automated core list for
simavr so the run_avr and others don't have to have an
explicit list of cores. They are now autodetected.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 00ee1e92f04a7477cd2c5b1ba9374b4feb5f4f4c
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:26 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:27:52 +0000 (14:27 +0000)]
Message:
Makefile: OSX Update

Only add the MacPort dir if it's there. This
removes a warning when linking

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6d70171faf504e72ac0b8dea4433f7a87f05566e
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:26 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:29:35 +0000 (14:29 +0000)]
Message:
examples: Exclude USB on non-linux

Skip USB example and parts on OSX

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 195e81599a439e0a12889b28003d20cfe98a21cf
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:26 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:28:45 +0000 (14:28 +0000)]
Message:
examples: Updated LCD part for OSX

Uses the proper include file on OSX

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 1fed0c6683ff98cbcce539e07fbccdaee47ba374
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:25 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:27:05 +0000 (14:27 +0000)]
Message:
misc: Updated .gitignore

Added OSX turd files

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit e161b07644dec9d57640bc20d0256598e0caf5c9
committer: Michel Pollet [Fri, 2 Mar 2012 15:00:25 +0000 (15:00 +0000)]
author: Michel Pollet [Fri, 2 Mar 2012 14:37:09 +0000 (14:37 +0000)]
Message:
misc: Explicitely link libelf

Some linker don't understand inherited links

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 29eb6c991c55fcc27ddc4c12b720d9f25ff3a5b2
author: Michel Pollet [Mon, 27 Feb 2012 14:21:16 +0000 (14:21 +0000)]
Message:
examples: New board_usb

Automaticaly tries to build the vhci libraries
TODO: Make the whole simavr build work even if the vhci
      compile fails, or is not linux

By: Torbjorn Tyridal <ttyridal@gmail.com>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit dfcf0504eb78f2d88e72ed772d4789b5f9f97247
author: Michel Pollet [Mon, 27 Feb 2012 14:19:15 +0000 (14:19 +0000)]
Message:
parts: New vhci usb device bridge

By Torbjorn Tyridal <ttyridal@gmail.com>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit eec705712987b474b050dc502b3a178abb766ede
author: Michel Pollet [Mon, 27 Feb 2012 14:18:24 +0000 (14:18 +0000)]
Message:
cores: Added at90usb162

Straight from Torbjorn Tyridal <ttyridal@gmail.com>

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 679955cf31d0c881080efe9d0b4b949732706ff9
author: Michel Pollet [Mon, 27 Feb 2012 14:17:25 +0000 (14:17 +0000)]
Message:
simavr: Added usb slave emulation module

Straight from Torbjorn Tyridal <ttyridal@gmail.com> with
just a bit of source code remangling

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ae3fe3b96f3839f93eff8a297f9f72b8b7358699
author: Michel Pollet [Mon, 27 Feb 2012 14:00:29 +0000 (14:00 +0000)]
Message:
examples: Link against .so

If .so is present, link against that, not the static lib

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a1e798cedfa604a0dfd5b5d577a7c8bae81a1bd5
author: Michel Pollet [Mon, 27 Feb 2012 13:59:27 +0000 (13:59 +0000)]
Message:
vhci: Fix Makefile PWD

Somehow PWD is wrong, it's the shell's one not the make one

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6f9832bd93bebac02589a16a2cdc6967b1df4285
author: Michel Pollet [Mon, 27 Feb 2012 10:53:28 +0000 (10:53 +0000)]
Message:
Makefiles: general update

+ Now uses the shared library if present, and added some
  logic to find where it was built.
+ Added an "official" version number
+ Added a "make install DESTDIR=..." target
+ Added a "simavr.pc" pkg-config file
Commit f35cf2c799b79627e871ce67851e1695380bd8eb
author: Michel Pollet [Mon, 27 Feb 2012 10:51:23 +0000 (10:51 +0000)]
Message:
all: Added -Wall to the build

And fixed the warnings that poped out

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 7ca152e58e42dcd3cc2ae773ae98667bfc4c9dd5
author: Michel Pollet [Sun, 26 Feb 2012 10:58:26 +0000 (10:58 +0000)]
Message:
cycle_timers: Fix a delivery problem

If the timer was deleting/inserting timers, it wouldn't
be rescheduled properly.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 681b5b9d1ecd63a8c4a942748e4ee215e9ed6bc7
author: Michel Pollet [Sat, 25 Feb 2012 17:59:44 +0000 (17:59 +0000)]
Message:
vhci: Added a gitignore

Ignore generated files in there

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d4032ea9fae0c8a6fdd020f4f8fd448a044757a3
author: Michel Pollet [Sat, 25 Feb 2012 17:57:59 +0000 (17:57 +0000)]
Message:
interrupts: Isolated runtime data

Split the runtime data related to interrupts into it's own
struct, and updated anyone using it directly.
Ultimately it would be the goal not to have to pass an avr_t
around to all the functions.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 0817f26bb06cdf2a3db57b71b9d045bfe25d456e
author: Michel Pollet [Sat, 25 Feb 2012 17:56:03 +0000 (17:56 +0000)]
Message:
regbits: Moved the struct declaration

Moved the data type to sim_avr_types.h, so it doesn't
need the full avr_t type to be used.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit cb7f2424856ade2162aa361ee980a993300ec397
author: Michel Pollet [Sat, 25 Feb 2012 17:26:33 +0000 (17:26 +0000)]
Message:
style: Updated to 2012

Changed prototypes, updared copyright etc

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5a900db4a50766c3869d64ba5cad7049d6a9d0a9
author: Michel Pollet [Sat, 25 Feb 2012 16:25:30 +0000 (16:25 +0000)]
Message:
vhci: build kernel module & library

This makefile downloads the vhci bits, hack the a little
and compile them in place.
One done it's left as an excercise to the reader to install
the module where they want.

Example board can then link/compile by adding -I../vhci/include and
-L../vhci/lib to their makefile

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 0cb73016818979f0ebf5c6084bbbf5fe2eca287e
committer: Michel Pollet [Sat, 25 Feb 2012 14:47:38 +0000 (14:47 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 14:45:06 +0000 (14:45 +0000)]
Message:
cycle_timers: Big rework

Removed the old bitfield, implemented a sorted list. Timers
get added to the list by (reverse) order of execution do acts
as a stack of timers to run and pop out.

This considerably simplifies the code, and also makes the code
that test for the next timer to run very small and efficient.

This should make cycle_timers a lot more scalable, since they are
used for many more uses than they were originaly designed for.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 0c24f193e260d428283f284672c66be189876727
committer: Michel Pollet [Sat, 25 Feb 2012 14:47:38 +0000 (14:47 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 14:40:40 +0000 (14:40 +0000)]
Message:
general: Introduce two new headers

Split the cycle/usec conversion code from the cycle_timer
heacers into it's new sim_time.h

Also removed the simple types out of sim_avr.h to create
new header sim_avr_types.h

Adapted other modules to use avr_time.h

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit e8217e0f848b0a3a0ed5c7e4b429a4924c83193a
committer: Michel Pollet [Sat, 25 Feb 2012 14:47:26 +0000 (14:47 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 14:37:26 +0000 (14:37 +0000)]
Message:
timer: Fix a problem on unconfigured comparators

Was trying to calculated and setup comparators that
didn't exists on some cores... confusion ensued.
This fixes the "64 led timer" example.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 67688243000a1928b03f470f11fa3c353d229bd6
committer: Michel Pollet [Sat, 25 Feb 2012 10:18:13 +0000 (10:18 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 10:05:23 +0000 (10:05 +0000)]
Message:
interrupts: Rewrote interrupt delivery

Now uses a fifo, removed the bitfield.
This allows multiple interrupt "sources" per vector,
and should make delivery a bit quicker too.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 765045861130679e864f4ae650788da9aa1a06ee
committer: Michel Pollet [Sat, 25 Feb 2012 10:18:13 +0000 (10:18 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 10:05:59 +0000 (10:05 +0000)]
Message:
i2ctest: Make example exit properly

Demo was trying to exit, but the harness wasn't

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ac39b7b60544d4ac3b20c4a46213ea60227da103
committer: Michel Pollet [Sat, 25 Feb 2012 10:18:13 +0000 (10:18 +0000)]
author: Michel Pollet [Wed, 22 Feb 2012 12:21:27 +0000 (12:21 +0000)]
Message:
tests: Cleanup the test harnesses

Removed extra scripts, etc

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d9a5d9bf9376abad309d3efedac1c3be56243006
committer: Michel Pollet [Sat, 25 Feb 2012 10:18:13 +0000 (10:18 +0000)]
author: Michel Pollet [Wed, 22 Feb 2012 11:29:06 +0000 (11:29 +0000)]
Message:
adc: Fix for non updating ADC values

Patch from Peter Ross pross@xvid.org

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 492b921e501d189b42d77885f02b24a75b0871a2
committer: Michel Pollet [Sat, 25 Feb 2012 10:18:13 +0000 (10:18 +0000)]
author: Michel Pollet [Sat, 25 Feb 2012 10:06:34 +0000 (10:06 +0000)]
Message:
makefile: Make -j works

Was lacking dependencies

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 55313d8c9568f8e29a4bf0ad0673c48e74550d00
committer: Michel Pollet [Sat, 25 Feb 2012 10:17:53 +0000 (10:17 +0000)]
author: Michel Pollet [Wed, 22 Feb 2012 11:28:18 +0000 (11:28 +0000)]
Message:
makefile: Don't track system headers

Otherwise incremental make fails after system updates

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a26a2e43fc4b547090f3069e121713702593261d v1.0a9
author: Michel Pollet [Wed, 14 Sep 2011 08:23:27 +0000 (09:23 +0100)]
Message:
tests: Revert a uart patch

We do need the translation, as it's not one, but generation of \n\r

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5a7463cbc22211d49ca18f1d829bb73e2cee6bf7
author: Michel Pollet [Wed, 14 Sep 2011 08:20:03 +0000 (09:20 +0100)]
Message:
cores: Added mega16m1

Could work for megaXm1 ?

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit b25c1563dd26223fc0041055bd7fe7e65776bd8b
author: Michel Pollet [Wed, 14 Sep 2011 08:19:15 +0000 (09:19 +0100)]
Message:
lin: Added module

- added core module for atmega16m1,
  standard peripherals and LIN-in-UART mode

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d37a537b82579f94a9e0bb7999f2fc50642d8228
author: Michel Pollet [Wed, 14 Sep 2011 08:18:13 +0000 (09:18 +0100)]
Message:
core: Added a log level

added log_level to avr_t to control the output of the
simavr library (minimal usage)

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 1cc10d37c5d82e88dfe56adafd6d84924f3465c6
author: Michel Pollet [Wed, 14 Sep 2011 08:17:03 +0000 (09:17 +0100)]
Message:
uart: Do not assume all interupt vectors are available, etc

LIN uart doesn't have them (?)

- fixed uart code to only trigger rxt if more pending
  characters are in the input buffer
- fixed uart-echo test code to not get stuck in
  endless loop upon receiving '\r'

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 545645d2505ab5f98f4724550d3d183b643a99f9
author: Michel Pollet [Wed, 14 Sep 2011 08:10:39 +0000 (09:10 +0100)]
Message:
core: added new states

States cpu_Done and cpu_Crashed allow graceful exit
and cleanup of simavr applications.

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 3f2d9eea99f5c98395369e4bd346be6fd0205051
author: Michel Pollet [Wed, 14 Sep 2011 08:08:47 +0000 (09:08 +0100)]
Message:
core: Fixed opcode printing on access violation

No functional change

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 55bbf1a9a25e034524d8581a2e1e104d03101e1f
author: Michel Pollet [Wed, 14 Sep 2011 08:07:07 +0000 (09:07 +0100)]
Message:
adc: Added VCC/4 reading

For mega16m1

Signed-off-by: Markus Lampert <mlampert@telus.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ec48c6ce4e5bf89c5dae5f00d5e635dbea0c4ed1
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Michel Pollet [Wed, 14 Sep 2011 07:10:53 +0000 (08:10 +0100)]
Message:
misc: formatting, typos

Also removed test case that doesn't actualy test anything

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 3a3ffd5cb03456977fbe4c499950658a259b9391
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Michel Pollet [Wed, 14 Sep 2011 07:02:44 +0000 (08:02 +0100)]
Message:
ioport: Added avr_iopin_t

Descriptor for pin name/pin number

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 4a9e63f3d717730b852de45146cf4a674f7dc492
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Thu, 28 Jul 2011 16:03:33 +0000 (18:03 +0200)]
Message:
vcd: change VCD time base to 1 ns to handle higher AVR speeds (e.g. 20 MHz / max. frequency: 1000 MHz)
- increase VCD log size to 5kB

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 8437e12773cd43e7a7969fad33b6bd00b14b98ad
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Sun, 3 Jul 2011 16:42:58 +0000 (18:42 +0200)]
Message:
irq: add avr_unconnect_irq() and avr_irq_unregister_notify()

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit 14c1d340b2ff1c6d108199aafe50580fe406af12
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Tue, 16 Aug 2011 13:05:21 +0000 (15:05 +0200)]
Message:
bitbang: add new bitbang sub-module

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit 725bede6f51610650d2f23ff47e50165aff250c9
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Fri, 24 Jun 2011 12:33:02 +0000 (14:33 +0200)]
Message:
test: fix test cases and add new test function

- add tests_assert_uart_receive_avr() function (called by tests_assert_uart_receive() and test cases)
- fix DDR settings

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit 7b8e7f8f404f9abf4b4b3b60cf4dda9795da92f6
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Sami Liedes [Wed, 2 Feb 2011 17:19:20 +0000 (19:19 +0200)]
Message:
Update .gitignore.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit de417219e71dd93fa37576677bcfb7915296de9b
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Thu, 28 Jul 2011 16:03:33 +0000 (18:03 +0200)]
Message:
vcd: change VCD time base to 1 ns to handle higher AVR speeds (e.g. 20 MHz / max. frequency: 1000 MHz)
- increase VCD log size to 5kB
- add test files

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit 578d0c0409fadd4c49c3a3a2db7b110183529300
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Thu, 23 Jun 2011 14:20:56 +0000 (16:20 +0200)]
Message:
simavr: change hard-coded value to define: AVR_IOPORT_OUTPUT

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit c37d19891df4906fc42be25aa8de8a5a56d7f905
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Thu, 23 Jun 2011 14:01:44 +0000 (16:01 +0200)]
Message:
output: add NO_COLOR define to disable / enable color output for simavr core messages and UART

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit 5bd17072dcba053f114cbe09a55a6eef93998d53
committer: Michel Pollet [Wed, 14 Sep 2011 07:17:51 +0000 (08:17 +0100)]
author: Stephan Veigl [Sun, 3 Jul 2011 16:49:28 +0000 (18:49 +0200)]
Message:
doc: add doxygen file

Signed-off-by: Stephan Veigl <veigl@gmx.net>
Commit abe56ec3092859fef7bf828286c0f3ca2c6212aa
committer: Michel Pollet [Wed, 14 Sep 2011 07:16:30 +0000 (08:16 +0100)]
author: HATATANI Shinta [Thu, 8 Sep 2011 13:39:10 +0000 (22:39 +0900)]
Message:
cores: Add mega1281

Signed-off-by: HATATANI Shinta <gamaguchi@gmail.com>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d5d8c51763b7da7b17f8f7ed1459174865d29944
author: Michel Pollet [Tue, 13 Sep 2011 18:38:38 +0000 (19:38 +0100)]
Message:
cores: Added mega8, old generation

Possibly would work with mega16, 32 ?

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a722838a191f6003f7d040cac0da628c17727056 v1.0a8
author: Michel Pollet [Sun, 27 Mar 2011 10:44:22 +0000 (11:44 +0100)]
Message:
examples: Working i2c master test board

Write a few bytes to an i2c eeprom, read them back...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 0093da9c8ed852fd7f3394be68716fcd7d3a8c53
author: Michel Pollet [Sun, 27 Mar 2011 10:43:40 +0000 (11:43 +0100)]
Message:
parts: Adds generic i2c eeprom slave

This part simulates an i2c eeprom, it handles most modes, including
"multiple addresses" ones, and ones with multiple byte offset bytes.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 64c6da2f80a7c4f898b89f730e0076de456b5670
author: Michel Pollet [Sun, 27 Mar 2011 10:42:00 +0000 (11:42 +0100)]
Message:
twi: Fully functional master

Now works properly, tested against Atmel's code. See
examples/board_i2ctest for a demo

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit dfca12c72062290d7a2b154e9e56eb8bd6e40f99
author: Michel Pollet [Wed, 23 Mar 2011 14:38:04 +0000 (14:38 +0000)]
Message:
examples: Fix firmware pathnames

Twas borken since I changed the build system. Now works

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 98fd52f7234dc86c27b95beb259c7c496aa7f9d7
author: Michel Pollet [Tue, 15 Mar 2011 13:41:59 +0000 (13:41 +0000)]
Message:
example: Added i2ctest

This example need some polish. It simulates an AVR with an
i2c eeprom of 1024 bytes. The eeprom is "generic" an will go to the
parts/ directory when this is fully working.
Right now write the eeprom works, but there is a stray byte somewhere;
the bug /could/ be in the atmel code tho, wich I had to fix and tweak.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit f5cb51ee9eec403ec656899f02ee2a09fd4b9378
author: Michel Pollet [Tue, 15 Mar 2011 13:40:12 +0000 (13:40 +0000)]
Message:
twi: Update, 95% functional master code

Still need a bit of polish, but the logic works. Works with the
interupt based Atmel application note code.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 9033474287ed9b35a25bfd20b90d1bfd71848a2c
author: Michel Pollet [Tue, 15 Mar 2011 13:38:46 +0000 (13:38 +0000)]
Message:
run_avr: Added a signal handler

Catches control-C to make sure any VCD file is flushed

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 65367a811415dadceaa896257ab2109a002edf03
author: Michel Pollet [Tue, 15 Mar 2011 13:38:11 +0000 (13:38 +0000)]
Message:
cores: Fix TWI interupt flag

This flag was using the wrong register

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 613903e9fc0d7c809650909a68fc519b1731537e
author: Michel Pollet [Tue, 15 Mar 2011 13:37:09 +0000 (13:37 +0000)]
Message:
test: Updated uart_echo

Now set a baud rate, to excersize the new logic in the uart
simulator.
Also added a VCD file

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 9e52a7ecd4a00a02debd75184ff9daa8d170ac39
author: Michel Pollet [Tue, 15 Mar 2011 13:35:51 +0000 (13:35 +0000)]
Message:
cores: Added UART bit rate flags

Updated the cores that have UART(s) with extra flags.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5b1830d85cd06020f50290b5e5b8e9e5e7049dae
author: Michel Pollet [Tue, 15 Mar 2011 13:33:54 +0000 (13:33 +0000)]
Message:
uart: Added logic to regulate data rate

Now uses a data rate thst is proportional to speed.
Could be made a bit better by using the cycle clock count directly,
but this method is a bit clearer

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit f871e491959a4f5b8fc0c6cb1ccc2b95626c1b8c v1.0a7
committer: Michel Pollet [Wed, 9 Mar 2011 07:59:50 +0000 (07:59 +0000)]
author: Sami Liedes [Mon, 28 Feb 2011 19:27:29 +0000 (21:27 +0200)]
Message:
misc: Fixes various typos

Author:    Sami Liedes <sliedes@cc.hut.fi>
Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit c95077cc5166fb332a9772e29748085db9470d19
committer: Michel Pollet [Wed, 9 Mar 2011 07:59:50 +0000 (07:59 +0000)]
author: Sami Liedes [Mon, 28 Feb 2011 21:37:59 +0000 (23:37 +0200)]
Message:
Fix interupt -> interrupt typo, including in some function names.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 9f4d192d318aedee0ff964033a7accf6e9b544ed
committer: Michel Pollet [Wed, 9 Mar 2011 07:57:07 +0000 (07:57 +0000)]
author: Sami Liedes [Mon, 28 Feb 2011 21:33:08 +0000 (23:33 +0200)]
Message:
Do not let code clear the UDRE flag in USART.

It's a read only location and clearing it may break software that
assumes it cannot be cleared.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 1a0be9da2363a0230e5012d1739997c3be323512
author: Michel Pollet [Wed, 9 Mar 2011 07:56:50 +0000 (07:56 +0000)]
Message:
Merge remote-tracking branch 'sliedes/to-upstream' into dev-home
Commit 59243c631fd53642073ddbe032236a1cd413ca3a
committer: Sami Liedes [Wed, 2 Mar 2011 21:31:11 +0000 (23:31 +0200)]
author: Sami Liedes [Mon, 28 Feb 2011 20:02:06 +0000 (22:02 +0200)]
Message:
Tweak struct avr_t to always include a pointer to trace data structure.

Previously the size of struct avr_t was dependent on whether the
preprocessor macro CONFIG_SIMAVR_TRACE was defined. This was problematic
since it meant that applications that link to simavr need to define it
the same way as it is defined in simavr Makefiles.

Change it to a single pointer to a struct, which is allocated iff
tracing is compiled in and a NULL pointer otherwise.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit bc18dfff2f0a44461d6be2264511b3e8e63dbcac
committer: Sami Liedes [Mon, 28 Feb 2011 03:31:36 +0000 (05:31 +0200)]
author: Sami Liedes [Fri, 11 Feb 2011 01:02:33 +0000 (03:02 +0200)]
Message:
Automate test cases.

This patch implements a framework for test cases. Each test case is
compiled into an individual executable. All test cases can be run by
invoking the command `make run_tests', which runs the shell script
run_tests.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 27ba3fb4c8f2a463a1364d6787c3a6d50644d5f3
committer: Sami Liedes [Mon, 28 Feb 2011 01:07:44 +0000 (03:07 +0200)]
author: Sami Liedes [Sun, 20 Feb 2011 16:55:10 +0000 (18:55 +0200)]
Message:
Include sim_gdb.h from sim_gdb.c. Also fix prototype in .h.

sim_gdb.c did not include sim_gdb.h. Also there was a slight
difference in the prototype in the header and the implementation in
the .c, causing a warning.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 80da5988ce9cdccce293fb084880638f1657c52d
author: Michel Pollet [Sun, 27 Feb 2011 20:34:07 +0000 (20:34 +0000)]
Message:
uart: Touchup on the xon/xoff IRQs

Set/reset XON & XOFF irqs following the status
of the fifo. It means they can be added to a VCD
file and help debug a "part".

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 2c3afb1f55a6f6b5553070fb09e95ec8add12c3d
author: Michel Pollet [Thu, 24 Feb 2011 18:05:06 +0000 (18:05 +0000)]
Message:
uart: Added a comment

As to why somehow we don'r write a value in the interupt
clearing logic

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 13ee4cc59eab9c0972bdea63bee9f74757fc609f
author: Michel Pollet [Thu, 24 Feb 2011 18:03:24 +0000 (18:03 +0000)]
Message:
twi: Placeholder example board

Uses AVR application note implementation of master/slave mode
Placeholder, non functional

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit dc427b7efc7905fb825722a67bd2a480615dd3b6
author: Michel Pollet [Thu, 24 Feb 2011 18:02:35 +0000 (18:02 +0000)]
Message:
twi: New master implementation

Yanked the old overengineered version, replaced it with a KISS
version. Untested, work in progress. Needs a new testing harness

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 9b9582d7653649bde0a960cfb21574a1a57ae63c
author: Michel Pollet [Thu, 24 Feb 2011 18:01:40 +0000 (18:01 +0000)]
Message:
regbits: Added a "raw" variant to get/set

Allows comparing to "real life" constants, used in Twi module

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 663049635100d7e6b982330a9a42a937fa2e6a68
author: Michel Pollet [Thu, 24 Feb 2011 18:01:01 +0000 (18:01 +0000)]
Message:
part: Made irq_names static

Have to to have several of them...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit c9dcd6ca2f5d129590466cd3f812faf9a7382705
author: Michel Pollet [Wed, 23 Feb 2011 17:56:08 +0000 (17:56 +0000)]
Message:
Makefile: Fix for x86_64

silly architecture names...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 8a61b76cfe23c1d953f737aa8d836782ee8d40c6
author: Michel Pollet [Wed, 23 Feb 2011 13:55:29 +0000 (13:55 +0000)]
Message:
Makefile updates

Changed the makefiles to derivate the target architecture from
gcc itself, and compile all the objects into obj-$arch. This
allows several compilers to be used to build simavr, at the same
time without interferences.

This allow arm cross compilation to live in the same tree as
the x86 one...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d7369e56ac33daca0a705d96d6ee2509d3b42543
author: Michel Pollet [Wed, 23 Feb 2011 13:53:19 +0000 (13:53 +0000)]
Message:
Updated gitignore

Added obj-* and *.vcd

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit f91dd3b55d0a4051bdd402e796c1d62bc819742b
committer: Michel Pollet [Wed, 23 Feb 2011 11:15:21 +0000 (11:15 +0000)]
author: Sami Liedes [Wed, 23 Feb 2011 02:14:29 +0000 (04:14 +0200)]
Message:
Remove unused variable from avr_service_interrupts().

The done flag is nowadays redundant as it's never read after it's set.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 3c84d92136c907749bc4b87067e196cf2df1c69c
committer: Michel Pollet [Wed, 23 Feb 2011 11:14:55 +0000 (11:14 +0000)]
author: Sami Liedes [Sat, 19 Feb 2011 03:35:57 +0000 (05:35 +0200)]
Message:
Fix LD, ST, LPM, STS, MUL to take the correct number of cycles.

They are now the ATMega timings. Need to figure out how to take
ATTiny into account. Before this change they weren't correct for
either.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 941c7a9b7812b38f04d88a76640bb3df8e0482ab
committer: Michel Pollet [Wed, 23 Feb 2011 11:14:44 +0000 (11:14 +0000)]
author: Sami Liedes [Wed, 2 Feb 2011 17:20:31 +0000 (19:20 +0200)]
Message:
fix typos in comments.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit dea35993f4e8257294eb1e8b27a8416b7a401beb
committer: Michel Pollet [Wed, 23 Feb 2011 11:14:28 +0000 (11:14 +0000)]
author: Sami Liedes [Sat, 5 Feb 2011 13:56:33 +0000 (15:56 +0200)]
Message:
Silence gcc warnings by using PRIu64 in CRASH() printf().

Actually we define a PRI_avr_cycle_count preprocessor macro in
sim_avr.h in the style of PRI* in inttypes.h.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 6541b6de0a998400166bd6b8cf26ef1b689140dc
committer: Michel Pollet [Wed, 23 Feb 2011 00:49:14 +0000 (00:49 +0000)]
author: Sami Liedes [Wed, 23 Feb 2011 00:13:24 +0000 (02:13 +0200)]
Message:
Fix compilation with TRACE on.

The MOV instruction's TRACE() used the undefined variable vd.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 1d661de0943330b20a0b8dc938d17c0e742a2b89
committer: Michel Pollet [Wed, 23 Feb 2011 00:48:45 +0000 (00:48 +0000)]
author: Sami Liedes [Wed, 23 Feb 2011 00:03:13 +0000 (02:03 +0200)]
Message:
Fix compilation on non-32-bit platforms.

The addition of -Werror to the compilation flags broke building on
64-bit hosts because casts between pointers and integers of different
sizes cause warnings on gcc -Wall. Fix this by always casting the
pointers to intptr_t first.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
Commit 4ca5fe4e37ff264a11d83331df1efd552887fe22
author: Michel Pollet [Tue, 22 Feb 2011 23:20:36 +0000 (23:20 +0000)]
Message:
irq: Add names to most io module external irqs

Nothing to be shown for this work so far, the cool stuff hopefully
will come later...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 1b195f1240ed2c7e0fbc6b2152aa4ac73eceb793
author: Michel Pollet [Tue, 22 Feb 2011 17:27:45 +0000 (17:27 +0000)]
Message:
doc: Updated callgraph .pdf

Just a minor update

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5183ee71b76d81d2833a1febb4ed897e117e9a28
author: Michel Pollet [Tue, 22 Feb 2011 17:26:40 +0000 (17:26 +0000)]
Message:
examples: Updated to new part prototypes

Followup on previous checkin, the board examples now use
"names" when possible.

Signed-off-by: Michel Pollet <buserror@gmail.com>