Changeset 691 for trunk/ft2232_spi.c
- Timestamp:
- Aug 19, 2009 3:27:58 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/ft2232_spi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ft2232_spi.c
r679 r691 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 19 */ 20 21 #if FT2232_SPI_SUPPORT == 1 20 22 21 23 #include <stdio.h> … … 26 28 #include "flash.h" 27 29 #include "spi.h" 28 29 #if FT2232_SPI_SUPPORT == 130 31 30 #include <ftdi.h> 32 31 … … 298 297 } 299 298 300 #else301 int ft2232_spi_init(void)302 {303 fprintf(stderr, "FT2232 SPI support was not compiled in\n");304 exit(1);305 }306 307 int ft2232_spi_send_command(unsigned int writecnt, unsigned int readcnt,308 const unsigned char *writearr, unsigned char *readarr)309 {310 fprintf(stderr, "FT2232 SPI support was not compiled in\n");311 exit(1);312 }313 314 int ft2232_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len)315 {316 fprintf(stderr, "FT2232 SPI support was not compiled in\n");317 exit(1);318 }319 320 int ft2232_spi_write_256(struct flashchip *flash, uint8_t *buf)321 {322 fprintf(stderr, "FT2232 SPI support was not compiled in\n");323 exit(1);324 }325 299 #endif
Note: See TracChangeset
for help on using the changeset viewer.
