mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
cpu/avr8_common: Move irq_enable from board to cpu
Some mega boards enabling global irq at board_init. This moves that responsability to cpu/avr8_common to create a common point to all variants. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
9081a3b7c7
commit
d041199825
@ -20,7 +20,6 @@
|
||||
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
#include "irq.h"
|
||||
#include "periph/gpio.h"
|
||||
|
||||
#ifndef CPU_ATMEGA_CLK_SCALE_INIT
|
||||
@ -38,5 +37,4 @@ void board_init(void)
|
||||
avr8_stdio_init();
|
||||
cpu_init();
|
||||
led_init();
|
||||
irq_enable();
|
||||
}
|
||||
|
@ -20,7 +20,6 @@
|
||||
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
#include "irq.h"
|
||||
#include "periph/gpio.h"
|
||||
|
||||
#ifndef CPU_ATMEGA_CLK_SCALE_INIT
|
||||
@ -42,5 +41,4 @@ void __attribute__((weak)) board_init(void)
|
||||
#ifdef LED0_ON
|
||||
led_init();
|
||||
#endif
|
||||
irq_enable();
|
||||
}
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
#include "irq.h"
|
||||
|
||||
/**
|
||||
* @brief Initialize the boards on-board LEDs (green and red)
|
||||
@ -61,5 +60,4 @@ void board_init(void)
|
||||
|
||||
cpu_init();
|
||||
led_init();
|
||||
irq_enable();
|
||||
}
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include "cpu.h"
|
||||
#include "board.h"
|
||||
#include "irq.h"
|
||||
#include "periph/init.h"
|
||||
#include "panic.h"
|
||||
|
||||
@ -95,6 +96,8 @@ void cpu_init(void)
|
||||
/* rtc_init */
|
||||
/* hwrng_init */
|
||||
periph_init();
|
||||
|
||||
irq_enable();
|
||||
}
|
||||
|
||||
struct __freelist {
|
||||
|
Loading…
Reference in New Issue
Block a user