OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_spi.c] - Diff between revs 52 and 61

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 52 Rev 61
Line 96... Line 96...
  SPI_CT &= ~((uint32_t)(1 << SPI_CT_EN));
  SPI_CT &= ~((uint32_t)(1 << SPI_CT_EN));
}
}
 
 
 
 
/**********************************************************************//**
/**********************************************************************//**
 
 * Enable SPI controller.
 
 **************************************************************************/
 
void neorv32_spi_enable(void) {
 
 
 
  SPI_CT |= ((uint32_t)(1 << SPI_CT_EN));
 
}
 
 
 
 
 
/**********************************************************************//**
 * Activate SPI chip select signal.
 * Activate SPI chip select signal.
 *
 *
 * @note The chip select output lines are LOW when activated.
 * @note The chip select output lines are LOW when activated.
 *
 *
 * @param cs Chip select line to activate (0..7).
 * @param cs Chip select line to activate (0..7).

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.