[riot-notifications] [RIOT-OS/RIOT] cpu/atmega_common: Update to inlineable IRQ API (#14085)

Marian Buschsieweke notifications at github.com
Fri May 15 10:23:40 CEST 2020


### Contribution description

- Update IRQ API to the inline-able version
- Cleaned up the implementation
    - irq_disable() now is 2 CPU cycles instead of 4 CPU cycles
    - irq_restore() now is 3 CPU cycles (or 2 in the best case), instead of 5

### Testing procedure

1. Let Murdock check if everything still compiles
2. `make BOARD=arduino-mega2560 -C tests/irq_disable_restore flash test` (or any other ATmega based board)

### Issues/PRs references

Follow up of https://github.com/RIOT-OS/RIOT/pull/13999
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14085

-- Commit Summary --

  * cpu/atmega_common: Make irq_arch inline-able
  * cpu/atmega_common: Fixed irq_arch implementation

-- File Changes --

    M cpu/atmega_common/avr_libc_extra/posix_unistd.c (3)
    M cpu/atmega_common/cpu.c (1)
    M cpu/atmega_common/include/cpu.h (5)
    M cpu/atmega_common/include/cpu_conf.h (5)
    R cpu/atmega_common/include/irq_arch.h (64)
    M cpu/atmega_common/periph/uart.c (1)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14085.patch
https://github.com/RIOT-OS/RIOT/pull/14085.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14085
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200515/ae8426a0/attachment.htm>


More information about the notifications mailing list