32 Commits

Author SHA1 Message Date
Konrad Beckmann
086f50e8d2 Use a global enum definition for appids 2021-11-02 22:09:00 +01:00
Konrad Beckmann
9c48cc2b4a Fix indentation 2021-10-10 23:30:55 +02:00
Konrad Beckmann
11b1dd2dd7 Don't load state when resuming from sleep if STATE_SAVING is 0 2021-10-10 23:30:26 +02:00
Brian Pugh
bfd9f79fff change startup gui override macro to just the TIME button 2021-09-06 17:52:25 +02:00
Konrad Beckmann
f604478126 Add more debug features
- Show the IDCODE of the device
- Adds ability to enable/disable the debug clocks
2021-08-13 00:49:34 +02:00
northskysl
d9542eb709 STM32 RTC Hardware Support & User Interface for Watch and Calendar (#128)
* Update rg_main.c

Added a menu to view and configure RTC parameters. It is activated by pressing 'TIME' button in retro-go main menu.

* Update main.c

Enable LSE oscillator and enable it as RTC clock source. Additionally enable CRS Sync LSE.

* Added time display to RTC menu

Added time display to RTC menu and also modified RTC initialization code so that it does not set the RTC date and time. Assuming that a fresh RTC has sensible values.

* Add date display to time menu

Added date display to time menu

* Fix predivs for LSE

Fixed predivs for LSE clock

* move RTC stuff to rg_rtc

Consolidate all RTC functions to rg_rtc. So far getters have been implemented only.

* Time setup UI + setters for Time

Setters for Time have been implemented and Time setup has been added into the UI to use them.

* Date setup added

Date setup with callbacks added

* Add real time datetime display

Modified the time menu to display and update in real time.

* Add a function to return Unix time

Unix time is returned as a 64-bit time_t. Casting to uint32_t will yield time in seconds since 1st Jan 1970.

* Fix setters' return type

Fixing warnings about wrong setter return type.

* Update rg_rtc.h

Missed the .h while updating return types of setters.

* Update rg_rtc.c

Add a nicer year display

* Reactivate LSI

This should fix an issue with DACs that causes Brightness control not to work.
2021-08-12 14:34:00 +02:00
Konrad Beckmann
ade7cb6fc5 New flash driver and integrated loader 2021-08-03 17:06:54 +02:00
Rustam Zinurov
94062c331c Issue 101: Remember the last selected game in the menu after reset (#108)
Remember the last selected game in the menu after reset

Closes #101 

Add two extra variables to odroid settings:
 - main_menu_selected_tab
 - main_menu_cursor

* Reset active tab on power off

* Update retro-go-stm32 submodule to latest main

* Remember the last selected game in the menu on power off
2021-07-14 22:21:52 +02:00
Konrad Beckmann
52442187ee Remove TODO 2021-07-03 01:54:40 +02:00
Konrad Beckmann
c73bd95d74 Suspend after idling in the main menu
Default timeout is 10 minutes.

Also adds a configurable timeout for this.

Closes #80
2021-07-03 01:45:02 +02:00
Konrad Beckmann
e79c4fab0b Commit settings when going to sleep 2021-07-03 00:42:02 +02:00
Konrad Beckmann
4be407159f emulators: Render frames and pause on power resume
When the user presses the power button from the off
state, the last played game will load. A few frames
will be rendered and the emulator will be paused.

Closes #10
2021-07-01 21:02:16 +02:00
Konrad Beckmann
c45445cf81 Skip loading last played game if user holds down any extra button 2021-07-01 00:31:58 +02:00
Konrad Beckmann
559e2fc6ec Resume last played game when booting
Closes #38
2021-07-01 00:24:01 +02:00
Konrad Beckmann
a55120d69e debug: Disable action on a menu item 2021-06-17 12:28:27 +02:00
Konrad Beckmann
0459feb40a debug: Add more flash debug features 2021-06-17 12:22:46 +02:00
Konrad Beckmann
b250e5c555 Add debug menu to show flash jdec id 2021-06-17 10:30:58 +02:00
Scorp0rX0r
0e2edb09d2 Fix LCD init and merge resume support 2021-02-07 16:36:09 +01:00
Jan Dumon
c8c7c6cb35 Increase speed of keeping keys pressed 2021-01-22 17:43:03 +01:00
Jan Dumon
aab0a71eb9 When keeping pressed repeat directional keys in menus 2021-01-21 06:36:35 +01:00
Konrad Beckmann
4fc8552bf2 launcher: Show options with the pause/set button
Makes it more consistent with the in-game settings that uses the same button.
2021-01-08 23:41:24 +01:00
Jan Dumon
00e5d9a25c Added a watchdog to avoid power-cycles when things go wrong 2021-01-08 14:28:48 +01:00
Konrad Beckmann
ec2fe6b548 Fix dependency issues for githash.h 2020-12-28 00:56:31 +01:00
Konrad Beckmann
aff237dddc Remove incorrect include 2020-12-28 00:10:16 +01:00
Konrad Beckmann
bd02b964fe Fix some additional warnings 2020-12-27 22:01:33 +01:00
Konrad Beckmann
10325ad55e Power button in main menu 2020-12-27 16:21:52 +01:00
Konrad Beckmann
04b704a1d4 Improve menus 2020-12-27 16:21:44 +01:00
Thomas Roth
8bb62c2af8 Working NES and GB switching 2020-12-27 16:20:14 +01:00
Konrad Beckmann
1374269566 Lots of stuff, menu working better than before 2020-12-27 16:19:40 +01:00
Konrad Beckmann
fd69b060dc Remove hacks that are not needed anymore 2020-12-27 16:19:36 +01:00
Thomas Roth
da2df65684 Working GB ROM selection 2020-12-27 16:18:04 +01:00
Konrad Beckmann
d4854c7310 Add initial GUI hack 2020-12-27 16:17:27 +01:00