simavr.git
4 years agoFix a bug in the bitmask inside _avr_is_instruction_32_bits() function in sim_core...
Emanuele Altomare [Mon, 13 Jan 2020 17:12:48 +0000 (18:12 +0100)]
Fix a bug in the bitmask inside _avr_is_instruction_32_bits() function in sim_core.c file.

4 years agoMerge pull request #358 from jcvdev/gdb-tcp-port
Michel Pollet [Wed, 8 Jan 2020 09:14:45 +0000 (09:14 +0000)]
Merge pull request #358 from jcvdev/gdb-tcp-port

Optionally specify TCP listening port for -g,--gdb option (default 1234)

4 years agoAllow to optionally specify gdb listening port
Juan Cruz Varela [Wed, 1 Jan 2020 20:01:22 +0000 (17:01 -0300)]
Allow to optionally specify gdb listening port

4 years agoMerge pull request #333 from edgargrimberg/edgar_Add_ATMega64M1
Michel Pollet [Sun, 1 Dec 2019 13:58:22 +0000 (13:58 +0000)]
Merge pull request #333 from edgargrimberg/edgar_Add_ATMega64M1

Add ATMega64M1

4 years agoMerge pull request #352 from ZsoltSaskovy/to_be_merged_back
Michel Pollet [Sun, 1 Dec 2019 12:56:51 +0000 (12:56 +0000)]
Merge pull request #352 from ZsoltSaskovy/to_be_merged_back

Minor fix to make code compile on Windows, and separated code and mcu_t structure for Mega2560

4 years agoMoved mcu_t structure declaration into separate header file
Zsolt Saskovy [Thu, 28 Nov 2019 21:14:52 +0000 (22:14 +0100)]
Moved mcu_t structure declaration into separate header file

4 years agoChanged the order of winsock2 and windows includes. Wrong onder caused compilation...
Zsolt Saskovy [Thu, 28 Nov 2019 21:12:34 +0000 (22:12 +0100)]
Changed the order of winsock2 and windows includes. Wrong onder caused compilation errors under Windows

4 years agoMerge pull request #346 from TomasHubelbauer/patch-1
Michel Pollet [Thu, 28 Nov 2019 00:21:02 +0000 (00:21 +0000)]
Merge pull request #346 from TomasHubelbauer/patch-1

Note that it is possible to install through Aptitude

4 years agoMerge pull request #321 from endofexclusive/pr/do-not-mix-tab-and-space
Michel Pollet [Wed, 27 Nov 2019 16:59:05 +0000 (16:59 +0000)]
Merge pull request #321 from endofexclusive/pr/do-not-mix-tab-and-space

Do not mix tab and space in --help output

4 years agoMerge pull request #349 from helargus/vcd-325
Michel Pollet [Wed, 27 Nov 2019 16:36:47 +0000 (16:36 +0000)]
Merge pull request #349 from helargus/vcd-325

#325 Converts timescale from vcd input to internal us.

4 years agoMerge pull request #348 from thecky/master
Michel Pollet [Wed, 27 Nov 2019 16:31:14 +0000 (16:31 +0000)]
Merge pull request #348 from thecky/master

added OC0A/OC0B support for attiny13

4 years agoConverts timescale from vcd input to internal us.
Henrik Lipskoch [Mon, 11 Nov 2019 08:38:47 +0000 (09:38 +0100)]
Converts timescale from vcd input to internal us.

4 years agoadded OC0A/OC0B support for attiny13
Thomas Martens [Sat, 12 Oct 2019 20:04:20 +0000 (22:04 +0200)]
added OC0A/OC0B support for attiny13

.com and .com_pin settings for timer0 in section .comp were missed

4 years agoNote that it is possible to install through Aptitude
Tomáš Hübelbauer [Sun, 15 Sep 2019 16:00:46 +0000 (18:00 +0200)]
Note that it is possible to install through Aptitude

I've found that there is a maintainer who publishes SimAVR for Ubuntu here:
https://packages.ubuntu.com/bionic/simavr

Seems to be kept reasonably up-to-date (the latest there is 1.15 whereasy here on GitHub it is 1.16).
I know that maintainers do not always keep in contact with the software vendor so I would not be surprised to learn you were not aware of this. If you are okay with it though and consider it to be a legit enough source, I figure it's good to call that out in the README.

