X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430Usci.h;h=575889d1bd5b85ebd9ad7a48d370ed40b3d90444;hb=a4c683fb39c46c4a0382866e7ca1ab65a524fcf4;hp=94e54cf5cc054fe753f14fda36c7b2e8909a245c;hpb=86e1f38f71efaa4ef35d676dde514fb9884f124e;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430Usci.h b/tos/chips/msp430/usci/Msp430Usci.h index 94e54cf5..575889d1 100644 --- a/tos/chips/msp430/usci/Msp430Usci.h +++ b/tos/chips/msp430/usci/Msp430Usci.h @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * Header definitions for the USCI peripheral in newer msp430 processors. * A USCI peripheral provides two communications devices, denoted A and B. @@ -38,10 +38,10 @@ * * A devices offer UART, LIN, IrDA and SPI modes of operation. B parts are * limited to SPI and I2C modes. - * + * * @author R. Steve McKown */ - + #ifndef MSP430_USCI_h #define MSP430_USCI_h @@ -101,8 +101,9 @@ typedef enum { UBRX_1MHZ_19200=54, UMCTL_1MHZ_19200=(0 << 4) + (5 << 1) + 0, UBRX_1MHZ_38400=27, UMCTL_1MHZ_38400=(0 << 4) + (2 << 1) + 0, UBRX_1MHZ_115200=9, UMCTL_1MHZ_115200=(0 << 4) + (1 << 1) + 0, - UBRX_1E6MHZ_9600=104, UMCTL_1E6MHZ_9600=(0 << 4) + (1 << 1) + 0, - UBRX_1E6MHZ_115200=8, UMCTL_1E6MHZ_115200=(0 << 4) + (6 << 1) + 0, + UBRX_1E6HZ_9600=104, UMCTL_1E6HZ_9600=(0 << 4) + (1 << 1) + 0, + UBRX_1E6HZ_19200=52, UMCTL_1E6HZ_19200=(0 << 4) + (0 << 1) + 0, + UBRX_1E6HZ_115200=8, UMCTL_1E6HZ_115200=(0 << 4) + (6 << 1) + 0, } msp430_usci_uart_rate_t; typedef struct { @@ -129,10 +130,7 @@ typedef struct { uint8_t ctl0; uint8_t ctl1; uint16_t brx; - uint8_t i2cie; uint8_t i2coa; - uint8_t i2csa; - bool uclisten; msp430_ren_t ren; } msp430_usci_i2c_t;