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:
parent
4d1a5b9256
commit
355b01ce98
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user