* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * - Neither the name of the Technische Universität Berlin nor the names
+ * - Neither the name of the Titanium Mirror, Inc. nor the names
* of its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+
/**
* This configuration provides the interface for using USCI_B1 in its SPI
* mode.
*
* @author R. Steve McKown <rsmckown@gmail.com>
*/
-
+
#if !defined(__MSP430_HAS_USCI_AB1__)
#error "Target does not have a USCI_B1 peripheral (SPI)"
#endif
interface SpiPacket;
interface ArbiterInfo; /* ??? */
}
- uses interface AsyncConfigure<const msp430_usci_spi_t*> as Configure;
+ uses {
+ interface AsyncConfigure<const msp430_usci_spi_t*> as Configure;
+ interface GeneralIO as CSn; /* wire only if a SPI slave only */
+ }
}
implementation {
enum {
SpiByte = SpiP;
SpiPacket = SpiP;
Configure = SpiP;
+ CSn = SpiP;
components Msp430UsciB1C as UsciC;
Resource = UsciC.Resource[CLIENT_ID];