5 years agoAdd ATMega64M1
Edgar Grimberg [Fri, 5 Apr 2019 11:54:30 +0000 (13:54 +0200)]
Add ATMega64M1

Signed-off-by: Edgar Grimberg <edgar.grimberg@visuray.com>
5 years agoMerge pull request #311 from glitchub/master
Michel Pollet [Tue, 19 Mar 2019 08:56:04 +0000 (08:56 +0000)]
Merge pull request #311 from glitchub/master

Also search for /usr/lib64/librt.so

5 years agoMerge pull request #320 from endofexclusive/pr/freebsd-misc
Michel Pollet [Mon, 25 Feb 2019 10:24:09 +0000 (10:24 +0000)]
Merge pull request #320 from endofexclusive/pr/freebsd-misc

Make simavr build on Freebsd

5 years agoMerge pull request #324 from hsoft/tiny-timer1
Michel Pollet [Mon, 25 Feb 2019 10:22:56 +0000 (10:22 +0000)]
Merge pull request #324 from hsoft/tiny-timer1

Fix timer1 on tinyx5

5 years agoFix timer1 on tinyx5
Virgil Dupras [Sun, 24 Feb 2019 18:06:24 +0000 (13:06 -0500)]
Fix timer1 on tinyx5

The prescaler list for timer1 on the tinyx5 was incomplete. Moreover,
having no WGM data made the timer run in `avr_timer_wgm_none`, with a
zero size (it would overflow all the time).

Setting a default wgm_op makes time timer run in normal mode witha size
of 8 bits.

5 years agoDo not mix tab and space in help output
Martin Åberg [Sun, 17 Feb 2019 15:13:25 +0000 (16:13 +0100)]
Do not mix tab and space in help output

5 years agoFreeBSD pty fixup
Martin Åberg [Sun, 17 Feb 2019 14:45:06 +0000 (15:45 +0100)]
FreeBSD pty fixup

5 years agoFreeBSD glut fixups
Martin Åberg [Sun, 17 Feb 2019 14:34:09 +0000 (15:34 +0100)]
FreeBSD glut fixups

5 years agogettimeofday() prototype is in sys/time.h
Martin Åberg [Sun, 17 Feb 2019 14:19:31 +0000 (15:19 +0100)]
gettimeofday() prototype is in sys/time.h

5 years agoSymlink for UART tap was never created during uart_pty_connect()
Uffe Jakobsen [Tue, 29 Jan 2019 08:06:31 +0000 (09:06 +0100)]
Symlink for UART tap was never created during uart_pty_connect()

5 years agoAlso search for /usr/lib64/librt.so
glitchub [Fri, 9 Nov 2018 22:41:06 +0000 (14:41 -0800)]
Also search for /usr/lib64/librt.so

5 years agoMerge pull request #301 from aznoohwee/bugfix/polling-flag-within-isr
Michel Pollet [Thu, 26 Jul 2018 08:20:17 +0000 (09:20 +0100)]
Merge pull request #301 from aznoohwee/bugfix/polling-flag-within-isr

allow polling interrupt flag within ISR

5 years agoreorder check to ensure that flag is allowed to be raised within ISR, but no nested...
Tam Do [Sat, 21 Jul 2018 18:40:09 +0000 (13:40 -0500)]
reorder check to ensure that flag is allowed to be raised within ISR, but no nested IRQs occur

5 years agoallow polling interrupt flag within ISR
Tam Do [Wed, 18 Jul 2018 00:27:44 +0000 (19:27 -0500)]
allow polling interrupt flag within ISR

5 years agoMerge pull request #295 from myokaski/fix-uart-pty
Michel Pollet [Thu, 12 Jul 2018 12:53:33 +0000 (13:53 +0100)]
Merge pull request #295 from myokaski/fix-uart-pty

Fix receiving after fifo overrun

5 years agoMerge pull request #299 from aznoohwee/bugfix/atmega32U4-ramend
Michel Pollet [Thu, 12 Jul 2018 12:52:20 +0000 (13:52 +0100)]
Merge pull request #299 from aznoohwee/bugfix/atmega32U4-ramend

