atmega_common/include/cpu.h File Reference

Common implementations and headers for ATmega family based micro-controllers. More...

Detailed Description

Common implementations and headers for ATmega family based micro-controllers.

Basic definitions for the ATmega common module

When ever you want to do something hardware related, that is accessing MCUs registers directly, just include this file. It will then make sure that the MCU specific headers are included.

Author
Stefan Pfeiffer stefa.nosp@m.n.pf.nosp@m.eiffe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Hinnerk van Bruinehsen h.v.b.nosp@m.ruin.nosp@m.ehsen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file atmega_common/include/cpu.h.

#include <stdio.h>
#include <stdint.h>
#include <avr/interrupt.h>
#include "cpu_conf.h"
#include "irq.h"
+ Include dependency graph for atmega_common/include/cpu.h:

Go to the source code of this file.

volatile uint8_t __in_isr
 For downwards compatibility with old RIOT code. More...
 
static void __enter_isr (void)
 Flag entering of an ISR.
 
static void __exit_isr (void)
 Flag exiting of an ISR.
 
void cpu_init (void)
 Initialization of the CPU.
 
static void cpu_print_last_instruction (void)
 Print the last instruction's address. More...
 

Function Documentation

◆ cpu_print_last_instruction()

static void cpu_print_last_instruction ( void  )
inlinestatic

Print the last instruction's address.

Todo:
: Not supported

Definition at line 77 of file atmega_common/include/cpu.h.

Variable Documentation

◆ __in_isr

volatile uint8_t __in_isr

For downwards compatibility with old RIOT code.

TODO: remove once core was adjusted global in-ISR state variable