SAMA5D3: Fix some typos in last blind changes backported from the SAM4e. And verified

This commit is contained in:
Gregory Nutt 2014-03-25 16:11:33 -06:00
parent 9a724d8b36
commit f1e6ea46ed
2 changed files with 3 additions and 1 deletions

View File

@ -254,7 +254,7 @@ void up_lowputc(char ch)
{
/* Wait for the transmitter to be available */
while (((getreg32(SAM_CONSOLE_VBASE + SAM_UART_SR_OFFSET) &
while ((getreg32(SAM_CONSOLE_VBASE + SAM_UART_SR_OFFSET) &
UART_INT_TXEMPTY) == 0);
/* Disable interrupts so that the test and the transmission are

View File

@ -3373,6 +3373,7 @@ static int sam_ep_configure(struct usbdev_ep_s *ep,
bool last)
{
struct sam_ep_s *privep = (struct sam_ep_s *)ep;
struct sam_usbdev_s *priv;
int ret;
/* Verify parameters. Endpoint 0 is not available at this interface */
@ -3394,6 +3395,7 @@ static int sam_ep_configure(struct usbdev_ep_s *ep,
* configured.
*/
priv = privep->dev;
priv->devstate = UDPHS_DEVSTATE_CONFIGURED;
}