Skip to content

Commit

Permalink
Merge pull request #333 from ut-issl/feature/fix_spi_for_c89
Browse files Browse the repository at this point in the history
SPIヘッダをC89に対応
  • Loading branch information
meltingrabbit authored May 23, 2022
2 parents d16a326 + 607bad4 commit 7dfba0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IfWrapper/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef enum
SPI_MODE_0 = 0, //!< CPOL=0, CPHA = 0
SPI_MODE_1 = 1, //!< CPOL=0, CPHA = 1
SPI_MODE_2 = 2, //!< CPOL=1, CPHA = 0
SPI_MODE_3 = 3, //!< CPOL=1, CPHA = 1
SPI_MODE_3 = 3 //!< CPOL=1, CPHA = 1
} SPI_MODE;

/**
Expand All @@ -33,7 +33,7 @@ typedef enum
typedef enum
{
SPI_TX_CS_STATE_LOW = 0, //!< 送信後にCSをLowのままにし、そのまま受信動作などを行う
SPI_TX_CS_STATE_HIGH = 1, //!< 送信後にCSをHighにする
SPI_TX_CS_STATE_HIGH = 1 //!< 送信後にCSをHighにする
} SPI_TX_CS_STATE;

/**
Expand Down Expand Up @@ -68,7 +68,7 @@ typedef enum
SPI_ERR_ALREADY = -3, //!< チャンネルオープン済み
SPI_ERR_FREQUENCY = -2, //!< 周波数異常
SPI_ERR_CH = -1, //!< チャンネル異常 (Port_configに無い)
SPI_ERR_OK = 0, //!< OKは0を踏襲
SPI_ERR_OK = 0 //!< OKは0を踏襲
} SPI_ERR_CODE;

/**
Expand Down

0 comments on commit 7dfba0e

Please sign in to comment.