Fix atmega32u4 RAMEND

5 years agoFor #276 fix atmega32u4 RAMEND
Tam Do [Mon, 9 Jul 2018 14:50:01 +0000 (09:50 -0500)]
For #276 fix atmega32u4 RAMEND

5 years agoFix receiving after fifo overrun
Aleksey Shargalin [Thu, 21 Jun 2018 15:24:31 +0000 (18:24 +0300)]
Fix receiving after fifo overrun

After fifo overrun buffer_done remains less than buffer_len and
FD_SET(p->port[ti].s, &read_set) is not called. If firmware has nothing
to send, select always returns 0 and new data is never read even if
fifo buffer gets flushed.
This patch removes check for select timeout, so the remaining data in
buffer may go to fifo.

5 years agoMerge pull request #294 from dougszumski/bugfix/gcc8_warnings
Michel Pollet [Thu, 21 Jun 2018 08:57:16 +0000 (09:57 +0100)]
Merge pull request #294 from dougszumski/bugfix/gcc8_warnings

Forcibly null terminate input strings

5 years agoFix GCC 8 warning for input strings
Doug Szumski [Wed, 20 Jun 2018 19:57:33 +0000 (20:57 +0100)]
Fix GCC 8 warning for input strings

As described in issue #293 GCC 8 fails the build in the current
configuration on warnings like:

sim/run_avr.c:193:4: error: â€˜strncpy’ specified bound 128
equals destination size [-Werror=stringop-truncation]
    strncpy(f.tracename, argv[++pi], sizeof(f.tracename));

This isn't the only solution, but it get's the build working.

5 years agomisc: Fix static analyzer warnings
Michel Pollet [Wed, 20 Jun 2018 08:13:16 +0000 (09:13 +0100)]
misc: Fix static analyzer warnings

Mostly intenting.

Signed-off-by: Michel Pollet <buserror@gmail.com>
5 years agoMerge pull request #291 from nspring/parts-install-separately
Michel Pollet [Tue, 29 May 2018 19:30:31 +0000 (20:30 +0100)]
Merge pull request #291 from nspring/parts-install-separately

For RHEL 6.9 without glut: Parts install separately ; add rpath to rpath-link using RELEASE=1 ; appease gcc 4.6.1, use librt

5 years agoFix installation of examples/parts to occur within the
Neil Spring [Tue, 29 May 2018 15:32:49 +0000 (11:32 -0400)]
Fix installation of examples/parts to occur within the
examplesbparts makefile rather than use the simavr
makefile, allowing installation of simavr (alone) on
machines without a working glut.

Fix RELEASE=1 option to additionally specify rpath (not
just rpath-link) if simavr will be installed in a special
directory.

Add detection and use of librt when available (e.g.,
RHEL 6.9).

5 years agoMerge pull request #287 from dougszumski/feature/rotary_encoder_rebase_04_2018
Michel Pollet [Thu, 24 May 2018 09:02:18 +0000 (10:02 +0100)]
Merge pull request #287 from dougszumski/feature/rotary_encoder_rebase_04_2018

Rotary encoder and demo board

5 years agoMerge pull request #280 from dgeelen/dgeelen/wrap_memory_accesses
Michel Pollet [Thu, 24 May 2018 08:58:57 +0000 (09:58 +0100)]
Merge pull request #280 from dgeelen/dgeelen/wrap_memory_accesses

On actual hardware, memory accesses seem to wrap.

5 years agoMerge pull request #282 from dgeelen/dgeelen/cmdline_vcd
Michel Pollet [Thu, 24 May 2018 08:55:53 +0000 (09:55 +0100)]
Merge pull request #282 from dgeelen/dgeelen/cmdline_vcd

Add support for configuring VCD traces from the commandline.

5 years agoAdd more white space around expressions.
Daniël Geelen [Wed, 23 May 2018 17:12:55 +0000 (19:12 +0200)]
Add more white space around expressions.

5 years agoAdd more white space around expressions.
Daniël Geelen [Wed, 23 May 2018 17:08:41 +0000 (19:08 +0200)]
Add more white space around expressions.

