mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-29 16:54:14 +01:00
421d0438f3
This PR completely removes `task.c / task.h` from `sw/controller` STM32 code. Additionally, these changes were implemented: - Updated IPL3 - Added new diagnostic data (voltage and temperature) readout commands for USB and N64 - Fixed some issues with FlashRAM save type - Joybus timings were relaxed to accommodate communication with unsynchronized master controller (like _Datel Game Killer_, thanks @RWeick) - N64 embedded test program now waits for release of button press to proceed - Fixed issue where, in rare circumstances, I2C peripheral in STM32 would get locked-up on power-up - LED blinking behavior on SD card access was changed - LED blink duration on save writeback has been extended - Minor fixes through the entire of hardware abstraction layer for STM32 code - Primer now correctly detects issues with I2C bus during first time programming - `primer.py` script gives more meaningful error messages - Fixed bug where RTC time was always written on N64FlashcartMenu boot - sc64deployer now displays "Diagnostic data" instead of "MCU stack usage"
38 lines
788 B
C
38 lines
788 B
C
#ifndef CFG_H__
|
|
#define CFG_H__
|
|
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
typedef enum {
|
|
SAVE_TYPE_NONE = 0,
|
|
SAVE_TYPE_EEPROM_4K = 1,
|
|
SAVE_TYPE_EEPROM_16K = 2,
|
|
SAVE_TYPE_SRAM = 3,
|
|
SAVE_TYPE_FLASHRAM = 4,
|
|
SAVE_TYPE_SRAM_BANKED = 5,
|
|
SAVE_TYPE_SRAM_1M = 6,
|
|
__SAVE_TYPE_COUNT
|
|
} save_type_t;
|
|
|
|
|
|
uint32_t cfg_get_identifier (void);
|
|
bool cfg_query (uint32_t *args);
|
|
bool cfg_update (uint32_t *args);
|
|
bool cfg_query_setting (uint32_t *args);
|
|
bool cfg_update_setting (uint32_t *args);
|
|
void cfg_set_rom_write_enable (bool value);
|
|
save_type_t cfg_get_save_type (void);
|
|
void cfg_get_time (uint32_t *args);
|
|
void cfg_set_time (uint32_t *args);
|
|
void cfg_reset_state (void);
|
|
|
|
void cfg_init (void);
|
|
|
|
void cfg_process (void);
|
|
|
|
|
|
#endif
|