Danke!
Kann mir jemand sagen was dann folgende Makros für cbi(...) und sbi(...) in einfachen PORTx-Zuweisungen etc. wäre ich blick die nämlich nicht :
Code:/* __cbi / __sbi require constant port < 0x20 and constant bit */ #define __cbi(port, bit) \ __asm__ __volatile__ ( \ "cbi %0,%1" \ : /* no outputs */ \ : "I" ((uint8_t)(port)), \ "I" ((uint8_t)(bit)) \ ) #define __sbi(port, bit) \ __asm__ __volatile__ ( \ "sbi %0,%1" \ : /* no outputs */ \ : "I" ((uint8_t)(port)), \ "I" ((uint8_t)(bit)) \ )
Lesezeichen