[an error occurred while processing this directive] [an error occurred while processing this directive]
Проще не придумаешь
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Radist 24 июня 2002 г. 15:25
В ответ на: Как в AVR IAR-С записать char в unsigned int ??????????? отправлено колян 21 июня 2002 г. 23:22

#define BYTELOW(v) (*(((unsigned char *) (&v) + 1)))
#define BYTEHIGH(v) (*((unsigned char *) (&v)))
int x;
void test1 (void) {
BYTELOW(x) = lo;
BYTEHIGH (x) = hi;
}


Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru