···7070// parts of the display unusable or don't get cleared correctly
7171// and also allows for drawing & inverting
7272uint8_t st7565_buffer[ST7565_MATRIX_SIZE];
7373-uint8_t * st7565_cursor;
7373+uint8_t *st7565_cursor;
7474ST7565_BLOCK_TYPE st7565_dirty = 0;
7575bool st7565_initialized = false;
7676bool st7565_active = false;
···1313__attribute__((weak)) hardware_id_t get_hardware_id(void) {
1414 hardware_id_t id = {0};
1515 for (uint8_t i = 0; i < 10; i += 1) {
1616- ((uint8_t*)&id)[i] = boot_signature_byte_get(i + 0x0E);
1616+ ((uint8_t *)&id)[i] = boot_signature_byte_get(i + 0x0E);
1717 }
1818 return id;
1919}
+1-1
platforms/chibios/bootloaders/rp2040.c
···3030// Needs to be located in a RAM section that is never initialized on boot to
3131// preserve its value on reset
3232static volatile uint32_t __attribute__((section(".ram0.bootloader_magic"))) magic_location;
3333-const uint32_t magic_token = 0xCAFEB0BA;
3333+const uint32_t magic_token = 0xCAFEB0BA;
34343535// We can not use the __early_init / enter_bootloader_mode_if_requested hook as
3636// we depend on an already initialized system with usable memory regions and
···6363 pwmChangePeriod(&AUDIO_PWM_DRIVER, period);
64646565 pwmEnableChannel(&AUDIO_PWM_DRIVER, AUDIO_PWM_CHANNEL - 1,
6666- // adjust the duty-cycle so that the output is for 'note_timbre' duration HIGH
6767- PWM_PERCENTAGE_TO_WIDTH(&AUDIO_PWM_DRIVER, (100 - note_timbre) * 100));
6666+ // adjust the duty-cycle so that the output is for 'note_timbre' duration HIGH
6767+ PWM_PERCENTAGE_TO_WIDTH(&AUDIO_PWM_DRIVER, (100 - note_timbre) * 100));
6868}
69697070float channel_1_get_frequency(void) {
···117117 and the .interval counts from 64 downwards - audio_update_state is
118118 called just often enough to not miss anything
119119 */
120120- .frequency = 60 * 64,
121121- .callback = gpt_callback,
120120+ .frequency = 60 * 64,
121121+ .callback = gpt_callback,
122122};
123123124124void audio_driver_initialize_impl(void) {
···310310 palSetLineMode(WS2812_DI_PIN, WS2812_OUTPUT_MODE);
311311312312 // PWM Configuration
313313- //#pragma GCC diagnostic ignored "-Woverride-init" // Turn off override-init warning for this struct. We use the overriding ability to set a "default" channel config
313313+ // #pragma GCC diagnostic ignored "-Woverride-init" // Turn off override-init warning for this struct. We use the overriding ability to set a "default" channel config
314314 static const PWMConfig ws2812_pwm_config = {
315315 .frequency = WS2812_PWM_TICK_FREQUENCY,
316316 .period = WS2812_PWM_PERIOD, // Mit dieser Periode wird UDE-Event erzeugt und ein neuer Wert (Länge WS2812_BIT_N) vom DMA ins CCR geschrieben
···328328 .dier = TIM_DIER_UDE, // DMA on update event for next period
329329#endif
330330 };
331331- //#pragma GCC diagnostic pop // Restore command-line warning options
331331+ // #pragma GCC diagnostic pop // Restore command-line warning options
332332333333 // Configure DMA
334334 // dmaInit(); // Joe added this