2015-08-08 15:59:25 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
* Copyright (C) 2015 Zolertia SL
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-06-01 12:09:16 +02:00
|
|
|
* @ingroup boards_remote-pa
|
2015-08-08 15:59:25 +02:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Board specific implementations for the Re-Mote board
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
* Antonio Lignan <alinan@zolertia.com>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize the 2.4GHz Radio Frequency SW-controlled Switch
|
|
|
|
*
|
2019-10-23 21:13:13 +02:00
|
|
|
* The Re-Mote features an on-board RF switch to programmatically select to
|
2015-08-08 15:59:25 +02:00
|
|
|
* enable either the internal ceramic antenna, or an external antenna over an
|
|
|
|
* uFL connector. As default we prefer to use the internal one.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static void rf_switch_init(void)
|
|
|
|
{
|
2017-08-21 15:38:10 +02:00
|
|
|
/* Set RF 2.4GHz as default */
|
|
|
|
gpio_init(RF_SWITCH_GPIO, GPIO_OUT);
|
|
|
|
RF_SWITCH_2_4_GHZ;
|
2015-08-08 15:59:25 +02:00
|
|
|
}
|
2023-03-06 11:04:48 +01:00
|
|
|
|
|
|
|
void board_init(void)
|
|
|
|
{
|
|
|
|
/* initialize the 2.4GHz RF switch */
|
|
|
|
rf_switch_init();
|
|
|
|
}
|