Commit graph

79 commits

Author SHA1 Message Date
Gered 6fddecb577 various logging cleanups
- remove all the INFOx, ERRORn, etc style faux-variadic logging macros
  and replace with real variadic macro equivalents
- switch all direct usages of trace(), log2(), log3() and log_num() to
  use the equivalent logging macros instead. i guess that these logging
  macros were added later on at some point but not all code was switched
  over to use them at that time?
- remove trace(), log2(), log3() and lognum() functions
- some formatting cleanups
- rename log() to log_msg() so as to not ever risk conflicting with
  log() from math.h
- use snprintf() instead of sprintf() in log.c
2025-02-09 18:23:14 -05:00
Gered 44bf82cfb1 missing comma 2025-02-09 18:02:44 -05:00
Gered 60e7c34a85 fix spaces/tabs issues in Makefile 2025-02-09 14:02:13 -05:00
Gered 3ea6ec9d8a fix compiler-generated dependencies file usage in Makefile
was unintentionally dropping part of the file extension so the deps
files weren't actually being used. oops.
2025-02-09 13:53:35 -05:00
Gered b35e5efd01 change build output location. make srec2bin.py more flexible
the Makefile now builds all artifacts, including final output s37 and
bin files under "build" so as to not clutter up the root directory
and making it easier to gitignore all build artifacts now and into the
future.

as well, the Makefile now has a new target to invoke srec2bin.py for us
to build ready-to-flash artifacts

srec2bin.py has been updated to be more flexible and do some minimal
argument error checking. it now also will output a CSV file for use
with FoenixMgr's flash-bulk option. this is useful as the number of
8k bin files can and will vary now and into the future, especially if
you are building with -O2 optimizations for size, etc.
2025-02-09 13:02:02 -05:00
Gered 47e3489141 fix cold bootup keyboard issue on the f256k
KBD_OPTICAL (0xf01dc0) is only "valid" on F256K2 hardware. i would
assume that this value is unknown on non-F256K2 hardware, thus sometimes
you might read some garbage value from here perhaps?

what i observed on my f256k was that always on cold bootup (that is,
booting from flash) the keyboard would never work. hitting reset or
booting from a ram build would not exhibit the same problem.

sometimes (somewhat more rarely) kbd_init() would lock up at some
point, presumably when it was trying to initialize/scan the non-existent
optical keyboard.

so far this also *seems* to resolve intermittent issues with reads to
the SD card on my f256k locking up. best not to read from those new
F256K2 registers on non-K2 devices!
2025-02-09 12:47:19 -05:00
Gered e16eaca30c add build date/time to startup log output 2025-02-08 22:25:38 -05:00
Gered 3c96d30f7a update gitignore 2025-02-07 16:37:24 -05:00
Gered dcec60f478 re-enable uart debug output by default
at least for now
2025-02-07 16:36:55 -05:00
Gered 50cc3c333c re-enable uart channel device driver installation
i'm not really sure why this was commented out to begin with. possibly
due to the broken parsing of the channel path string in uart_open, but
i am unsure exactly.
2025-02-07 16:36:41 -05:00
Gered 42d8a985e5 fix uart_open's incorrect use of strtok_r, fixing uart device init 2025-02-07 16:36:32 -05:00
Gered 8e50c61349 update gitignore 2025-02-02 15:32:22 -05:00
Gered 7704756b72 add new Makefile
i am really not a big fan of the current "Makefile in each directory"
build system in this project. sorry.

