Skip to content

Instantly share code, notes, and snippets.

@jiriw
Created April 7, 2014 21:13
Show Gist options
  • Save jiriw/10057558 to your computer and use it in GitHub Desktop.
Save jiriw/10057558 to your computer and use it in GitHub Desktop.
pamet
void plneni_pameti_pokus(char maximum)
{
uint16_t doba_nabehu;
unsigned char ct = 0;
uint16_t *mem;
mem = malloc(BUFFER_SIZE);
for(doba_nabehu = 0; doba_nabehu < BUFFER_SIZE; doba_nabehu++){ //pocet_vzorku glob prom - const
mem[doba_nabehu] = maximum;
ct++;
uart_putc(mem[doba_nabehu]);
if(ct == 8) //(index&0x0F)
{
uart_puts("\r\n");
ct = 0;
}
}
free(mem);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment