Hello,
I want to
use SPI for efusA9 in DMA mode. What do I have to configure?
Currently I’m
testing SPI2: = SPI_A. Using DriverMethods 0 = IRQ and 1 = Polling it works.
For
DriverMethod 2 = DMA the method DeviceIoControl with IOCTL_NSPI_SEND delivers
FALSE and GetLastError() 1 (ERROR_INVALID_FUNCTION ???).
My registry
configuration:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\EFUSA9\SPI2]
"DriverMethod"=dword:00000002
"ClockFreq"=dword:00030d40
"DummyByte"=dword:00000000
"SPIMode"=dword:00000001
"Prefix"="SPI"
"Dll"="fs_nspi.dll"
"Order"=dword:00000067
"Index"=dword:00000002
"CsPin"=dword:00000048
"FriendlyName"="Native
SPI driver"
"SPIController"=dword:00000002
"IntPullUp"=dword:00000000
[HKEY_LOCAL_MACHINE\Drivers\SPIController1]
"ThreadSync"=dword:00000001
"DmaRxChannel"=dword:00000004
"DmaTxChannel"=dword:00000003
"DmaBufferSize"=dword:00001000
Best
regards,
Steffen