Skip to content

Commit

Permalink
MTAC-LORA uses a FT232H instead of a FT2232H
Browse files Browse the repository at this point in the history
MTAC-LORA uses a FT232H instead of a FT2232H
And SX1301 reset pin, controlled through ADBUS5 pin has the polarity inverted respect the Semtech IOT Starter Kit
  • Loading branch information
nestorayuso committed Aug 27, 2015
1 parent cb09810 commit 6abe911
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libloragw/src/loragw_spi.ftdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Maintainer: Sylvain Miermont
#define READ_ACCESS 0x00
#define WRITE_ACCESS 0x80

/* parameters for a FT2232H */
/* parameters for a FT232H */
#define VID 0x0403
#define PID 0x6010
#define PID 0x6014

/* -------------------------------------------------------------------------- */
/* --- PUBLIC FUNCTIONS DEFINITION ------------------------------------------ */
Expand All @@ -76,10 +76,10 @@ int lgw_spi_open(void **spi_target_ptr) {
return LGW_SPI_ERROR;
}

/* toggle pin ADBUS5 of the FT2232H */
/* On the Semtech reference board, it resets the SX1301 */
a = PinHigh(mpsse, GPIOL1);
b = PinLow(mpsse, GPIOL1);
/* toggle pin ADBUS5 of the FT232H */
/* On the MTAC-LORA, it resets the SX1301 */
a = PinLow(mpsse, GPIOL1);
b = PinHigh(mpsse, GPIOL1);
if ((a != MPSSE_OK) || (b != MPSSE_OK)) {
DEBUG_MSG("ERROR: IMPOSSIBLE TO TOGGLE GPIOL1/ADBUS5\n");
return LGW_SPI_ERROR;
Expand Down

0 comments on commit 6abe911

Please sign in to comment.