macgver / gruvin9x

Automatically exported from code.google.com/p/gruvin9x
0 stars 0 forks source link

drivers.cpp missing a sei() #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
drivers.cpp in both trunk and branches/freesky in function 
eeprom_write_byte_cmp ...

{{{
///opt/cross/avr/include/avr/eeprom.h
static inline void __attribute__ ((always_inline))
eeprom_write_byte_cmp (uint8_t dat, uint16_t pointer_eeprom)
{
  //see /home/thus/work/avr/avrsdk4/avr-libc-1.4.4/libc/misc/eeprom.S:98 143
  while(EECR & (1<<EEWE)) /* make sure EEPROM is ready */
    ;
  EEAR  = pointer_eeprom;

  EECR |= 1<<EERE;
  if(dat == EEDR) return;

  EEDR  = dat;
  uint8_t flags=SREG;
  cli();
  EECR |= 1<<EEMWE;
  EECR |= 1<<EEWE;
  SREG = flags;
  // sei(); // !!! <<---
}
}}}

Original issue reported on code.google.com by gru...@gmail.com on 4 Mar 2011 at 1:46

GoogleCodeExporter commented 8 years ago

Original comment by gru...@gmail.com on 28 Jun 2011 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by gru...@gmail.com on 23 Sep 2011 at 1:53