CS_HIGH() and CS_LOW() mixed up?

This commit is contained in:
Markus Fröschle
2013-07-19 10:07:38 +00:00
parent 7982d415ef
commit 76634ec74c

View File

@@ -22,8 +22,8 @@
/* Copyright (C) 2012, mfro, all rights reserved. */
#define CS_HIGH() { dspi_fifo_val &= ~MCF_DSPI_DTFR_CS5; }
#define CS_LOW() { dspi_fifo_val |= MCF_DSPI_DTFR_CS5; }
#define CS_LOW() { dspi_fifo_val &= ~MCF_DSPI_DTFR_CS5; }
#define CS_HIGH() { dspi_fifo_val |= MCF_DSPI_DTFR_CS5; }
/*
* DCTAR_PBR (baud rate prescaler) and DCTAR_BR (baud rate scaler) together determine the SPI baud rate. The forumula is