Skip to content

Commit

Permalink
minor scanvideo demo cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Feb 9, 2023
1 parent eb6658e commit 9a106f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions scanvideo/demo1/demo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ volatile uint32_t scanline_color = 0;

int vga_main(void) {
mutex_init(&frame_logic_mutex);
gpio_debug_pins_init();
// gpio_debug_pins_init();

gpio_init(24);
gpio_init(22);
Expand Down Expand Up @@ -597,7 +597,6 @@ bool render_scanline_test_pattern(struct scanvideo_scanline_buffer *dest, int co
return true;
}

//#include "hardware/structs/vreg_and_chip_reset.h"
int main(void) {

gpio_put(27, 0);
Expand Down
2 changes: 1 addition & 1 deletion scanvideo/mandelbrot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (TARGET pico_scanvideo_dpi)

target_compile_definitions(mandelbrot PRIVATE
PICO_SCANVIDEO_PLANE1_VARIABLE_FRAGMENT_DMA=1
#TURBO_BOOST
#TURBO_BOOST=1
)
target_link_libraries(mandelbrot PRIVATE
pico_stdlib
Expand Down
2 changes: 1 addition & 1 deletion scanvideo/mandelbrot/mandelbrot.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int main(void) {
base_freq = 50000;
#endif
#if PICO_ON_DEVICE
#ifdef TURBO_BOOST
#if TURBO_BOOST
vreg_set_voltage(VREG_VOLTAGE_1_30);
sleep_ms(10);
set_sys_clock_khz(base_freq*6, true);
Expand Down
8 changes: 4 additions & 4 deletions scanvideo/sprite_demo/sprite_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#include "raspberry_128x128_bgar5515.h"
#include "raspberry_128x128_bgar5515_flip.h"

#include "hardware/structs/vreg_and_chip_reset.h"
#include "hardware/vreg.h"

//#define VGA_MODE vga_mode_320x240_60
#define VGA_MODE vga_mode_640x480_60
#define DUAL_CORE_RENDER
// #define TURBO_BOOST
// #define TURBO_BOOST 1
#define N_BERRIES 45

CU_REGISTER_DEBUG_PINS(generation)
Expand Down Expand Up @@ -171,8 +171,8 @@ void __time_critical_func(frame_update_logic)() {
}

int main(void) {
#ifdef TURBO_BOOST
hw_set_bits(&mm_vreg_and_chip_reset->vreg, VREG_AND_CHIP_RESET_VREG_VSEL_BITS);
#if TURBO_BOOST
vreg_set_voltage(VREG_VOLTAGE_MAX);
sleep_ms(10);
set_sys_clock_khz(400000, true);
#else
Expand Down

0 comments on commit 9a106f8

Please sign in to comment.