mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 06:33:00 +00:00
drivers/mmcsd/mmcsd_sdio.c: Align DMA buffer for MBURST size.
This commit is contained in:
parent
43a3a0f400
commit
29612c40c5
1 changed files with 3 additions and 1 deletions
|
|
@ -2750,12 +2750,14 @@ static int mmcsd_mmcinitialize(FAR struct mmcsd_state_s *priv)
|
|||
* the correct number of blocks and capacity. Returns OK if ext CSD is read
|
||||
* correctly or error in not.
|
||||
*
|
||||
* Note: buffer[] alignment must correspond with MBURST size
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int mmcsd_mmcreadextCSD (FAR struct mmcsd_state_s *priv)
|
||||
{
|
||||
int ret;
|
||||
uint8_t buffer[512];
|
||||
uint8_t buffer[512] __attribute__ ((aligned(16)));
|
||||
|
||||
DEBUGASSERT(priv != NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue