Created
April 7, 2014 21:13
-
-
Save jiriw/10057558 to your computer and use it in GitHub Desktop.
pamet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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