1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/mcb2388/board_init.c
2023-10-02 12:28:08 +02:00

45 lines
951 B
C

/*
* Copyright (C) 2019 Beuth Hochschule für Technik 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_mcb2388
* @{
*/
/**
* @file
* @brief MCB2388 board initialization
*
* @author Benjamin Valentin <benpicco@beuth-hochschule.de>
*
* @}
*/
#include "board.h"
#include "cpu.h"
#include "mtd.h"
#include "periph/init.h"
#ifdef MODULE_MTD_MCI
extern const mtd_desc_t mtd_mci_driver;
static mtd_dev_t _mtd_mci = { .driver = &mtd_mci_driver };
MTD_XFA_ADD(_mtd_mci, 0);
#endif
#ifdef MODULE_VFS_DEFAULT
#include "vfs_default.h"
VFS_AUTO_MOUNT(fatfs, { .dev = &_mtd_mci }, VFS_DEFAULT_SD(0), 0);
#endif
void led_init(void)
{
/* LEDs */
FIO2DIR |= LED0_MASK | LED1_MASK | LED2_MASK | LED3_MASK \
| LED4_MASK | LED5_MASK | LED6_MASK | LED7_MASK;
}