Skip to content

Commit

Permalink
Added serial_break_clear/serial_break_set
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelse committed Jul 26, 2013
1 parent 698001c commit 153153f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,11 @@ void serial_clear(serial_t *obj) {
void serial_pinout_tx(PinName tx) {
pinmap_pinout(tx, PinMap_UART_TX);
}

void serial_break_clear(serial_t *obj) {
obj->uart->LCR &= ~(1 << 6);
}

void serial_break_set(serial_t *obj) {
obj->uart->LCR |= 1 << 6;
}

0 comments on commit 153153f

Please sign in to comment.