1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/atmega_common: Moved atmega_state to cpu.c

The global state flags should never have bin in irq_arch.c but in cpu.c. This
is not fixed.
This commit is contained in:
Marian Buschsieweke 2020-05-15 10:53:48 +02:00
parent 4d1a5b9256
commit 355b01ce98
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 1 additions and 2 deletions

View File

@ -58,6 +58,7 @@
*/
uint8_t mcusr_mirror __attribute__((section(".noinit")));
uint8_t soft_rst __attribute__((section(".noinit")));
uint8_t atmega_state = 0;
void get_mcusr(void) __attribute__((naked, section(".init0"), used));
void get_mcusr(void)

View File

@ -33,8 +33,6 @@
static uint8_t atmega_get_interrupt_state(void);
static void atmega_set_interrupt_state(uint8_t state);
uint8_t atmega_state = 0;
__attribute__((always_inline)) static inline uint8_t atmega_get_interrupt_state(void)
{
uint8_t sreg;