5 years agoIf() statements should be followed by a space.
Daniël Geelen [Wed, 23 May 2018 17:03:04 +0000 (19:03 +0200)]
If() statements should be followed by a space.

5 years agoparts: add rotary encoder demo board
Doug Szumski [Sat, 19 May 2018 13:23:26 +0000 (14:23 +0100)]
parts: add rotary encoder demo board

This connects an LED bar up to an ATMega, and uses the
rotary encoder to scroll an LED up and down the bar.

5 years agoparts: add rotary encoder part
Doug Szumski [Sat, 19 May 2018 13:22:00 +0000 (14:22 +0100)]
parts: add rotary encoder part

Add a rotary encoder virtual part, based on the Panasonic
EVEP rotary encoder. This could easily be extended to virtualise
other rotary encoders.

6 years agoWrap long lines.
Daniël Geelen [Wed, 2 May 2018 16:45:22 +0000 (18:45 +0200)]
Wrap long lines.

6 years agoMerge pull request #275 from k3a/patch-1
Michel Pollet [Tue, 24 Apr 2018 07:40:59 +0000 (08:40 +0100)]
Merge pull request #275 from k3a/patch-1

Update Makefile

6 years agoMerge pull request #281 from dgeelen/dgeelen/log_improvements
Michel Pollet [Tue, 24 Apr 2018 07:36:39 +0000 (08:36 +0100)]
Merge pull request #281 from dgeelen/dgeelen/log_improvements

Improve logging

6 years agoAdd support for configuring VCD traces from the commandline.
Daniël Geelen [Wed, 18 Apr 2018 06:35:28 +0000 (08:35 +0200)]
Add support for configuring VCD traces from the commandline.

6 years agoLog more warnings for VCD functionality.
Daniël Geelen [Wed, 18 Apr 2018 06:33:58 +0000 (08:33 +0200)]
Log more warnings for VCD functionality.

6 years agoLog statements in avr_load_firmware() were never printed.
Daniël Geelen [Thu, 5 Apr 2018 18:00:15 +0000 (20:00 +0200)]
Log statements in avr_load_firmware() were never printed.

6 years agoOn actual hardware, memory accesses seem to wrap.
Daniël Geelen [Thu, 5 Apr 2018 15:54:34 +0000 (17:54 +0200)]
On actual hardware, memory accesses seem to wrap.

6 years agouse READ_SREG_INTO rather than g->avr->data[R_SREG] to get current sreg status for...
Neil Spring [Sun, 1 Apr 2018 19:42:41 +0000 (15:42 -0400)]
use READ_SREG_INTO rather than g->avr->data[R_SREG] to get current sreg status for export to gdb

6 years agoUpdate Makefile
K3A [Mon, 26 Feb 2018 21:51:21 +0000 (22:51 +0100)]
Update Makefile

6 years agoUpdate Makefile
K3A [Mon, 26 Feb 2018 21:45:06 +0000 (22:45 +0100)]
Update Makefile

Update install rule to require build-simavr and build-parts. That should fix #271.

6 years agoSet AVR_IOPORT_OUTPUT when setting/clearing outputs in response to a
Mike Playle [Thu, 1 Feb 2018 22:09:28 +0000 (22:09 +0000)]
Set AVR_IOPORT_OUTPUT when setting/clearing outputs in response to a
compare match

6 years agoAdd support for software-triggered timer matches via the "force output
Mike Playle [Thu, 1 Feb 2018 22:24:37 +0000 (22:24 +0000)]
Add support for software-triggered timer matches via the "force output
compare" bits.

ATmega32U4 only.

6 years agoDon't update pins on overflow in non-PWM modes
Mike Playle [Thu, 1 Feb 2018 22:12:02 +0000 (22:12 +0000)]
Don't update pins on overflow in non-PWM modes

6 years agoelf: Bit of cleanup
Michel Pollet [Tue, 25 Apr 2017 07:13:47 +0000 (08:13 +0100)]
elf: Bit of cleanup

Going to clean this piece of code a little

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agocore: Added support for PC overflow
Michel Pollet [Wed, 10 Jan 2018 09:26:54 +0000 (09:26 +0000)]
core: Added support for PC overflow

