Просмотр исходного кода

Add dummy EIMSK in avr_emulation, undo avr/sleep.h workaround

main
PaulStoffregen 12 лет назад
Родитель
Сommit
17c876a5c9
3 измененных файлов: 8 добавлений и 3 удалений
  1. +4
    -3
      teensy3/avr/sleep.h
  2. +1
    -0
      teensy3/avr_emulation.cpp
  3. +3
    -0
      teensy3/avr_emulation.h

+ 4
- 3
teensy3/avr/sleep.h Просмотреть файл

#define sleep_mode() sleep_cpu() #define sleep_mode() sleep_cpu()


// workaround for early versions of Nordic's BLE library // workaround for early versions of Nordic's BLE library
#if defined(HAL_ACI_TL_H__) && defined(PLATFORM_H__)
#define EIMSK uint8_t EIMSKworkaround=0; EIMSKworkaround
#endif
// EIMSK moved to a dummy byte in avr_emulation...
//#if defined(HAL_ACI_TL_H__) && defined(PLATFORM_H__)
//#define EIMSK uint8_t EIMSKworkaround=0; EIMSKworkaround
//#endif


#endif #endif

+ 1
- 0
teensy3/avr_emulation.cpp Просмотреть файл



#endif #endif


uint8_t EIMSK = 0;





+ 3
- 0
teensy3/avr_emulation.h Просмотреть файл

}; };
extern SREGemulation SREG; extern SREGemulation SREG;



extern uint8_t EIMSK;

// these are not intended for public consumption... // these are not intended for public consumption...
#undef GPIO_BITBAND_ADDR #undef GPIO_BITBAND_ADDR
#undef GPIO_BITBAND #undef GPIO_BITBAND

Загрузка…
Отмена
Сохранить