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) {
setup();
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
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.