mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
boards/common/atmega: initial commit of atmega shared code
This commit is contained in:
parent
64791d0c82
commit
ae8822ff46
3
boards/common/atmega/Makefile
Normal file
3
boards/common/atmega/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE = boards_common_atmega
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
34
boards/common/atmega/board.c
Normal file
34
boards/common/atmega/board.c
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_common_atmega
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Common implementations for Atmega boards
|
||||
*
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
#include "irq.h"
|
||||
#include "periph/gpio.h"
|
||||
|
||||
void led_init(void);
|
||||
|
||||
void board_init(void)
|
||||
{
|
||||
atmega_stdio_init();
|
||||
cpu_init();
|
||||
led_init();
|
||||
irq_enable();
|
||||
}
|
Loading…
Reference in New Issue
Block a user