Skip to content

Commit e5a0b21

Browse files
updated asr6601 i2c
1 parent 1c3d9b3 commit e5a0b21

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cores/asr6601/asr6601.a

544 Bytes
Binary file not shown.

cores/asr6601/peripheral/HardwareSerial.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ bool HardwareSerial::begin(uint32_t baud, uint32_t config, int rxPin, int txPin,
4848

4949
void HardwareSerial::updateBaudRate(unsigned long baud)
5050
{
51+
_baud = baud;
5152
uartStart(baud,_config,_rxPin,_txPin);
5253
}
5354

@@ -120,8 +121,8 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
120121

121122
uint32_t HardwareSerial::baudRate()
122123
{
123-
//return _baud;
124-
return uartGetBaudRate(_uart);
124+
return _baud;
125+
//return uartGetBaudRate(_uart);
125126
}
126127
HardwareSerial::operator bool() const
127128
{

cores/asr6601/peripheral/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TwoWire::TwoWire(uint8_t bus_num)
5353
,txQueued(0)
5454
,transmitting(0)
5555
,last_error(I2C_ERROR_OK)
56-
,_timeOutMillis(500)
56+
,_timeOutMillis(50)
5757
{}
5858

5959
TwoWire::~TwoWire()

0 commit comments

Comments
 (0)