diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index 78bca6f07f1360b475d480549137f3477807702b..84076b757f72c67bf831f2fd933e001ecb6f7c7b 100755 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/bsp/simulator/drivers/sdl_fb.c @@ -11,6 +11,8 @@ #define SDL_SCREEN_WIDTH 800 #define SDL_SCREEN_HEIGHT 480 +extern void rt_hw_exit(void); + struct sdlfb_device { struct rt_device parent; @@ -307,7 +309,7 @@ static void *sdl_loop(void *lpParam) if (quit) break; } - //exit(0); + rt_hw_exit(); return 0; }