2023-05-10 18:20:37 -04:00
|
|
|
#ifndef SYSTEM_H_
|
|
|
|
#define SYSTEM_H_
|
|
|
|
|
2024-06-12 15:05:14 +02:00
|
|
|
#include "global_state.h"
|
2023-06-06 08:19:46 -04:00
|
|
|
|
2024-10-08 10:27:32 -05:00
|
|
|
void SYSTEM_init_system(GlobalState * GLOBAL_STATE);
|
2024-10-09 11:52:55 -05:00
|
|
|
void SYSTEM_init_peripherals(GlobalState * GLOBAL_STATE);
|
2024-01-07 00:55:17 -05:00
|
|
|
void SYSTEM_task(void * parameters);
|
2023-06-06 08:19:46 -04:00
|
|
|
|
2024-06-12 15:05:14 +02:00
|
|
|
void SYSTEM_notify_accepted_share(GlobalState * GLOBAL_STATE);
|
|
|
|
void SYSTEM_notify_rejected_share(GlobalState * GLOBAL_STATE);
|
|
|
|
void SYSTEM_notify_found_nonce(GlobalState * GLOBAL_STATE, double found_diff, uint8_t job_id);
|
|
|
|
void SYSTEM_notify_mining_started(GlobalState * GLOBAL_STATE);
|
|
|
|
void SYSTEM_notify_new_ntime(GlobalState * GLOBAL_STATE, uint32_t ntime);
|
2023-05-10 18:20:37 -04:00
|
|
|
|
2024-10-08 10:27:32 -05:00
|
|
|
void SYSTEM_update_overheat_mode(GlobalState * GLOBAL_STATE);
|
|
|
|
|
|
|
|
|
2023-06-06 09:06:30 -04:00
|
|
|
#endif /* SYSTEM_H_ */
|