1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/samr34-xpro/board.c
Benjamin Valentin 468ea89953 boards: drop LED init
This is handled by periph_init_leds now
2022-02-18 14:35:43 +01:00

42 lines
910 B
C

/*
* Copyright (C) 2019 Mesotic SAS
*
* 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_samr34-xpro
* @{
*
* @file board.c
* @brief Board specific implementations for the Microchip
* SAM R34 Xplained Pro board
*
* @author Dylan Laduranty <dylan.laduranty@mesotic.com>
*
* @}
*/
#include <stdio.h>
#include "board.h"
#include "cpu.h"
#include "periph/gpio.h"
#ifdef MODULE_SX127X
#include "sx127x_params.h"
#endif
void board_init(void)
{
/* initialize board specific pins for LoRa */
#ifdef MODULE_SX127X
gpio_init(TCXO_PWR_PIN, GPIO_OUT);
gpio_set(TCXO_PWR_PIN);
gpio_init(TX_OUTPUT_SEL_PIN, GPIO_OUT);
gpio_write(TX_OUTPUT_SEL_PIN, !SX127X_PARAM_PASELECT);
#endif /* USEMODULE_SX127X */
}