Skip to content

Commit

Permalink
Add option for long USB reset pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Sep 18, 2018
1 parent b9fd0b1 commit 45fc69c
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Config.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
#define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
5 changes: 5 additions & 0 deletions IOSTM.cpp
Expand Up @@ -303,8 +303,13 @@ void CIO::Init()
GPIO_WriteBit(GPIOA, GPIO_Pin_11, Bit_RESET);
GPIO_WriteBit(GPIOA, GPIO_Pin_12, Bit_RESET);

#if defined(LONG_USB_RESET)
// 10 ms delay
delay_us(10000U);
#else
volatile unsigned int delay;
for(delay = 0;delay<512;delay++);
#endif

GPIO_InitStruct.GPIO_Pin = GPIO_Pin_11 | GPIO_Pin_12;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_FLOATING;
Expand Down
3 changes: 3 additions & 0 deletions configs/MMDVM_HS_Dual_Hat-12mhz.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/MMDVM_HS_Dual_Hat.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/MMDVM_HS_Hat-12mhz.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/MMDVM_HS_Hat.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/NanoDV_NPI.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/NanoDV_USB.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
#define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
#define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/Nano_hotSPOT.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/ZUMspot_Libre.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
#define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/ZUMspot_RPi.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/ZUMspot_USB.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
#define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/ZUMspot_duplex.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
#define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/generic_duplex_gpio.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
3 changes: 3 additions & 0 deletions configs/generic_gpio.h
Expand Up @@ -89,6 +89,9 @@
// Use the D-Star and DMR LEDs for POCSAG
// #define USE_ALTERNATE_POCSAG_LEDS

// Enable for RPi 3B+, USB mode
// #define LONG_USB_RESET

// Enable modem debug messages
// #define ENABLE_DEBUG

Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -25,7 +25,7 @@
#define VER_MAJOR "1"
#define VER_MINOR "4"
#define VER_REV "8"
#define VERSION_DATE "20180908"
#define VERSION_DATE "20180918"

#if defined(ZUMSPOT_ADF7021)
#define BOARD_INFO "ZUMspot"
Expand Down

0 comments on commit 45fc69c

Please sign in to comment.