O! Токо седни про это писал. (С язык)

Author: A. Fig Lee [241 views] 2015-03-19 12:19:47

Наткнулся опять.
sdcc compiler - small device c compiler - на основе gcc, я его пользую для 8051 контроллеров.


void main()
{
uint8_t old_pi1 = 0; //РАБОТАЕТ ДЕКЛАРАЦИЯ
init();
radio_init();
U0CSR |= 0x40; //enable receiver
EA = 1; //Enable global interrupts
// uint8_t old_pi1 = 0; НЕ РАБОТАЕТ декларация в этом месте
while (1) {
if (flags & FLAG_RF_ERROR) {
flags &= ~FLAG_RF_ERROR;
// TODO reporting
// TODO reset radio - clear condition
while (1) {}
}
if (flags & FLAG_RF_DATA) {
flags &= ~FLAG_RF_DATA;
//TODO processing incoming data

while (RXFIFOCNT) {
data = RXFIRST;
}
}
if (old_pi1 != P1_1) {
old_pi1 = P1_1;
U1DBUF = 0x89;
}

}

}



From:
Password:
Subject:
[b] [i] [u] [s]     [quote] [code] [tmdb] [sarcasm]  [url=]Title[/url]  [img=]
Preview first NSFW
Smileys  BBCode help  Translit help
[b]bolded text[/b]bolded text
[i]italicized text[/i]italicized text
[u]underlined text[/u]underlined text
[s]strikethrough text[/s]strikethrough text
[url]http://example.org[/url]http://example.org
[url=http://example.com]Example[/url]Example
[quote]quoted text[/quote]quoted text
[code]monospaced text[/code]monospaced text
[sarcasm]reverse italicized text[/sarcasm]sarcasm
[color=red]Red Text[/color]Red Text
[color=#FF0000]Red Text[/color]Red Text
[color=FF0000]Red Text[/color]Red Text
[size=15]Large Text[/size]Large Text
[img=https://www.kirdyk.club/images/Tip-Hat.gif]
А=AБ=BВ=VГ=GД=DЕ=EЁ=JOЖ=ZHЗ=ZИ=I
Й=JК=KЛ=LМ=MН=NО=OП=PР=RС=SТ=T
У=UФ=FХ=HЦ=CЧ=CHШ=SHЩ=XHЪ=##Ы=YЬ=''
Э=WЮ=JUЯ=JA
а=aб=bв=vг=gд=dе=eё=joж=zhз=zи=i
й=jк=kл=lм=mн=nо=oп=pр=rс=sт=t
у=uф=fх=hц=cч=chш=shщ=xhъ=#ы=yь='
э=wю=juя=ja