i don't have any C256 devices, so i've not kept anything for them in
this new Makefile. to the best of my knowledge, you can't get any of
these devices anymore anyway, so i don't particular care. sorry again.
2025-02-02 15:32:05 -05:00
Peter Weingartner 21fe8ef908 Added timeout to PS/2 keyboard init 2025-01-08 20:41:58 -05:00
Peter Weingartner 7641982319 Corrections for interrupt race condition 2025-01-05 20:48:50 -05:00
Peter Weingartner 97cedc8659 Added code to initialize PS/2 keyboards 2025-01-05 20:24:24 -05:00
pweingar dbe1fd298b
Merge pull request #3 from pweingar/fast-scroll
Fast scroll
2025-01-04 15:27:42 -05:00
pweingar 9b7dab7c2a
Merge branch 'main' into fast-scroll 2025-01-04 15:27:31 -05:00
Peter Weingartner 5279776737 Exposed F256 BREAK key to IOCTRL 2024-12-26 18:40:07 -05:00
Peter Weingartner 83d3c74839 Window scrolling speed up
Tweaked the case where we are scrolling only part of the window to use MVN/MVP to move lines.
2024-12-24 22:27:11 -05:00
Peter Weingartner 275e0d7ec8 Basic scroll case speed-up 2024-12-24 19:58:13 -05:00
Peter Weingartner 9dacef1f57 Logging reduced and redirected
Moved logging up to ERROR level and moved it off the UART to avoid possibly clobbering user programs needing the serial port.
2024-12-22 22:33:11 -05:00
Peter Weingartner 206f2d5e6b Fixed SDC sector count logic for SDC read/write 2024-12-22 21:21:47 -05:00
Peter Weingartner c5b0e00e04 Added MODEL_FOENIX_F256JR2 target 2024-12-20 20:42:46 -05:00
Peter Weingartner d738cb5645 Fixed PS/2 keyboard on F256jr and jr2 2024-12-12 14:15:28 -05:00
pweingar bced1b694c
Merge pull request #2 from pweingar/v1.01
V1.01
2024-12-03 14:13:28 -05:00
Peter Weingartner 21055e3dfb Fixed Low-level IEC Calls 2024-12-03 14:11:23 -05:00
Peter Weingartner 4322c38f28 Fixed bug with sys_txt_set_mode 2024-11-22 12:07:29 -05:00
Peter Weingartner 6d38129600 Exposed low-level IEC functions. Official v1.01 numbering. 2024-11-18 14:58:18 -05:00
Peter Weingartner d60cb6a00c Altered how top of ram is set 2024-11-15 21:19:19 -05:00
Peter Weingartner 27e352727b Moved boot sprites and tiles to the top of RAM 2024-11-15 19:54:44 -05:00
Peter Weingartner dd97ce82b9 More file cleanup
Removed some unnecessary included files... reduced size of the build a little.
2024-11-15 19:13:41 -05:00
Peter Weingartner f2ad2d84aa Cleanup of files
Removed old files. Moved files for currently unsupported systems to sub-folders. Added documentation about what file does what.
2024-11-13 20:16:46 -05:00
Peter Weingartner a78354c677 Added ability for sys_proc_exit to return to a shell program 2024-11-06 19:43:45 -05:00
pweingar 947c4f96be Fixed prototype of sys_get_info 2024-11-06 15:10:59 -05:00
Peter Weingartner 11e0533af3 Corrected bug with how the boot code was checking the internal SD card. 2024-11-05 20:27:10 -05:00
pweingar 3de8e37a1a Fixed booting from internal SD 2024-10-31 21:42:48 -04:00
pweingar 3b80d10cd8 Applied previous update to F256jr 2024-10-26 21:46:41 -04:00
pweingar 38e7c174e8 Fixed sign extension issue in PGZ loader and memory size text in boot screen. 2024-10-26 21:40:12 -04:00
Peter Weingartner cc29260a28 Corrected a few public functions 2024-10-13 16:14:05 -04:00
Peter Weingartner 257f41bd2f F256K2e Optical Keyboard Support 2024-09-19 20:54:59 -04:00
Peter Weingartner ef473f74ac Updated 64TASS Client Files 2024-09-14 12:08:21 -04:00
Peter Weingartner 0b0124d883 Updates to client bindings 2024-09-11 16:41:51 -04:00
Peter Weingartner d526615245 Update SDC for F256K2e. Started ImageView sample 2024-09-10 21:49:39 -04:00
Peter Weingartner 74c953a46b Updates to Calypsi Client Sample 2024-09-10 14:27:23 -04:00
Peter Weingartner ccbcc7303b Started client samples. Fixed some UNIT errors in makefiles 2024-09-06 16:03:42 -04:00
Peter Weingartner 43a9d48cfc Boot screen tweaks
Made boot window larger and fixed clock speed reporting.
2024-09-01 09:55:34 -04:00
Peter Weingartner 8a3d413af8 Added a crude IRQ and NMI override vector. 2024-08-28 19:39:21 -04:00
Peter Weingartner 6e76c28d41 New flashable memory map and layout 2024-08-27 18:34:08 -04:00
Peter Weingartner 5f28453c11 Boot refinements and correcting machine IDs. 2024-08-26 19:54:12 -04:00