Hi freaks,
I have small program. I have main *.c file and *.h file with #definitions. In AVR Studio 5 this SW working fine. But, now in AVR 6.0 I have this problem.
1) When in code is instruction sei() or cli(), it has no effect. I have to manually set/clear I bit in SREG.
2) I have tried add in *h file commands
#define SEI_MACRO SREG |=(1 << 7);
#define CLI_MACRO SREG &=~(1 << 7);
But build is fail "SEI_MACRO is not defined..." or "CLI_MACRO is not defined.."
I have to place this definition in main *.c file.
When I place theese definition in main *.c file everything is ok.
Where is problem sei() or cli() is not defined in #include
- CPU AT Tiny 2313
- Optimization Os
- AVR Studio 6.0