kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fix emulator compilation errors
rodzic
fc3ee1d6ed
commit
610da21013
|
@ -25,6 +25,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
radio_state Radio_State = {12, 7, 3, 4, 1, false};
|
||||
|
||||
void systemBootstrap();
|
||||
|
||||
int CLIMenu() {
|
||||
|
@ -99,15 +101,11 @@ void *startCLIMenu() {
|
|||
}
|
||||
} while (choice != EXIT);
|
||||
printf("exiting\n");
|
||||
SDL_Quit();
|
||||
SDL_DestroyWindow(window);
|
||||
exit(0);
|
||||
};
|
||||
|
||||
|
||||
int emulator_main() {
|
||||
Radio_State = (radio_state){12, 7, 3, 4, 1, false};
|
||||
|
||||
pthread_t gui_thread, cli_thread, radio_thread;
|
||||
int err1, err2;
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
#ifndef EMULATOR_H
|
||||
#define EMULATOR_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
@ -30,11 +32,6 @@
|
|||
#define SCREEN_HEIGHT 128
|
||||
#endif
|
||||
|
||||
|
||||
SDL_Renderer *renderer; /* SDL renderer */
|
||||
SDL_Window *window; /* SDL window */
|
||||
SDL_Texture *displayTexture; /* SDL rendering surface */
|
||||
|
||||
enum choices {
|
||||
VAL_RSSI=1,
|
||||
VAL_BAT,
|
||||
|
@ -55,4 +52,6 @@ typedef struct {
|
|||
bool PttStatus;
|
||||
} radio_state;
|
||||
|
||||
radio_state Radio_State;
|
||||
extern radio_state Radio_State;
|
||||
|
||||
#endif /* EMULATOR_H */
|
||||
|
|
Ładowanie…
Reference in New Issue