[an error occurred while processing this directive]
|
//==============================================================================
// Установить CS flash
// void spi_cs_on();
.global _spi_cs_on;
_spi_cs_on:
iopg = SPI0_Controller_Page;
ar = io(SPIFLG0);
rts (db);
ar = ar and ~SPI0VALUE1;
io(SPIFLG0) = ar;//==============================================================================
// Снять CS flash
// void spi_cs_off();
.global _spi_cs_off;
_spi_cs_off:
iopg = SPI0_Controller_Page;
ar = io(SPIFLG0);
rts (db);
ar = ar or SPI0VALUE1;
io(SPIFLG0) = ar;
E-mail: info@telesys.ru