|
|
|
@ -12,10 +12,10 @@ pub fn render_on_display<'a, F>(clip: Option<Rect>, bg_color: Option<Color>, fun
|
|
|
|
|
where
|
|
|
|
|
F: FnOnce(&mut DirectRenderer<'_, 'a, Rgb565Canvas<'a>>),
|
|
|
|
|
{
|
|
|
|
|
#[link_section = ".no_dma_buffers"]
|
|
|
|
|
//#[link_section = ".no_dma_buffers"]
|
|
|
|
|
static mut BUMP_A: Bump<[u8; 40 * 1024]> = Bump::uninit();
|
|
|
|
|
|
|
|
|
|
#[link_section = ".buf"]
|
|
|
|
|
//#[link_section = ".buf"]
|
|
|
|
|
static mut BUMP_B: Bump<[u8; 16 * 1024]> = Bump::uninit();
|
|
|
|
|
|
|
|
|
|
let bump_a = unsafe { &mut *core::ptr::addr_of_mut!(BUMP_A) };
|
|
|
|
|