Skip to content

Commit 62f9599

Browse files
Inline additional twi_** helper functions
Sketch uses 270799 bytes (25%) of program storage space. Maximum is 1044464 bytes. Global variables use 27944 bytes (34%) of dynamic memory, leaving 53976 bytes for local variables. Maximum is 81920 bytes. 401000cc l F .text1 00000014 twi_delay 401000f4 w F .text1 0000003b twi_releaseBus 4010015c g F .text1 00000246 twi_onTwipEvent 401003bc l F .text1 000001e7 onSdaChange 401005b0 l F .text1 000002f9 onSclChange 401008ac l F .text1 0000003b onTimer 0x000000004010741c _text_end = ABSOLUTE (.)
1 parent 423a5bf commit 62f9599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/core_esp8266_si2c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ inline void ICACHE_RAM_ATTR twi_reply(uint8_t ack)
364364
}
365365
}
366366

367-
void ICACHE_RAM_ATTR twi_stop(void)
367+
inline void ICACHE_RAM_ATTR twi_stop(void)
368368
{
369369
// send stop condition
370370
//TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);
@@ -376,7 +376,7 @@ void ICACHE_RAM_ATTR twi_stop(void)
376376
twi_state = TWI_READY;
377377
}
378378

379-
void ICACHE_RAM_ATTR twi_releaseBus(void)
379+
inline void ICACHE_RAM_ATTR twi_releaseBus(void)
380380
{
381381
// release bus
382382
//TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

0 commit comments

Comments
 (0)