Changeset 629:b641b3511145 for nxos/base/drivers/rs485.c
- Timestamp:
- 08/15/08 19:25:11 (5 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
nxos/base/drivers/rs485.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nxos/base/drivers/rs485.c
r628 r629 179 179 } 180 180 181 bool nx_rs485_stop(void) { 182 NX_ASSERT(rs485_state.status != RS485_UNINITIALIZED); 183 if (rs485_state.status != RS485_IDLE) { 184 return FALSE; 185 } 181 void nx_rs485_shutdown(void) { 182 NX_ASSERT(rs485_state.status == RS485_IDLE); 186 183 187 184 *AT91C_US0_CR = AT91C_US_RSTTX | /* Transmitter reset */ … … 193 190 194 191 rs485_state.status = RS485_UNINITIALIZED; 195 return TRUE;196 192 } 197 193
