uspi icon indicating copy to clipboard operation
uspi copied to clipboard

Cant seem to get this to work on my os

Open ajh123 opened this issue 3 years ago • 3 comments

I have tried a few things and a few other drivers, this is my OS Can you create a fork and help , On line 102 of main.c , I would like to read the keyboard into a buffer that clears on every newline (Enter key)

ajh123 avatar Oct 14 '20 15:10 ajh123

At first your OS must provide some functions to USPi, so that it can work. These functions are declared in the header file uspios.h. I had a quick look and for example I'm not sure, if you have interrupt (IRQ) support, which is needed in any case. When all needed functions are provided, you can register a callback function, which receives the pressed keys using USPiKeyboardRegisterKeyPressedHandler().

rsta2 avatar Oct 15 '20 08:10 rsta2

Thank you, i will try and gets IRQs working, then we can try from there

ajh123 avatar Oct 15 '20 14:10 ajh123

OK. You need all services declared in uspios.h (e.g. memory allocation and timer too).

rsta2 avatar Oct 16 '20 05:10 rsta2