STM32F1 USB cdc/msc composite device (#15180)

Co-Authored-By: bigtreetech <38851044+bigtreetech@users.noreply.github.com>
This commit is contained in:
Scott Lahteine
2019-09-08 02:27:23 -05:00
parent 8bca3fcf2c
commit dbea6f0022
13 changed files with 872 additions and 16 deletions

View File

@ -1105,9 +1105,9 @@ void CLCD::init (void) {
mem_write_8(REG::CSPREAD, FTDI::CSpread);
/* write a basic display-list to get things started */
mem_write_32(MAP::RAM_DL, DL::CLEAR_COLOR_RGB);
mem_write_32(MAP::RAM_DL + 4, (DL::CLEAR | 0x07)); /* clear color, stencil and tag buffer */
mem_write_32(MAP::RAM_DL + 8, DL::DL_DISPLAY); /* end of display list */
mem_write_32(MAP::RAM_DL, DL::CLEAR_COLOR_RGB);
mem_write_32(MAP::RAM_DL + 4, (DL::CLEAR | 0x07)); /* clear color, stencil and tag buffer */
mem_write_32(MAP::RAM_DL + 8, DL::DL_DISPLAY); /* end of display list */
mem_write_8(REG::DLSWAP, 0x02); // activate display list, Bad Magic Cookie 2 = switch to new list after current frame is scanned out