1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/arduino-nano-33-ble-sense/board.c

39 lines
813 B
C
Raw Normal View History

/*
* Copyright (C) 2024 Méwen Berthelot
*
* 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_arduino-nano-33-ble-sense
* @{
*
* @file
* @brief Board specific initialization for Arduino Nano 33 BLE sense
*
* @author Méwen Berthelot <berthelotmewen@gmail.com>
*
* @}
*/
#include "board.h"
#include "periph/gpio.h"
void board_init(void)
{
/*
* VDD needs to be set in order to have the sensors powered.
* It also seems that if the internal I2C pins are not set as input,
* all the sensors connected will not work.
*/
gpio_init(VDD, GPIO_OUT);
gpio_set(VDD);
gpio_init(SCL1, GPIO_IN);
gpio_init(SDA1, GPIO_IN);
}