I am having the problem that my program now uses 32kb which means
the memory is full.
void print(char *x)
{
while(*x) {
SerialWrite(*x++);}
}
SerialWrite looks like:
void SerialWrite(unsigned char c)
{
while(tx_buffer_size>250);
ES=0;
tx_buffer_size++;
if (tx_buffer_empty == 0){
txBuffer[tx_in++] = c;}
else {
tx_buffer_empty = 0;
SBUF = c;}
ES=1;
}
//I
↧