cpu/msp430: remove non-effective code for msp430f2xxx
This commit is contained in:
parent
d4ee66cfb7
commit
17b322494d
@ -53,16 +53,16 @@ int spi_init_master(spi_t dev, spi_conf_t conf, spi_speed_t speed)
|
||||
/* set polarity and phase */
|
||||
switch (conf) {
|
||||
case SPI_CONF_FIRST_RISING:
|
||||
SPI_DEV->TCTL |= (USART_TCTL_CKPH & ~(USART_TCTL_CKPL));
|
||||
SPI_DEV->TCTL |= USART_TCTL_CKPH;
|
||||
break;
|
||||
case SPI_CONF_SECOND_RISING:
|
||||
SPI_DEV->TCTL |= (~(USART_TCTL_CKPH) & ~(USART_TCTL_CKPL));
|
||||
/* nothing to be done here */
|
||||
break;
|
||||
case SPI_CONF_FIRST_FALLING:
|
||||
SPI_DEV->TCTL |= (USART_TCTL_CKPH & USART_TCTL_CKPL);
|
||||
break;
|
||||
case SPI_CONF_SECOND_FALLING:
|
||||
SPI_DEV->TCTL |= (~(USART_TCTL_CKPH) & USART_TCTL_CKPL);
|
||||
SPI_DEV->TCTL |= USART_TCTL_CKPL;
|
||||
break;
|
||||
default:
|
||||
/* invalid clock setting */
|
||||
@ -128,7 +128,7 @@ int spi_init_master(spi_t dev, spi_conf_t conf, spi_speed_t speed)
|
||||
SPI_DEV->CTL0 |= USCI_SPI_CTL0_CKPH;
|
||||
break;
|
||||
case SPI_CONF_SECOND_RISING:
|
||||
/* nothong to be done here */
|
||||
/* nothing to be done here */
|
||||
break;
|
||||
case SPI_CONF_FIRST_FALLING:
|
||||
SPI_DEV->CTL0 |= (USCI_SPI_CTL0_CKPH & USCI_SPI_CTL0_CKPL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user