Page 1 of 1

Interfacing with more hardware

Posted: Sat Jan 19, 2013 10:03 pm
by thejrcrafter
I've finished the Cambridge assembly tutorial for the RPi, but I would like to take this further:
-A better keyboard driver
My keyboard doesn't work.
-Enable sound
At least being able to have a few different pitches to start with is fine, nothing fancy.
-Reading from SD
Also executing these files (they will be binary files, eventually I will try to get assembly to execute)
-Mouse
-GUI
This won't be terribly hard, I already have graphics libraries.

If anybody was able to pull any of these off, or is trying to, please post here with whatever work you have done so far (please provide at least a library file, and a main.s file that does something with that library. Comments are helpful.)

Thanks for the help,
Mathew

Re: Interfacing with more hardware

Posted: Sat Jan 19, 2013 11:31 pm
by DexOS
thejrcrafter wrote:I've finished the Cambridge assembly tutorial for the RPi, but I would like to take this further:
-A better keyboard driver
My keyboard doesn't work.
-Enable sound
At least being able to have a few different pitches to start with is fine, nothing fancy.
-Reading from SD
Also executing these files (they will be binary files, eventually I will try to get assembly to execute)
-Mouse
-GUI
This won't be terribly hard, I already have graphics libraries.

If anybody was able to pull any of these off, or is trying to, please post here with whatever work you have done so far (please provide at least a library file, and a main.s file that does something with that library. Comments are helpful.)

Thanks for the help,
Mathew
"-Enable sound "
demo out soon

"Reading from SD"
see DexBasic for example of read SD sector

"Also executing these files (they will be binary files, eventually I will try to get assembly to execute"
very simple load into memory and then call address the same as you would a function.

"-Mouse"
the keyboard driver now has mouse support

"-GUI"
demo out soon

Re: Interfacing with more hardware

Posted: Sun Jan 20, 2013 12:15 am
by thejrcrafter
it seems that dexbasic is actually more like BASIC than assembly though... is there any way to do it directly through ARMv6? right now the two points that i really want to get are sound and sdcard. is there anywhere on the interwebz where i can find the assembly code for the raspbian kernel.img?

Re: Interfacing with more hardware

Posted: Sun Jan 20, 2013 12:21 am
by thejrcrafter
actually, i think that getting the keyboard driver to work should be before those other two. for reference, my keyboard is by apple :( Model #: A1048. where would i find the keyboard driver in the OS template to edit, anyway?

Re: Interfacing with more hardware

Posted: Sun Jan 20, 2013 1:26 am
by Joeboy
Not asm, but here's a baremetal audio project: https://github.com/Joeboy/pixperiments/ ... /pitracker

includes/pi/audio.c is probably a good place to start looking.