* @author R. Steve McKown <rsmckown@gmail.com>
*/
-#include "msp430usci.h"
+#include "Msp430Usci.h"
+#include "msp430hardware.h"
-generic module HplMsp430UsciIntP(
+module HplMsp430UsciInt0P(
uint8_t USCIABxRX_VECTOR,
uint8_t USCIABxTX_VECTOR,
uint8_t UCAxRXIFG,
uint8_t Ucxifg_addr
) @safe() {
provides {
- interface HplMsp430UsciInt as IntA; /* Interrupts for USCI_Ax */
- interface HplMsp430UsciInt as IntB; /* Interrupts for USCI_Bx */
+ interface HplMsp430UsciInt as IntA; /* Interrupts for USCI_A0 */
+ interface HplMsp430UsciInt as IntB; /* Interrupts for USCI_B0 */
}
}
#define UCBxCTL1 (*TCAST(volatile uint8_t* ONE, Ucbxctl1_addr))
#define UCBxRXBUF (*TCAST(volatile uint8_t* ONE, Ucbxrxbuf_addr))
+#if 0
MSP430REG_NORACE(UCxIFG);
MSP430REG_NORACE(UCAxCTL0);
MSP430REG_NORACE(UCAxCTL1);
MSP430REG_NORACE(UCBxCTL0);
MSP430REG_NORACE(UCBxCTL1);
MSP430REG_NORACE(UCBxRXBUF);
+#endif
/* This USCI_Ax and USCI_Bx interrupt vector signals receive events for UART
* and SPI modes, and status events for I2C modes. Only Bx can do I2C.