Added a special opcode at the end of flash to catch PC overflow, and
'wrap it'. Also log the condition.
This allow that case to be handled without having to add a
modulo/division for each instruction.

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoClean up that CLOCK mess
Michel Pollet [Wed, 10 Jan 2018 09:10:29 +0000 (09:10 +0000)]
Clean up that CLOCK mess

Generalized getting a time stamp related to the simulation. Make it
really portable.

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoCorrect x8 ADC mux modes
Austin Roach [Sat, 30 Dec 2017 01:10:01 +0000 (20:10 -0500)]
Correct x8 ADC mux modes

In all of the datasheets for ATmega44/88/168/328 devices that I've
seen, there are 8 channels of ADC selected with MUX modes 0000-0111,
and the temperature sensor is selected with MUX mode 1000.

6 years agomodify avr_callback_sleep_raw() to mitigate sim time and wall clock time divergence
Delio Brignoli [Fri, 20 Oct 2017 09:22:45 +0000 (11:22 +0200)]
modify avr_callback_sleep_raw() to mitigate sim time and wall clock time divergence

To avoid simulated time and wall clock time to diverge over time
this implementation tries to keep them in sync (roughly) by sleeping
for the time required to match the expected sleep deadline
in wall clock time.

The simulation will burst as fast as the host CPU will allow
until the simulated MCU sleeps, at which point avr_callback_sleep_raw()
sleeps for the time required to sync wall clock time with simulated MCU
time.

6 years agoFix a bug which causes no cores to be compiled
Dylan McKay [Fri, 7 Jul 2017 12:46:10 +0000 (00:46 +1200)]
Fix a bug which causes no cores to be compiled

On some systems, including some Mac and some Linux computers, the
sim_core_config.h file will not have any cores compiled on it.

Here is the patch from #20.

I have tested this on Linux, and there are many people on #20 reporting
that it works perfectly on Mac.

6 years agoFix timer mode 14 for timers 1, 3, 4 and 5 on Atmega2560
Bastien Scher [Wed, 18 Oct 2017 10:15:51 +0000 (12:15 +0200)]
Fix timer mode 14 for timers 1, 3, 4 and 5 on Atmega2560

6 years agoMake sure sim_core_declare.h is included *after* avr includes, as currently dependant...
Konstantin Begun [Tue, 3 Oct 2017 21:52:10 +0000 (22:52 +0100)]
Make sure sim_core_declare.h is included *after* avr includes, as currently dependant ifdefs never succeed

