msp430_ren_t ren;
} __attribute__ ((packed)) msp430_usci_uart_t;
+typedef struct {
+ uint8_t ctl0;
+ uint8_t ctl1;
+ uint16_t brx;
+ uint8_t mctl; /* ??? */
+ msp430_ren_t ren;
+} __attribute__ ((packed)) msp430_usci_spi_t;
+
/* Baud rates for UART mode. Only 32KHz modes work right now. */
typedef enum {
/* UCOS16=0. UMCTL = UCBRFx << 4 + UCBRSx << 1 + UCOS16.
typedef union {
msp430_usci_uart_t uart;
+ msp430_usci_spi_t spi;
} __attribute__ ((packed)) msp430_usci_config_t;
#endif