1
0
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:
Kaspar Schleiser 2018-03-26 21:50:06 +02:00
parent 64791d0c82
commit ae8822ff46
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,3 @@
MODULE = boards_common_atmega
include $(RIOTBASE)/Makefile.base

View 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();
}