[spid] set SPI_TX_RX_DELAY_NS to 10ms, down from 100ms

This commit is contained in:
Bart Van Der Meerssche 2011-02-12 11:47:31 +01:00
parent cbc7949d95
commit 849c671175
1 changed files with 3 additions and 2 deletions

View File

@ -31,9 +31,10 @@ local arg = arg or {} -- needed when this code is not loaded via the interpreter
local DEBUG = (arg[1] == '-d') local DEBUG = (arg[1] == '-d')
local SPI_DEV = '/dev/spidev0.0' local SPI_DEV = '/dev/spidev0.0'
local SPI_MAX_CLK_SPEED_HZ = 10e6 local SPI_MAX_CLK_SPEED_HZ = 1e6
local SPI_MIN_BYTE_DELAY_US = 250 local SPI_MIN_BYTE_DELAY_US = 250
local SPI_TX_RX_DELAY_NS = 10e7 local SPI_TX_RX_DELAY_NS = 1e7
local SPI_CT_DELAY_NS = 5e8
local POLL_TIMEOUT_MS = 100 local POLL_TIMEOUT_MS = 100
local TIMERFD_ENABLE = 1 local TIMERFD_ENABLE = 1