Changeset 559 for trunk/modules/vci_spi
- Timestamp:
- Oct 25, 2013, 5:44:46 PM (11 years ago)
- Location:
- trunk/modules/vci_spi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_spi/caba/source/include/vci_spi.h
r558 r559 75 75 sc_signal<bool> r_ctrl_cpol; // clock polarity 76 76 sc_signal<bool> r_ctrl_cpha; // clock phase 77 sc_signal<bool> r_ctrl_ass; // auto slave select78 77 sc_signal<bool> r_ctrl_ie; // interrupt enable 79 78 sc_signal<bool> r_ctrl_go_bsy; -
trunk/modules/vci_spi/caba/source/src/vci_spi.cpp
r558 r559 51 51 r_divider = 0xffff; 52 52 r_ctrl_char_len = 0; 53 r_ctrl_ass = false;54 53 r_ctrl_ie = false; 55 54 r_ctrl_cpol = false; … … 145 144 if (r_ctrl_cpha.read()) 146 145 data |= SPI_CTRL_CPHA; 147 if (r_ctrl_ass.read())148 data |= SPI_CTRL_ASS_EN;149 146 if (r_ctrl_ie.read()) 150 147 data |= SPI_CTRL_IE_EN; … … 156 153 r_ctrl_cpol = ((wdata & SPI_CTRL_CPOL) != 0); 157 154 r_ctrl_cpha = ((wdata & SPI_CTRL_CPHA) != 0); 158 r_ctrl_ass = ((wdata & SPI_CTRL_ASS_EN) != 0);159 155 r_ctrl_ie = ((wdata & SPI_CTRL_IE_EN) != 0); 160 156 r_ctrl_go_bsy = ((wdata & SPI_CTRL_GO_BSY) != 0); -
trunk/modules/vci_spi/include/soclib/vcispi.h
r551 r559 40 40 #define SPI_CTRL_CPOL (1 << 15) /* Clock polarity */ 41 41 #define SPI_CTRL_CPHA (1 << 14) /* Clock phase */ 42 #define SPI_CTRL_ASS_EN (1 << 13) /* Auto Slave Sel Assertion */43 42 #define SPI_CTRL_IE_EN (1 << 12) /* Interrupt Enable */ 44 43 // 9-11 reserved
Note: See TracChangeset
for help on using the changeset viewer.