Changeset 0fddefe in rtems


Ignore:
Timestamp:
Jun 8, 2016, 7:55:53 AM (3 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
master
Children:
0c1413c
Parents:
006af6ac
git-author:
Alexander Krutwig <alexander.krutwig@…> (06/08/16 07:55:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/22/16 14:09:01)
Message:

bsp/atsam: Fix QSPI driver API

We support read/write of arbitrary buffers.

Location:
c/src/lib/libbsp/arm/atsam/libraries/libchip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/qspi.h

    r006af6ac r0fddefe  
    142142        uint32_t      TxDataSize;     /* Tx buffer size */
    143143        uint32_t      RxDataSize;     /* Rx buffer size */
    144         uint32_t      *pDataTx;       /* Tx buffer */
    145         uint32_t      *pDataRx;       /* Rx buffer */
     144        const void    *pDataTx;       /* Tx buffer */
     145        void          *pDataRx;       /* Rx buffer */
    146146} QspiBuffer_t;
    147147
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi.c

    r006af6ac r0fddefe  
    745745        QspidStatus_t Status = QSPI_UNKNOWN_ERROR;
    746746        QspiInstFrame_t *const pFrame = pQspid->pQspiFrame;
    747         uint32_t *pQspiMem = (uint32_t *)(QSPIMEM_ADDR | pFrame->Addr);
     747        void *pQspiMem = (void *)(QSPIMEM_ADDR | pFrame->Addr);
    748748        QspiBuffer_t    pBuffer     =  pQspid->qspiBuffer;
    749749
Note: See TracChangeset for help on using the changeset viewer.