2014-12-02 14:18:52 +00:00
|
|
|
/*
|
2016-03-18 10:29:35 +00:00
|
|
|
ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
|
2014-12-02 14:18:52 +00:00
|
|
|
|
2015-03-24 07:55:18 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2014-12-02 14:18:52 +00:00
|
|
|
|
2015-03-24 07:55:18 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2014-12-02 14:18:52 +00:00
|
|
|
|
2015-03-24 07:55:18 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2014-12-02 14:18:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup MMC_SPI MMC over SPI Driver
|
|
|
|
* @brief Generic MMC driver.
|
|
|
|
* @details This module implements a portable MMC/SD driver that uses a SPI
|
|
|
|
* driver as physical layer. Hot plugging and removal are supported
|
|
|
|
* through kernel events.
|
|
|
|
* @pre In order to use the MMC_SPI driver the @p HAL_USE_MMC_SPI and
|
|
|
|
* @p HAL_USE_SPI options must be enabled in @p halconf.h.
|
|
|
|
*
|
|
|
|
* @section mmc_spi_1 Driver State Machine
|
|
|
|
* This driver implements a state machine internally, see the @ref IO_BLOCK
|
|
|
|
* module documentation for details.
|
|
|
|
*
|
|
|
|
* @section mmc_spi_2 Driver Operations
|
|
|
|
* This driver allows to read or write single or multiple 512 bytes blocks
|
|
|
|
* on a SD Card.
|
|
|
|
*
|
2014-12-08 10:31:22 +00:00
|
|
|
* @ingroup HAL_COMPLEX_DRIVERS
|
2014-12-02 14:18:52 +00:00
|
|
|
*/
|