mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
38 lines
799 B
C
38 lines
799 B
C
/*
|
|
* Copyright (C) 2017 Freie Universität Berlin
|
|
*
|
|
* 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_thingy52
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Board initialization for the Thingy:52
|
|
*
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#include "cpu.h"
|
|
#include "board.h"
|
|
|
|
#if defined(MODULE_LPS22HB) || defined(MODULE_HTS221)
|
|
#include "periph/gpio.h"
|
|
#endif
|
|
|
|
void board_init(void)
|
|
{
|
|
/* LP22HB and HTS221 can only be powered with VREG when VDD_PWR_CTRL_PIN
|
|
is set. */
|
|
#if defined(MODULE_LPS22HB) || defined(MODULE_HTS221)
|
|
gpio_init(VDD_PWR_CTRL_PIN, GPIO_OUT);
|
|
gpio_set(VDD_PWR_CTRL_PIN);
|
|
#endif
|
|
|
|
}
|