6 years agouse only 12 bits for ubrr (#257)
Andreas Schultes [Mon, 9 Oct 2017 07:59:08 +0000 (09:59 +0200)]
use only 12 bits for ubrr (#257)

* use only 12 bits for ubrr

* use bitmask for ubrr

* remove r_ubrr_h and r_ubrr_l

6 years agoAdd support for framing error in uart (#258)
kostic2000 [Wed, 4 Oct 2017 08:59:33 +0000 (09:59 +0100)]
Add support for  framing error in uart (#258)

* uart: Add support for a framing error. Useful for detecting breaks

* Fix spacing for "if"

6 years agossd1306: move display vertical and horizontal mirroring to OpenGL scene setup
Delio Brignoli [Sat, 16 Sep 2017 17:33:15 +0000 (18:33 +0100)]
ssd1306: move display vertical and horizontal mirroring to OpenGL scene setup

The idea is that the display orientation related code belongs in the
board's implementation. Prior to this commit boards which mount the
display with a different orientation would end up mirroring the pixels
twice: once when reading them from the framebuffer and again in the
OpenGL scene rendering. As a sideeffect now reading pixels from the
vram array is simplified.

6 years agossd1306: fix pixel size constant in demo
Delio Brignoli [Sat, 16 Sep 2017 17:11:06 +0000 (18:11 +0100)]
ssd1306: fix pixel size constant in demo

6 years agossd1306: fix background painting
Delio Brignoli [Sat, 16 Sep 2017 16:57:43 +0000 (17:57 +0100)]
ssd1306: fix background painting

- Take pixel size into account.
- Fix swapped coordinates passed to glVertex2f().

6 years agossd1306: remove stray glBegin(GL_QUADS) call
Delio Brignoli [Sat, 16 Sep 2017 17:44:43 +0000 (18:44 +0100)]
ssd1306: remove stray glBegin(GL_QUADS) call

6 years agossd1306_virt: add SSD1306_VIRT_CHARGE_PUMP command (ignored)
Delio Brignoli [Tue, 19 Sep 2017 18:40:36 +0000 (20:40 +0200)]
ssd1306_virt: add SSD1306_VIRT_CHARGE_PUMP command (ignored)

Without this change receiving SSD1306_VIRT_CHARGE_PUMP will
make the command parser get out of sync.

6 years agoextint: support cores with non-contiguous extint numbers like atmega32u4
Delio Brignoli [Tue, 19 Sep 2017 18:17:19 +0000 (20:17 +0200)]
extint: support cores with non-contiguous extint numbers like atmega32u4

avr_extint_exists() is used to establish if an extint index is valid
and avr_extint_count() is removed because it is not used any longer.

6 years agoparts: ssd1306: SET_COLUMN_*_NIBBLE commands are ignored in page mode
Delio Brignoli [Mon, 18 Sep 2017 12:14:37 +0000 (14:14 +0200)]
parts: ssd1306: SET_COLUMN_*_NIBBLE commands are ignored in page mode

6 years agoparts/ssd1306: add twi interface
Torbjorn Tyridal [Fri, 15 Sep 2017 12:52:06 +0000 (14:52 +0200)]
parts/ssd1306: add twi interface

6 years agoparts/ssd1306: Add dummy handlers for various commands
Torbjorn Tyridal [Fri, 15 Sep 2017 12:51:39 +0000 (14:51 +0200)]
parts/ssd1306: Add dummy handlers for various commands

in particular, commands used by adafruit driver. Since some
commands are multibyte, this prevents us getting out of sync
or misinterpreting commands.

6 years agoparts/ssd1306: support horizontal addressing mode
Torbjorn Tyridal [Fri, 15 Sep 2017 12:50:02 +0000 (14:50 +0200)]
parts/ssd1306: support horizontal addressing mode

In particular, it's used by the adafruit driver for arduino

6 years agotimer: Removed round()
Michel Pollet [Fri, 15 Sep 2017 09:17:32 +0000 (10:17 +0100)]
timer: Removed round()

That drags libm in, and we don't need that.

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agocore: atmega32u4: Fix indentation
Delio Brignoli [Thu, 14 Sep 2017 22:29:06 +0000 (00:29 +0200)]
core: atmega32u4: Fix indentation

Use hard tabs and assume a tab width of 4 spaces.

6 years agoAdd atmega32u4 core by Michel Pollet <buserror@gmail.com>
Delio Brignoli [Mon, 11 Sep 2017 07:04:07 +0000 (09:04 +0200)]
Add atmega32u4 core by Michel Pollet <buserror@gmail.com>

6 years agofix timer is not triggered at ocr==0
Andreas Schultes [Sat, 1 Jul 2017 20:06:16 +0000 (22:06 +0200)]
fix timer is not triggered at ocr==0

6 years agoirq: Standardized some names
Michel Pollet [Tue, 15 Aug 2017 11:26:34 +0000 (12:26 +0100)]
irq: Standardized some names

Made all the names more or less standard. Might still change...

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoAdded a define "FALLTHROUGH" to suppress 'this statement may fallthrough' messages
Thomas Martens [Mon, 14 Aug 2017 20:52:21 +0000 (22:52 +0200)]
Added a define "FALLTHROUGH" to suppress 'this statement may fallthrough' messages
Since avr-gcc version 7 the flag -Wimplicit-fallthrough is set, so that
a missing "break;" inside a switch-case statement will throw an error in
the compiling process.
The missing breaks are replaced by the FALLTHROUGH define and no errors
occours.
FALLTHROUGH is simply an "__attribute__((fallthrough));" - if it is
supported by the compiler.

6 years agomake: Factored library making
Michel Pollet [Tue, 15 Aug 2017 10:14:48 +0000 (11:14 +0100)]
make: Factored library making

Removed duplicate make commands for libraries

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agomake parallel builds succeed
Jacques Germishuys [Thu, 10 Aug 2017 18:50:27 +0000 (20:50 +0200)]
make parallel builds succeed

6 years agoChange arduino library path so it works on mac
Ivan Holmes [Wed, 9 Aug 2017 20:42:28 +0000 (22:42 +0200)]
Change arduino library path so it works on mac

6 years agochanged EEARL to EEAR inside AVR_EEPROM_DECLARE_8BIT
Thomas Martens [Sun, 6 Aug 2017 15:56:00 +0000 (17:56 +0200)]
changed EEARL to EEAR inside AVR_EEPROM_DECLARE_8BIT
(some iotnxx.h files have only a EEAR declaration)
added corefiles for attiny2313a and attiny4313

6 years agomake: Remove -Werror
Michel Pollet [Tue, 8 Aug 2017 08:46:32 +0000 (09:46 +0100)]
make: Remove -Werror

Can't fight multiple compiler, versions, and OS and expect everyone to
agree while breaking the build for normal people.

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoioend implemented in core declaration
Radosław Koppel [Thu, 4 May 2017 19:58:06 +0000 (21:58 +0200)]
ioend implemented in core declaration

6 years agoparts: Build a simavr virtual parts library
Doug Szumski [Sun, 12 Mar 2017 20:46:43 +0000 (20:46 +0000)]
parts: Build a simavr virtual parts library

An external project using simavr can link against libsimavr.
However, there is no support for using virtual parts from the
examples folder in the external project.

This commit adds support for building a parts library, which the
external project can link against. Presently this library is fairly
small, but as the number of parts grows this approach may need
to be changed. A longer term solution could be to provide an API as
part of the simavr library which can manage the parts. Simavr could
dynamically load and provide parts as required by the external
project.

Like libsimavr, this patch makes no attempt to make the version easy
to set. That can be covered under a different PR.

6 years agoMerge branch 'wip/avrlib-headers'
Michel Pollet [Wed, 2 Aug 2017 10:11:56 +0000 (11:11 +0100)]
Merge branch 'wip/avrlib-headers'

6 years agom324: Fix core
Michel Pollet [Wed, 2 Aug 2017 10:06:11 +0000 (11:06 +0100)]
m324: Fix core

Now uses the new header

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agomake: Change build to use our copy of avrlibc
Michel Pollet [Wed, 2 Aug 2017 10:05:56 +0000 (11:05 +0100)]
make: Change build to use our copy of avrlibc

Now uses our own copy, this should help build simavr with support for
all cores, on all hosts

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoAdd a stub sfr_defs.h
Michel Pollet [Wed, 2 Aug 2017 10:04:55 +0000 (11:04 +0100)]
Add a stub sfr_defs.h

Some avrlibc cores include that file, that define macros and so on. We
don't need/want that as we already have macros for stuff

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoAdd avrlibc headers to simavr
Michel Pollet [Wed, 2 Aug 2017 10:04:17 +0000 (11:04 +0100)]
Add avrlibc headers to simavr

This was planned to remove the dependency on the hosts avrlibc that is
often very out of date, or borken.

I copied their licence, and added a readme. I removed also most of the
headers we don't need.

Signed-off-by: Michel Pollet <buserror@gmail.com>
6 years agoMerge branch 'ttyridal-misc_fixes'
Michel Pollet [Wed, 2 Aug 2017 08:10:27 +0000 (09:10 +0100)]
Merge branch 'ttyridal-misc_fixes'

6 years agowhitespace: remove eol-spaces
Torbjorn Tyridal [Tue, 20 Jun 2017 12:27:13 +0000 (14:27 +0200)]
whitespace: remove eol-spaces

6 years agoRename 90usb162 core file
Torbjorn Tyridal [Tue, 20 Jun 2017 13:05:01 +0000 (15:05 +0200)]
Rename 90usb162 core file

or it will be excluded by the magic in Makefile

6 years agoUpdate extra_board_usb
Torbjorn Tyridal [Tue, 20 Jun 2017 11:40:10 +0000 (13:40 +0200)]
Update extra_board_usb

changing special* init/deinit to avr->custom