[riot-notifications] [RIOT-OS/RIOT] cpu/stm32l1: fix issue when writing NULL bytes to eeprom (#11314)
notifications at github.com
Fri Apr 12 16:07:03 CEST 2019
aabadie commented on this pull request.
+static void _write_byte(uint32_t addr, uint8_t data)
+ uint32_t tmp = 0;
+ uint32_t data_mask = 0;
+ /* Check the parameters */
+ assert(addr <= EEPROM_SIZE + EEPROM_START_ADDR);
+ /* Wait for last operation to be completed */
+ /* stm32l1xxx cat 1, 2 &3 can't write NULL bytes RefManual p78*/
+ if(data != (uint8_t) 0x00)
Still need a bit of unscrustify ;)
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications