log for f57913cc58292ec2e5e6e3f4477d95650fa7e3cf
Commit f57913cc58292ec2e5e6e3f4477d95650fa7e3cf
author: Michel Pollet [Sun, 3 Jun 2012 14:07:56 +0000 (15:07 +0100)]
Message:
reprap: Implemented the 'heatpot'

Somehow raise a temperature using a score, reduces it automatically etc

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 8c5185f9db51a5eea9a0e0a794f95131cacd391c
author: Michel Pollet [Sat, 2 Jun 2012 14:34:21 +0000 (15:34 +0100)]
Message:
uart_pty: Introduced the notion of 'tap' port

The previous way to debug was 'stealing' the port by using an xterm on it..
the new way leaves the proper pty available to the application you want to use
but still allow you to have a 'tap' port that sees both the sides of the
communication om the other pty.

You can also type stuff obviously, and it does some cr/lf conversions.

/tmp/simavr-uart0 : will be the normal fake serial port
/tmp/simavr-uarttap0 : is the one to launch an xterm on

This allow you to really see the serial traffic as it happends with both
requests and replies.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 47a131708adafd4eba74038fd981baab91c1ff40
author: Michel Pollet [Sat, 2 Jun 2012 12:32:11 +0000 (13:32 +0100)]
Message:
reprap: Compatibility with OSX

The shader now works on both platform
Removed the .bin file, made sure it never happends again

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit d03d508ebf29745d1a92dd3581793e8bacb12ccf
author: Michel Pollet [Fri, 1 Jun 2012 22:17:00 +0000 (23:17 +0100)]
Message:
reprap: c3 update etc

probably last update befire I spin it out

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 4e71c6661f8db432e7b119209ab83b7bc6ccec30
author: Michel Pollet [Fri, 1 Jun 2012 22:15:03 +0000 (23:15 +0100)]
Message:
reprap: Delete mongoose

Don't need that anymore

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit aa836a6d1ad6d85611c99590050396f923c9c275
author: Michel Pollet [Fri, 1 Jun 2012 22:14:11 +0000 (23:14 +0100)]
Message:
core: Cycle timer small fix

Makes it better on threaded GL on OSX

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ba4ada34f2dabe341191bf7468aa6e84b4437c4b
author: Michel Pollet [Mon, 28 May 2012 18:20:58 +0000 (19:20 +0100)]
Message:
reprap: c3 update

Also:
freenode group verification: token jkndwaw234

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit e51bd6752e5c6a95298a16457b2e97150247735f
author: Michel Pollet [Mon, 28 May 2012 09:20:29 +0000 (10:20 +0100)]
Message:
cores: New avr-libc fixes

New debian avr-libc has actually deprecated register names, unfortunately
the other distros will catchup in 4 years or so, so we still have to
reactivate them .

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 90de5703f0722c022d854f9df596a4c0a4c2cc54
author: Michel Pollet [Mon, 28 May 2012 09:19:11 +0000 (10:19 +0100)]
Message:
usb: Fix for new compiler

Progmem now need 'const'. Also fixed the makefile

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 60d62d42dc3bd3e1b9344ab76ed0930afcf88f9b
author: Michel Pollet [Mon, 28 May 2012 09:18:20 +0000 (10:18 +0100)]
Message:
reprap: Steppers use proper logic

For underflow detection, instead of using a signed value

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 0c9c532655ac7980345db9306ce7283ec98e1ac8
author: Michel Pollet [Mon, 28 May 2012 09:17:34 +0000 (10:17 +0100)]
Message:
Makefile: Use CPPFLAGS for -I stuff

CFLAGS is for code generation

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit f5c4abeb873c4e94054e582273c84f9b1c3f9834
author: Michel Pollet [Mon, 28 May 2012 09:16:42 +0000 (10:16 +0100)]
Message:
Makefile: Include a .make.options if present

A file .make.options will be loaded if present. It allows specifyong host
dependent flags without polluting the makefile, or use flags that wont work
on all hosts.
My current one contains:

export CC = clang
export CFLAGS = -march=corei7-avx

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit a6fbd08748c1325f221b1f2e4e619df56df65535
author: Michel Pollet [Sat, 26 May 2012 22:20:00 +0000 (23:20 +0100)]
Message:
reprap: c3 documentation

Some documentation. c2 is probably going to be spin out soon

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit b73f9b6094e2c9639fded52022ec60556ae8f8de
author: Michel Pollet [Fri, 25 May 2012 12:55:11 +0000 (13:55 +0100)]
Message:
clang: Fixes of warning and nasty bugs

XCode 4.3 & clang fixes. Should also apply to BSD

Found a nasty bug in clang with sign bit propagation

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 025e8d1fce1d4cb47e577a4a6e80a486cb9037b8
author: Michel Pollet [Tue, 22 May 2012 18:11:37 +0000 (19:11 +0100)]
Message:
misc: Fixes clang warnings

And it found some genuine bugs too

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 438cc451e19de412a731c3ad3679589ec4ec3c38
author: Michel Pollet [Tue, 22 May 2012 18:10:45 +0000 (19:10 +0100)]
Message:
Makefiles: Tweaked to build using clang/llvm

Converted makefiles and tweaked to make it all work with clang etc.

Welcome to the future!

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 561f3a68aa080ae9f53ea8cb5a1a0ed03ee04dbe
author: Michel Pollet [Mon, 21 May 2012 13:23:06 +0000 (14:23 +0100)]
Message:
reprap: c3 stl loader

Quick'n Dirty STL file loader, and added a small model doe the nozzle.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 144466480c0d5f19b95db412a919004641d5d4be
author: Michel Pollet [Mon, 21 May 2012 00:30:37 +0000 (01:30 +0100)]
Message:
reprap: c3 update

Allows having a custom callback set for geometries

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ae12b54d05595c36d39a756404901ddebc476441
author: Michel Pollet [Sun, 20 May 2012 20:25:42 +0000 (21:25 +0100)]
Message:
gdb: Fixed a warning

-Wall being pedantic

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit c4b85342d6f8b5e3a205492a59821ba673def98f
author: Michel Pollet [Sun, 20 May 2012 20:25:16 +0000 (21:25 +0100)]
Message:
reprap: c3 update

Added tons of stuff to the micro-scene-graph 3D code.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit b49c5003f6f9dad3cae0cae0d334efc4c1e872e9
author: Michel Pollet [Sat, 19 May 2012 14:20:10 +0000 (15:20 +0100)]
Message:
make: Tweaks for freebsd

Use pkg-config if possible, don't use alloca()

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 022f8dcc8d9744189519f563b2d585db3a640c14
author: Michel Pollet [Sat, 19 May 2012 13:33:12 +0000 (14:33 +0100)]
Message:
reprap: Added opengl renderer

The small red cross moves as the nozzle. Very primitive still
Rotate with the mouse, sorta.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 276db9c96802d7cf1426b51aad7b17797eda6115
author: Michel Pollet [Sat, 19 May 2012 13:32:04 +0000 (14:32 +0100)]
Message:
reprap: Added c3, a small scene graph lib

To display the hotend over the printer bed. Very very primitive

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 7aab93651c05b3e18aa634f69f0c13feeb47d505 v1.0b2
author: Michel Pollet [Fri, 18 May 2012 12:04:50 +0000 (13:04 +0100)]
Message:
Makefile: Bit more cleanup

Added -O2 for the examples too

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6718bffba7078c40797e1348daf95cd38c7a12a2
author: Michel Pollet [Fri, 18 May 2012 11:46:29 +0000 (12:46 +0100)]
Message:
cleanup: Remove codecrusader file

Obsolete

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 2718e8554d3dc72918c6813d5b7bcca2bbf0cda9
author: Michel Pollet [Fri, 18 May 2012 11:45:52 +0000 (12:45 +0100)]
Message:
vhci: Added a patch

Somehow now also need an extra include...

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6e6ed2bfc461a00818017a7d451ba23a065de7f3
author: Michel Pollet [Fri, 18 May 2012 11:45:18 +0000 (12:45 +0100)]
Message:
doc: Updated callgraph

Had'nt updated it in a while

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 2215adbdec3b89b5c9bd8128537541a41fe741ee
author: Michel Pollet [Fri, 18 May 2012 11:43:53 +0000 (12:43 +0100)]
Message:
Makefiles: Updated for build on BSD

Remove reference to explicit 'make' and /bin/bash

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit bb4699ba0132c8d1c0d22916484be952654bcf71
author: Michel Pollet [Mon, 14 May 2012 10:55:08 +0000 (11:55 +0100)]
Message:
Migration to github, added some documentation and screenshots

github seems to have quite a bit more traction, so we're migrating the
primagry tree to github, but will also continue to mirror on gitorious.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 83cfc56c5e71a9e6c0da94c259e3286ca3800039
author: Michel Pollet [Mon, 14 May 2012 09:33:16 +0000 (10:33 +0100)]
Message:
reprap: Some more updates, also a Marlin binary to test

Added a marlin binary that works, to help repsnapper's

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit b3fcfd2f32c0b51cf795d0e367401c0ddec671d9
author: Michel Pollet [Wed, 18 Apr 2012 09:56:57 +0000 (10:56 +0100)]
Message:
stepper: Keep position in step numbers, not mm

More precise, also use a cycle timer to send status positions in mm

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ece490bee6fb58895e51bdfe5abbfb21984fc26e
author: Michel Pollet [Wed, 18 Apr 2012 09:49:57 +0000 (10:49 +0100)]
Message:
reprap: Added a 'relief' sleep

