diff options
| author | Bdale Garbee <bdale@gag.com> | 2015-07-16 13:36:59 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2015-07-16 13:36:59 -0600 | 
| commit | f4f0f044df1251d64d44bf62d25b488fd04a05c8 (patch) | |
| tree | 12efee1447a67d8cf37b6f447c011708264b8266 /src/stm/ao_serial_stm.c | |
| parent | b25690062ac04a588ad4d11740597c20e516eb1a (diff) | |
| parent | 570daace9caf7647a09c53d5c75593cc4c98b93b (diff) | |
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'src/stm/ao_serial_stm.c')
| -rw-r--r-- | src/stm/ao_serial_stm.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/src/stm/ao_serial_stm.c b/src/stm/ao_serial_stm.c index 2568cf43..88f2d029 100644 --- a/src/stm/ao_serial_stm.c +++ b/src/stm/ao_serial_stm.c @@ -86,9 +86,9 @@ ao_usart_getchar(struct ao_stm_usart *usart)  }  static inline uint8_t -_ao_usart_sleep(struct ao_stm_usart *usart) +_ao_usart_sleep_for(struct ao_stm_usart *usart, uint16_t timeout)  { -	return ao_sleep(&usart->rx_fifo); +	return ao_sleep_for(&usart->rx_fifo, timeout);  }  void @@ -217,9 +217,9 @@ _ao_serial1_pollchar(void)  }  uint8_t -_ao_serial1_sleep(void) +_ao_serial1_sleep_for(uint16_t timeout)  { -	return _ao_usart_sleep(&ao_stm_usart1); +	return _ao_usart_sleep_for(&ao_stm_usart1, timeout);  }  void @@ -260,9 +260,9 @@ _ao_serial2_pollchar(void)  }  uint8_t -_ao_serial2_sleep(void) +_ao_serial2_sleep_for(uint16_t timeout)  { -	return _ao_usart_sleep(&ao_stm_usart2); +	return _ao_usart_sleep_for(&ao_stm_usart2, timeout);  }  void @@ -303,9 +303,9 @@ _ao_serial3_pollchar(void)  }  uint8_t -_ao_serial3_sleep(void) +_ao_serial3_sleep_for(uint16_t timeout)  { -	return _ao_usart_sleep(&ao_stm_usart3); +	return _ao_usart_sleep_for(&ao_stm_usart3, timeout);  }  void  | 
