Skip to content

Commit

Permalink
* updated with correction in serial_api,c for finding mux setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilpanayamparambil authored and kpurusho committed Sep 1, 2015
1 parent 5079132 commit 1ac74c3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ uint32_t serial_find_mux_settings (serial_t *obj)
if ((pSERIAL_S(obj)->pins[USART_RXFLOW_INDEX] == NC) && (pSERIAL_S(obj)->pins[USART_TXFLOW_INDEX] == NC)) {
if (pinpad[USART_TX_INDEX] == 0) {
mux_setting |= SERCOM_USART_CTRLA_TXPO(0);
} else if(pinpad[USART_RX_INDEX] == 2) {
} else if(pinpad[USART_TX_INDEX] == 2) {
mux_setting |= SERCOM_USART_CTRLA_TXPO(1);
} else {
mux_setting = mux_setting; // dummy condition
}
} else { // for hardware flow control and uart // expecting the tx in pad 0, rts in pad2 and cts in pad 3
if((pinpad[USART_TX_INDEX] == 0) && (pinpad[USART_RXFLOW_INDEX]/*rts pin*/ == 2) && (pinpad[USART_TXFLOW_INDEX] /*cts pin*/ == 3)) {
Expand Down

0 comments on commit 1ac74c3

Please sign in to comment.