Skip to content

Commit

Permalink
refs #85 rustのreleaseビルドオプションを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaowl committed Sep 23, 2019
1 parent c5ff3a0 commit 935b1da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion embedded/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ lto = true
debug = true

[profile.release]
opt-level = 2
opt-level = 3
debug_assertions= "no"
panic = "abort"
lto = true
debug = true
Expand Down
8 changes: 4 additions & 4 deletions embedded/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ int main()
BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
BSP_LCD_Clear(LCD_COLOR_WHITE);
BSP_LCD_SetTextColor(LCD_COLOR_BLUE);
BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
BSP_LCD_FillRect(0, 0, BSP_LCD_GetXSize(), 40);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
BSP_LCD_SetBackColor(LCD_COLOR_BLUE);
BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
BSP_LCD_SetFont(&Font24);
BSP_LCD_DisplayStringAt(0, 0, (uint8_t *)"kamiyaowl/rust-nes-emulator", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, 5, (uint8_t *)"kamiyaowl/rust-nes-emulator", CENTER_MODE);
BSP_SD_Init();

/* SDRAM device configuration */
Expand Down Expand Up @@ -74,7 +74,7 @@ int main()

for (uint32_t counter = 0 ; ; ++counter ) {
EmbeddedEmulator_update_screen(&fb);
print_framebuffer(150, 0, 2);
print_framebuffer(150, 10, 2);

sprintf(msg, "%d", counter);
BSP_LCD_DisplayStringAt(5, 5, (uint8_t *)msg, LEFT_MODE);
Expand Down

0 comments on commit 935b1da

Please sign in to comment.