"Ported" the code to Plain C

A project log for EXPS/2

External PS/2 keyboard for Gradiente Expert MSX computer

danjovicdanjovic 04/10/2021 at 00:470 Comments

I have just ported the source code toplain C which required me to practically rewrite the PS/2 keyboard library. Besides that it was necessary to create the prototype of various functions and a main() function

int main (void) {
   for (;;) loop ();

 It was possible of course to rename the loop() function and call setup() from inside.

Also added a makefile. It was necessary to change one DLL (msys-1.0.dll) to make it possible to compile the code in windows 10 .

The last modification was to force the USART to turn off, otherwise the pins PD0 and PD1 would not respond to the writes.

  UCSR0B = 0; // disable USART