//::::::::::::::::::::::::::::::::::::::::::::::::::::::
// Передача строки
//::::::::::::::::::::::::::::::::::::::::::::::::::::::
void USART0_Sendstr(void *strbuf, u8_t mem_type)
{
u8_t *sram_ptr = 0;
u8_t __flash *flash_ptr;
switch(mem_type)
{
case SRAM_TYPE:
sram_ptr = (u8_t*)strbuf;
while (*sram_ptr != 0) USART0_Transmit(*sram_ptr++);
break;
case FLASH_TYPE:
flash_ptr = (u8_t __flash*)strbuf;
while (*flash_ptr != 0) USART0_Transmit(*flash_ptr++);
break;
}
}