Remove dodgy debug pins code

two-pixels-per-word
Luke Wren 2021-02-03 21:26:09 +00:00
rodzic 51e47b7874
commit 6dbb99dbe7
9 zmienionych plików z 0 dodań i 42 usunięć

Wyświetl plik

@ -33,11 +33,6 @@ int main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
dvi0.timing = &DVI_TIMING;
dvi0.ser_cfg = DEFAULT_DVI_SERIAL_CONFIG;
dvi_init(&dvi0, next_striped_spin_lock_num(), next_striped_spin_lock_num());

Wyświetl plik

@ -124,11 +124,6 @@ int main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
dvi0.timing = &DVI_TIMING;
dvi0.ser_cfg = DEFAULT_DVI_SERIAL_CONFIG;
dvi_init(&dvi0, next_striped_spin_lock_num(), next_striped_spin_lock_num());

Wyświetl plik

@ -37,11 +37,6 @@ int main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
dvi0.timing = &DVI_TIMING;
dvi0.ser_cfg = DEFAULT_DVI_SERIAL_CONFIG;
dvi_init(&dvi0, next_striped_spin_lock_num(), next_striped_spin_lock_num());

Wyświetl plik

@ -55,14 +55,8 @@ int main() {
set_sys_clock_khz(DVI_TIMING.bit_clk_khz, true);
#endif
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);

Wyświetl plik

@ -156,11 +156,6 @@ int main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);

Wyświetl plik

@ -116,11 +116,6 @@ int __not_in_flash("main") main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);

Wyświetl plik

@ -139,11 +139,6 @@ int __not_in_flash("main") main() {
setup_default_uart();
for (int i = DEBUG_PIN0; i < DEBUG_PIN0 + DEBUG_N_PINS; ++i) {
gpio_init(i);
gpio_set_dir(i, GPIO_OUT);
}
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
// gpio_put(LED_PIN, 1);

Wyświetl plik

@ -256,11 +256,9 @@ static void __dvi_func(dvi_dma_irq_handler)(struct dvi_inst *inst) {
}
static void __dvi_func(dvi_dma0_irq)() {
gpio_put(DEBUG_PIN0, 1);
struct dvi_inst *inst = dma_irq_privdata[0];
dma_hw->ints0 = 1u << inst->dma_cfg[TMDS_SYNC_LANE].chan_data;
dvi_dma_irq_handler(inst);
gpio_put(DEBUG_PIN0, 0);
}
static void __dvi_func(dvi_dma1_irq)() {

Wyświetl plik

@ -62,7 +62,6 @@ static int __not_in_flash_func(configure_interp_for_addrgen)(interp_hw_t *interp
void __not_in_flash_func(tmds_encode_data_channel_16bpp)(const uint32_t *pixbuf, uint32_t *symbuf, size_t n_pix, uint channel_msb, uint channel_lsb) {
interp_hw_save_t interp0_save;
gpio_put(DEBUG_PIN0 + 1, 1);
interp_save(interp0_hw, &interp0_save);
int require_lshift = configure_interp_for_addrgen(interp0_hw, channel_msb, channel_lsb, 0, 16, 6, tmds_table);
if (require_lshift)
@ -70,7 +69,6 @@ void __not_in_flash_func(tmds_encode_data_channel_16bpp)(const uint32_t *pixbuf,
else
tmds_encode_loop_16bpp(pixbuf, symbuf, n_pix);
interp_restore(interp0_hw, &interp0_save);
gpio_put(DEBUG_PIN0 + 1, 0);
}
// As above, but 8 bits per pixel, multiple of 4 pixels, and still word-aligned.
@ -134,7 +132,6 @@ static int __not_in_flash_func(configure_interp_for_addrgen_fullres)(interp_hw_t
void __not_in_flash_func(tmds_encode_data_channel_fullres_16bpp)(const uint32_t *pixbuf, uint32_t *symbuf, size_t n_pix, uint channel_msb, uint channel_lsb) {
uint core = get_core_num();
gpio_put(DEBUG_PIN0 + 1 + core, 1);
#ifndef TMDS_FULLRES_NO_INTERP_SAVE
interp_hw_save_t interp0_save, interp1_save;
interp_save(interp0_hw, &interp0_save);
@ -164,5 +161,4 @@ void __not_in_flash_func(tmds_encode_data_channel_fullres_16bpp)(const uint32_t
interp_restore(interp0_hw, &interp0_save);
interp_restore(interp1_hw, &interp1_save);
#endif
gpio_put(DEBUG_PIN0 + 1 + core, 0);
}