AVRGCC a texty

MK info@mcu.cz
Pátek Srpen 20 11:48:51 CEST 2004


> Problem je v tom, ze toto bude predanou adresu interpretovat jako adresu 
> do RAM. Ja to potrebuju premluvit, aby hledal data na predane adrese v 
> FLASH.

Problem je v tom, ze neposlete ani kousek Vasi rutinky :-)))

const char __attribute__((progmem)) text[]="blablablablabla";

void puts_p_str(const char *p_str){
  char c;

  while ((c = __lpm_inline((uint16_t) p_str++)) != 0)  putc(c);
}

S pozdravem
MK





Další informace o konferenci Hw-list