fix conflict of BIT() macro

This commit is contained in:
hathach
2024-01-15 18:42:39 +07:00
parent d192868d62
commit 1f2901e8b1
3 changed files with 6 additions and 8 deletions

View File

@@ -1358,7 +1358,7 @@ static int32_t ch341_set_baudrate (cdch_interface_t* p_cdc, uint32_t baud_rate,
* inverted.
*/
if ( p_cdc->ch34x.version > 0x27 ) {
val = (val | BIT(7));
val = (val | TU_BIT(7));
}
return ch341_write_reg ( p_cdc, CH341_REG_DIVISOR << 8 | CH341_REG_PRESCALER, val, complete_cb, user_data );