Marian Buschsieweke
4d1a5b9256
cpu/atmega_common: Drop legacy include
...
Drop `#include "irq.h"` in `cpu.h`, which was there for a legacy work around.
A bunch of missing includes of `irq.h` materialized due to this and were
fixed.
2020-05-15 11:24:28 +02:00
Marian Buschsieweke
1879f58512
cpu/atmega_common: Cleanup state flags
...
- Use one byte of RAM to track both IRQ and UART TX state
- Fix incorrect use of volatile
2020-02-06 15:41:41 +01:00
Marian Buschsieweke
606d72f64b
cpu/atmega_common: Clean up & fix IRQ handling
...
At the end of an ISR, the ATmega code was doing an `thread_yield()` instead of
a `thread_yield_higher()`. This resulted in tests/isr_yield_higher failing.
Fixing this saves a few lines of code, some ROM, and solves the issue.
2019-11-23 11:57:11 +01:00
Marian Buschsieweke
2b1bee750a
cpu/atmega_common: Stop using reserved names
...
Names with two leading underscores are reserved in any context of the c
standard, and thus must not be used. This ATmega platform used it however for
defining internal stuff. This commit fixes this.
2019-11-23 11:56:11 +01:00
Laurent Navet
c7fed1526c
cpu/atmega_common: adapt to new i2c api
...
Rework atmega i2c to match new i2c interface.
Only i2c_read_bytes and i2c_write_bytes are implemented.
2018-07-25 12:01:39 +02:00
Josarn
fe92771372
cpu/atmega_common/include/cpu.h: uncrustified
2018-06-14 21:47:33 +02:00
Josarn
9b631170cb
cpu/atmega_common: uncrustified
2018-06-14 21:47:33 +02:00
Josarn
80b02e5268
cpu/atmega_common: exit_isr thread_yield
2018-06-14 21:47:33 +02:00
3f1657ffbb
Merge pull request #8952 from ZetaR60/RIOT_atmega_graceful_clock
...
boards/common/atmega: gracefully handle CKDIV8 fuse
2018-05-14 16:11:17 +02:00
Matthew Blue
2979626ef6
boards/common/atmega: gracefully handle CKDIV8 fuse
2018-05-02 14:05:33 -04:00
Matthew Blue
ac2b643308
cpu/atmega_common: return to non-interrupt context swaps
2018-04-27 14:13:34 -04:00
2866a26a24
Merge pull request #8808 from Josar/atmega_stackPointer
...
cpu/atmega_common: use __temp_reg__
2018-04-09 12:05:29 +02:00
391cc83881
cpu/atmega_common: provide common stdio initialization
2018-04-03 14:18:32 +02:00
Josarn
2ef1001ec7
cpu/atmega_common: use __temp_reg__
2018-03-30 10:22:32 +02:00
Josarn
d82f1eba4c
atmega: add last instruction print
...
Signed-off-by: Josua Arndt <josuaarndt@live.de>
2018-03-06 14:57:18 +01:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
zhuoshuguo
1cbe79a373
CPU: fix include header guards
...
Fix cpu/lpc2387/include/lpc2387.h
2016-06-08 16:38:20 +02:00
Joakim Gebart
199528d3fb
cpu/atmega: remove dINT/eINT definitions
2015-09-19 10:35:58 +02:00
7fcb2b718e
cpu: atmega: implement irq_arch_in
2015-09-14 10:47:28 +02:00
Oleg Hahm
f3245cecac
core: panic: last instruction's address for assert
2015-09-11 23:23:31 +02:00
Oleg Hahm
d7161b6d4b
cpu: inline function to print instruction register
2015-09-11 23:23:31 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Oleg Hahm
04b67f1ff0
doc: avr cleanup
2014-12-06 01:12:31 +01:00
BytesGalore
a4d2ee307c
cpu: added extern "C"
to headers
2014-11-24 19:10:15 +01:00
Oleg Hahm
bbf82ab254
doc: put atmega cpu file into the right group
2014-10-23 20:53:00 +02:00
Hinnerk van Bruinehsen
a6b77b4745
cpu: atmega_common: Initial import
2014-08-27 16:22:48 +02:00