URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 393 |
Rev 415 |
Line 77... |
Line 77... |
sper = (sper & ~SIMPLESPI_SPER_ICNT) | cnt;
|
sper = (sper & ~SIMPLESPI_SPER_ICNT) | cnt;
|
|
|
REG8((spi_base_adr[core] + SIMPLESPI_SPER)) = sper;
|
REG8((spi_base_adr[core] + SIMPLESPI_SPER)) = sper;
|
|
|
}
|
}
|
// slave_sel_dec is decoded (so asserted bit in right place)
|
// No decode on slave select lines, so assert correct bit to select slave
|
void
|
void
|
spi_core_slave_select(int core, char slave_sel_dec)
|
spi_core_slave_select(int core, char slave_sel_dec)
|
{
|
{
|
REG8((spi_base_adr[core] + SIMPLESPI_SSPU)) = slave_sel_dec;
|
REG8((spi_base_adr[core] + SIMPLESPI_SSPU)) = slave_sel_dec;
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.