mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 02:23:49 +01:00
boards: *: remove SPI_*_EN now rework is merged
This commit is contained in:
parent
b81e6b8898
commit
3b14a584b8
@ -79,7 +79,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
||||||
#define SPI_0_EN 1 /* remove once SPI rework is done */
|
|
||||||
#define MEGA_PRR PRR /* Power Reduction Register is PRR */
|
#define MEGA_PRR PRR /* Power Reduction Register is PRR */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
||||||
#define SPI_0_EN 1 /* remove once SPI rework is done */
|
|
||||||
#define MEGA_PRR PRR0 /* Power Reduction Register is PRR0 */
|
#define MEGA_PRR PRR0 /* Power Reduction Register is PRR0 */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1)
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -72,7 +72,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1U)
|
|
||||||
|
|
||||||
/* SPI configuration */
|
/* SPI configuration */
|
||||||
#define SPI_BASE (USART_0)
|
#define SPI_BASE (USART_0)
|
||||||
|
|||||||
@ -74,7 +74,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1U)
|
|
||||||
|
|
||||||
/* SPI configuration */
|
/* SPI configuration */
|
||||||
#define SPI_BASE (USART_0)
|
#define SPI_BASE (USART_0)
|
||||||
|
|||||||
@ -72,7 +72,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1U)
|
|
||||||
|
|
||||||
/* SPI configuration */
|
/* SPI configuration */
|
||||||
#define SPI_BASE (USART_0)
|
#define SPI_BASE (USART_0)
|
||||||
|
|||||||
@ -103,8 +103,7 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
#define SPI_NUMOF 1 /* set to 0 to disable SPI */
|
||||||
#define SPI_0_EN 1 /* remove once SPI rework is done */
|
#define MEGA_PRR PRR0 /* Power Reduction Register */
|
||||||
#define MEGA_PRR PRR0 /* Power Reduction Resgister */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -72,7 +72,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1U)
|
|
||||||
|
|
||||||
/* SPI configuration */
|
/* SPI configuration */
|
||||||
#define SPI_BASE (USART_0)
|
#define SPI_BASE (USART_0)
|
||||||
|
|||||||
@ -72,7 +72,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SPI_NUMOF (1U)
|
#define SPI_NUMOF (1U)
|
||||||
#define SPI_0_EN (1U)
|
|
||||||
|
|
||||||
/* SPI configuration */
|
/* SPI configuration */
|
||||||
#define SPI_USE_USCI
|
#define SPI_USE_USCI
|
||||||
|
|||||||
@ -41,7 +41,7 @@ void spi_init(spi_t bus)
|
|||||||
/* power off the SPI peripheral */
|
/* power off the SPI peripheral */
|
||||||
MEGA_PRR |= (1 << PRSPI);
|
MEGA_PRR |= (1 << PRSPI);
|
||||||
/* trigger the pin configuration */
|
/* trigger the pin configuration */
|
||||||
spi_init_pins(bus);;
|
spi_init_pins(bus);
|
||||||
}
|
}
|
||||||
|
|
||||||
void spi_init_pins(spi_t bus)
|
void spi_init_pins(spi_t bus)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user