1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/atxmega/board.c
2021-10-13 23:36:41 +02:00

38 lines
695 B
C

/*
* Copyright (C) 2021 Gerson Fernando Budke <nandojve@gmail.com>
*
* 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
* @{
*
* @file
* @brief Common implementations for ATxmega boards
*
* @author Gerson Fernando Budke <nandojve@gmail.com>
*
* @}
*/
#include "board.h"
#include "cpu.h"
#ifdef LED_PORT
void __attribute__((weak)) led_init(void)
{
LED_PORT.DIR = LED_PORT_MASK;
LED_PORT.OUT = LED_PORT_MASK;
}
#endif
void __attribute__((weak)) board_init(void)
{
#ifdef LED_PORT
led_init();
#endif
}