File tree Expand file tree Collapse file tree 6 files changed +0
-18
lines changed Expand file tree Collapse file tree 6 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -73,25 +73,12 @@ void pbdrv_init(void) {
7373 __asm volatile ("cpsie i" : : : "memory" );
7474 #endif
7575
76- // Some hubs turn on power to the I/O ports in the bootloader. This causes
77- // us to miss the initial synchronization window, so we lose more time.
78- // This is fixed by power cycling them here and allowing some reset time.
79- #if PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE
80- pbdrv_ioport_enable_vcc (false);
81- uint32_t ioport_reset_time = pbdrv_clock_get_ms ();
82- #endif
83-
8476 // Wait for all async pbdrv drivers to initialize before starting
8577 // higher level system processes.
8678 while (pbio_busy_count_busy ()) {
8779 pbio_os_run_processes_once ();
8880 }
8981
90- #if PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE
91- while (pbdrv_clock_get_ms () - ioport_reset_time < 500 ) {
92- pbio_os_run_processes_once ();
93- }
94- #endif
9582 pbdrv_ioport_enable_vcc (true);
9683}
9784
Original file line number Diff line number Diff line change 4545#define PBDRV_CONFIG_IOPORT (1)
4646#define PBDRV_CONFIG_IOPORT_HAS_ADC (0)
4747#define PBDRV_CONFIG_IOPORT_NUM_DEV (2)
48- #define PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE (1)
4948
5049#define PBDRV_CONFIG_LED (1)
5150#define PBDRV_CONFIG_LED_NUM_DEV (1)
Original file line number Diff line number Diff line change 6969#define PBDRV_CONFIG_IOPORT (1)
7070#define PBDRV_CONFIG_IOPORT_HAS_ADC (0)
7171#define PBDRV_CONFIG_IOPORT_NUM_DEV (2)
72- #define PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE (0)
7372
7473#define PBDRV_CONFIG_LED (1)
7574#define PBDRV_CONFIG_LED_NUM_DEV (2)
Original file line number Diff line number Diff line change 4444#define PBDRV_CONFIG_IOPORT (1)
4545#define PBDRV_CONFIG_IOPORT_HAS_ADC (0)
4646#define PBDRV_CONFIG_IOPORT_NUM_DEV (4)
47- #define PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE (0)
4847
4948#define PBDRV_CONFIG_LED (1)
5049#define PBDRV_CONFIG_LED_NUM_DEV (1)
Original file line number Diff line number Diff line change 7070#define PBDRV_CONFIG_IOPORT (1)
7171#define PBDRV_CONFIG_IOPORT_HAS_ADC (0)
7272#define PBDRV_CONFIG_IOPORT_NUM_DEV (6)
73- #define PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE (0)
7473
7574#define PBDRV_CONFIG_LED (1)
7675#define PBDRV_CONFIG_LED_NUM_DEV (5)
Original file line number Diff line number Diff line change 5555#define PBDRV_CONFIG_IOPORT (1)
5656#define PBDRV_CONFIG_IOPORT_HAS_ADC (0)
5757#define PBDRV_CONFIG_IOPORT_NUM_DEV (4)
58- #define PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE (1)
5958
6059#define PBDRV_CONFIG_LED (1)
6160#define PBDRV_CONFIG_LED_NUM_DEV (1)
You can’t perform that action at this time.
0 commit comments