mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
4ae819c011
Initially supports only Mulles with serial number > 220 (due to missing MK60DN256ZVLL10 support in k60). See also: https://github.com/RIOT-OS/RIOT/wiki/Board%3A-Mulle Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
64 lines
1.6 KiB
C
64 lines
1.6 KiB
C
/*
|
|
* Copyright (C) 2014-2015 Eistec AB
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef DEVICEMAP_H_
|
|
#define DEVICEMAP_H_
|
|
|
|
/**
|
|
* @ingroup board_mulle
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Device I/O mappings for the Mulle platform.
|
|
*
|
|
* @author Joakim Gebart <joakim.gebart@eistec.se>
|
|
*
|
|
*/
|
|
|
|
#include "devopttab.h"
|
|
|
|
/** Maximum number of file descriptors allocated to hardware devices. All fd's
|
|
* above this number will be remapped to CFS accesses. */
|
|
#define MAX_OPEN_DEVICES 16 /* Arbitrarily chosen */
|
|
|
|
/** Number of IO devices in this platform implementation */
|
|
#define NUM_IO_DEVICES 16 /* Arbitrarily chosen */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* This table maps the standard streams to device operations table entries. */
|
|
extern const devoptab_t *devoptab_list[MAX_OPEN_DEVICES];
|
|
|
|
/* This table maps filenames to devices */
|
|
/** @brief Mappings between file name and device handle */
|
|
typedef struct {
|
|
const char *name; /**< Device file name */
|
|
const devoptab_t *devoptab; /**< Pointer to device operations table entry */
|
|
} devoptab_name_t;
|
|
|
|
/** @brief Table of device files */
|
|
typedef struct {
|
|
unsigned int len; /**< number of entries */
|
|
const devoptab_name_t *data; /**< Pointer to first table entry */
|
|
} devoptab_name_list_t;
|
|
|
|
extern const devoptab_name_list_t devoptab_name_list;
|
|
|
|
/** @brief Initialize the device map */
|
|
void devicemap_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
#endif /* !defined(DEVICEMAP_H_) */
|