This driver allows you to run two SRAMC devices side-by-side as two separate rdisk devices.
28 lines
466 B
Plaintext
28 lines
466 B
Plaintext
always
|
|
file rd_sramc.o
|
|
require rdisk
|
|
define SRAMC_ENABLED YES
|
|
define SRAMC%0_ENABLED YES
|
|
end always
|
|
|
|
option data
|
|
define SW_DATA_PORT $TRIS(%1)
|
|
define SW_DATA_PIN $PIN(%1)
|
|
end option
|
|
|
|
option lda
|
|
define SW_LDA_PORT $TRIS(%1)
|
|
define SW_LDA_PIN $PIN(%1)
|
|
end option
|
|
|
|
option rd
|
|
define SW_RD_PORT $TRIS(%1)
|
|
define SW_RD_PIN $PIN(%1)
|
|
end option
|
|
|
|
option wr
|
|
define SW_WR_PORT $TRIS(%1)
|
|
define SW_WR_PIN $PIN(%1)
|
|
end option
|
|
|