/// @brief Test flash read code /// @param[in] *win: window structure /// @return void MEMSPACE void test_flashio(window *win) { uint16_t xpros,ypos; for(i=0;i<8;++i) { printf("%02x", read_flash8((uint32_t) &xxx+i)); } printf("\n"); printf("%08x, %08x", read_flash32((uint8_t *)&xxx), read_flash16((uint8_t *)&xxx)); }
/// @brief Test flash read code /// @param[in] *win: window structure /// @return void MEMSPACE void test_flashio(window *win) { uint16_t xpros,ypos; tft_set_font(win,1); //tft_printf(win, "%x,%x", xxxp[0],xxxp[1]); xpos = win->x; ypos = win->y; for(i=0;i<8;++i) { tft_setpos(win, i*16,ypos); tft_printf(win, "%02x", read_flash8((uint32_t) &xxx+i)); } tft_printf(win, "\n"); tft_printf(win, "%08x, %08x", read_flash32((uint8_t *)&xxx), read_flash16((uint8_t *)&xxx)); }