hi.
using your package gives me an error.
code:
Code:
program Touch;
{$apptype arm7} //...or arm7
{$define ARM7} //...or arm7, according to apptype
{$mode objfpc} // required for some libc funcs implementation
uses
ctypes; // required by nds headers!
{$include nds.inc} // headers!
var
tempPos: touchPosition;
procedure CatchTheTouch();
begin
tempPos := touchReadXY();
IPC^.touchX := tempPos.px;
IPC^.touchY := tempPos.py;
end;
begin
// Reset the clock if needed
rtcReset();
irqInit();
irqSet(IRQ_VCOUNT, @CatchTheTouch);
irqEnable(IRQ_VCOUNT);
while true do
swiWaitForVBlank();
end.
error:
ppcarmnds touch.pp7 -Sg
dma.inc(111,83) Error: Identifier not found "DMA_START_FIFO"
dma.inc(111,84) Error: Illegal expression
touch.pp7(35) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
i have tried it standalone and tried it with copying over the existing
libnds-directory. both gave me the same results.
is the error on my side?
Bookmarks