Revert "make init_serial() an emulator_inner function"

This reverts commit 6557009df9.
This commit is contained in:
Gwenhael Le Moine 2024-04-10 14:46:28 +02:00
parent 6557009df9
commit ebf8ded567
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 6 additions and 5 deletions

View file

@ -1013,10 +1013,6 @@ int init_emulator( void )
if ( !read_rom( normalized_rom_path ) )
exit( 1 ); /* can't read ROM */
init_serial();
/* init_display(); */
return 0;
}

View file

@ -338,6 +338,11 @@ extern void press_key( int hpkey ); /* used in ui_*.c */
extern void release_key( int hpkey ); /* used in ui_*.c */
extern void release_all_keys( void ); /* used in ui_*.c */
/****************/
/* emu_serial.c */
/****************/
extern int init_serial( void ); /* used in main.c */
/*****************/
/* emu_emulate.c */
/*****************/

View file

@ -77,6 +77,5 @@ extern int is_greater_or_equal_register( unsigned char* r1, unsigned char* r2, i
extern void serial_baud( int baud );
extern void transmit_char( void );
extern void receive_char( void );
extern int init_serial( void );
#endif /* _EMULATOR_INNER_H */

View file

@ -101,6 +101,7 @@ int main( int argc, char** argv )
/* Emulator */
init_emulator();
init_serial();
init_display();
/* (G)UI */