Ответ: да
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено -Тумблер- 31 октября 2005 г. 12:25
В ответ на: Ответ: А какие выводят из флэша? Есть стандартные в библиотеке? отправлено Mty 31 октября 2005 г. 12:12


memcpy memcpy_P memcpy with the source string in program space.
printf printf_P printf with the format string in program space.
puts puts_P puts with the string in program space.
scanf scanf_P scanf with the format string in program space.
sscanf sscanf_P sscanf with the format string in program space.
strcmp strcmp_P strcmp with the second string in program space.
strcpy strcpy_P strcpy with the second string in program space.
strerror strerror_P strerror with the error message returned in program space.
strlen strlen_P Returns the length of a string in program space.
strncmp strncmp_P strncmp with the second string in program space.

strncpy strncpy_P strncpy with the second string in program space.


Можно и так:

const char flash my_str []= "123";

void main (void)
{
typestr ((short)my_str) ;

.
.
.
}

void typestr (short p)
{

for (;;)
{
if (_LPM (p) == 0) break;
putbyte (_LPM(p++));
}
}



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

Ответы



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

E-mail: info@telesys.ru