pub fn dma_clear_to(page: Page, color: Color) {
    use crate::io::dma::DMA3;

    let color32 = color.0 as u32;
    let bulk_color = color32 << 16 | color32;
    let words_address = match page {
      Page::Zero => Self::PAGE0_WORDS.index(0).as_usize(),
      Page::One => Self::PAGE1_WORDS.index(0).as_usize(),
    };
    unsafe { DMA3::fill32(&bulk_color, words_address as *mut u32, Self::PAGE0_WORDS.len() as u16) };
  }
/// Clears the screen to the color specified using DMA3.
///
/// Takes ~30,800 frames (~37% of VBlank)
Clears the screen to the color specified using DMA3.
Clears the screen to the color specified using DMA3 .
pub fn dma_clear_to(page: Page, color: Color) {
    use crate::io::dma::DMA3;
    let color32 = color.0 as u32;
    let bulk_color = color32 << 16 | color32;
    let words_address = match page {
      Page::Zero => Self::PAGE0_WORDS.index(0).as_usize(),
      Page::One => Self::PAGE1_WORDS.index(0).as_usize(),
    };
    unsafe { DMA3::fill32(&bulk_color, words_address as *mut u32, Self::PAGE0_WORDS.len() as u16) };
  }
pub fn dma_clear_to ( page : Page , color : Color ) { use crate :: io :: dma :: DMA3 ; let color32 = color . 0 as u32 ; let bulk_color = color32 << 16 | color32 ; let words_address = match page { Page :: Zero => Self :: PAGE0_WORDS . index ( 0 ) . as_usize ( ) , Page :: One => Self :: PAGE1_WORDS . index ( 0 ) . as_usize ( ) , } ; unsafe { DMA3 :: fill32 ( & bulk_color , words_address as * mut u32 , Self :: PAGE0_WORDS . len ( ) as u16 ) } ; }
Clears the screen to the color specified using DMA3.
Clears the screen to the color specified using DMA3 .
page
Page
color
Color
page
Page
color
Color