Tweaked Marlin to do a spurious write to GPIOR0 so allow
the simulator to get some usleep() and not use 100% cpu

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 1f31184ef86d5a2278abc90d9eb4898fc076441c
author: Michel Pollet [Wed, 18 Apr 2012 09:48:46 +0000 (10:48 +0100)]
Message:
uart_pty: Check value of environment variable

Can set it to 0 to disable the xterm

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ba8f91fca3798773525f6c764e7f18377d5dd363
author: Michel Pollet [Wed, 18 Apr 2012 09:47:55 +0000 (10:47 +0100)]
Message:
run_avr: Use the new read_ihex_chunks

Still doesn't solve the problem of the avr assembler ihex being sparse,
but at least the problem is no longer int he ihex code.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 282d3e8aa699e9a09d04e153ee87fd7328c0bf2a
author: Michel Pollet [Wed, 18 Apr 2012 09:46:35 +0000 (10:46 +0100)]
Message:
ihex: Made read_ihexq_chunks allocare the table

The table is allocared and returned as the result

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 72c8f45a0134a81fd86c1ff4f163ce1cef213427 v1.0b1
author: Michel Pollet [Wed, 11 Apr 2012 21:03:02 +0000 (22:03 +0100)]
Message:
reprap: Progress

Now the reprap board has fake stepper motors that know their position,
with endstops (they work with Marlin) also there is a way to use
arduidiot pins numbers and remap them to AVR pins..

There is a prototype "heatpot" part that will be used to collect
source and drain of heat and calculafe a temperature.

Also added mongoose embedable web server. The current plan is to
use WebGL to render the graphics of the 3D printer... altho it's
not entirely sure as yet.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 7cad6f9b651144cbb3a5c1bd75cbf2ae75cf513d
author: Michel Pollet [Wed, 11 Apr 2012 20:59:28 +0000 (21:59 +0100)]
Message:
core: Ensure we can run in >64K flash

From an original patch from alex Bondarenko <alexian79@gmail.com>
Reworked to add a new type for flash addresses.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 69b8d265acdd5d01114b2444bc2aa177e00a9c91
author: Michel Pollet [Wed, 11 Apr 2012 20:57:37 +0000 (21:57 +0100)]
Message:
misc: Cleanup & typos

No functional changes

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 119547cb36f2e650d9187e9fcfda02d2d7297828
author: Michel Pollet [Fri, 6 Apr 2012 17:25:43 +0000 (18:25 +0100)]
Message:
mega1280: Made PORTK work

This was triggering a limit in the AVR core IO table

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 58506fe0240ff2902e9fb740cab6df80e1436baa
author: Michel Pollet [Fri, 6 Apr 2012 17:25:10 +0000 (18:25 +0100)]
Message:
core: Increased the number of possible IOs

Also added a sanity check

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 82f36e2c5b3436a12499b7d8ca3b09f0e0ab1b85
author: Michel Pollet [Fri, 6 Apr 2012 15:31:10 +0000 (16:31 +0100)]
Message:
i2ctest: Collapsed both i2ctests into one

Just need one of these

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit ee4cce25870e99c5e39588259df9cf7cdda92bb7
author: Michel Pollet [Fri, 6 Apr 2012 15:06:46 +0000 (16:06 +0100)]
Message:
i2ctest: Added a mega1280 version

Probably will lose either this one, or the older version as they
are exactly the same

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 5774a48991a022511c2acf129d3c30769dd4cbf2
author: Michel Pollet [Fri, 6 Apr 2012 15:06:05 +0000 (16:06 +0100)]
Message:
i2ctest: Moved files to shared

Put the atmel i2c example to a shared directory

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 35c6bd25edc517c43dbb2ebd880e0ae0c8e6e1d0
author: Michel Pollet [Fri, 6 Apr 2012 15:05:22 +0000 (16:05 +0100)]
Message:
cores: Added mega1280

Very little testing was done. ADC was fixed, but still misses the higher
differential channels

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 6c922b8988a4717fa7e9805a59e0a357677af1b4
author: Michel Pollet [Fri, 6 Apr 2012 15:02:14 +0000 (16:02 +0100)]
Message:
ADC: Grown to 64 possible mux values

Needs a bigger ADC, the mega1280 uses 6 bits.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit e44873cb0444ad817b767bdd4f1155c7ee942643
author: Michel Pollet [Thu, 5 Apr 2012 16:47:12 +0000 (17:47 +0100)]
Message:
timer: Reconfigure the timer in fast pwm mode

If OCR* changes, the timer still needs to be reconfigured in fast PWM mode.

Signed-off-by: Michel Pollet <buserror@gmail.com>
Commit 10b26064e240ee44f238f277eb635b7acb0e1d19
author: Michel Pollet [Thu, 5 Apr 2012 16:46:18 +0000 (17:46 +0100)]
Message:
UART: Added a trace macro

Replaces the comments

Signed-off-by: Michel Pollet <buserror@gmail.com>
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>