diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-15 08:34:54 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-15 08:34:54 +0000 | 
| commit | 0cdde1845d6775cde50668ded358f346930eab37 (patch) | |
| tree | 415f121509c940b78d05697b7f0539c627281baa /os/hal/include | |
| parent | 998ff59d1c189fb52c01d9c15a79e1026a906f96 (diff) | |
| download | ChibiOS-0cdde1845d6775cde50668ded358f346930eab37.tar.gz ChibiOS-0cdde1845d6775cde50668ded358f346930eab37.tar.bz2 ChibiOS-0cdde1845d6775cde50668ded358f346930eab37.zip | |
QSPI driver worked on a simple test case.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9484 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
| -rw-r--r-- | os/hal/include/hal_qspi.h | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/os/hal/include/hal_qspi.h b/os/hal/include/hal_qspi.h index 0fe1e79fb..67fc7ad10 100644 --- a/os/hal/include/hal_qspi.h +++ b/os/hal/include/hal_qspi.h @@ -141,16 +141,16 @@ typedef struct {   * @post    At the end of the operation the configured callback is invoked.
   *
   * @param[in] qspip     pointer to the @p QSPIDriver object
 - * @param[in] cmd       pointer to the command descriptor
 + * @param[in] cmdp      pointer to the command descriptor
   *
   * @iclass
   */
 -#define qspiCommandI(qspip, cmd) {                                          \
 -  osalDbgAssert(((cmd)->cfg & QSPI_CFG_DATA_MODE_MASK) ==                   \
 +#define qspiStartCommandI(qspip, cmdp) {                                    \
 +  osalDbgAssert(((cmdp)->cfg & QSPI_CFG_DATA_MODE_MASK) ==                  \
                  QSPI_CFG_DATA_MODE_NONE,                                    \
                  "data mode specified");                                     \
    (qspip)->state = QSPI_ACTIVE;                                             \
 -  qspi_lld_command(qspip, cmd, n, txbuf);                                   \
 +  qspi_lld_command(qspip, cmdp);                                            \
  }
  /**
 @@ -159,18 +159,18 @@ typedef struct {   * @post    At the end of the operation the configured callback is invoked.
   *
   * @param[in] qspip     pointer to the @p QSPIDriver object
 - * @param[in] cmd       pointer to the command descriptor
 + * @param[in] cmdp      pointer to the command descriptor
   * @param[in] n         number of bytes to send or zero if no data phase
   * @param[in] txbuf     the pointer to the transmit buffer
   *
   * @iclass
   */
 -#define qspiStartSendI(qspip, cmd, n, txbuf) {                              \
 -  osalDbgAssert(((cmd)->cfg & QSPI_CFG_DATA_MODE_MASK) !=                   \
 +#define qspiStartSendI(qspip, cmdp, n, txbuf) {                             \
 +  osalDbgAssert(((cmdp)->cfg & QSPI_CFG_DATA_MODE_MASK) !=                  \
                  QSPI_CFG_DATA_MODE_NONE,                                    \
                  "data mode required");                                      \
    (qspip)->state = QSPI_ACTIVE;                                             \
 -  qspi_lld_send(qspip, cmd, n, txbuf);                                      \
 +  qspi_lld_send(qspip, cmdp, n, txbuf);                                     \
  }
  /**
 @@ -179,18 +179,18 @@ typedef struct {   * @post    At the end of the operation the configured callback is invoked.
   *
   * @param[in] qspip     pointer to the @p QSPIDriver object
 - * @param[in] cmd       pointer to the command descriptor
 + * @param[in] cmdp      pointer to the command descriptor
   * @param[in] n         number of bytes to receive or zero if no data phase
   * @param[out] rxbuf    the pointer to the receive buffer
   *
   * @iclass
   */
 -#define qspiStartReceiveI(qspip, cmd, n, rxbuf) {                           \
 -  osalDbgAssert(((cmd)->cfg & QSPI_CFG_DATA_MODE_MASK) !=                   \
 +#define qspiStartReceiveI(qspip, cmdp, n, rxbuf) {                          \
 +  osalDbgAssert(((cmdp)->cfg & QSPI_CFG_DATA_MODE_MASK) !=                  \
                  QSPI_CFG_DATA_MODE_NONE,                                    \
                  "data mode required");                                      \
    (qspip)->state = QSPI_ACTIVE;                                             \
 -  qspi_lld_receive(qspip, cmd, n, rxbuf);                                   \
 +  qspi_lld_receive(qspip, cmdp, n, rxbuf);                                  \
  }
  /** @} */
 | 
