mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/avr-rss2: provide custom led_init()
This commit is contained in:
parent
de0eed384d
commit
2127f091d4
29
boards/avr-rss2/led_init.c
Normal file
29
boards/avr-rss2/led_init.c
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Robert Olsson <roolss@kth.se>
|
||||
*
|
||||
* 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_avr-rss2
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific LED initialization
|
||||
* @author Robert Olsson <roolss@kth.se>
|
||||
*
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
|
||||
void led_init(void)
|
||||
{
|
||||
/* Ports Pins as Output */
|
||||
LED_PORT_DDR |= LED1_MASK | LED0_MASK;
|
||||
/* All LEDs OFF */
|
||||
LED_PORT |= LED1_MASK | LED0_MASK;
|
||||
}
|
Loading…
Reference in New Issue
Block a user