Switch PROGMEM related uses to regular flash (flat address space in avrxmega3)

This commit is contained in:
Allen Hill
2023-08-19 21:40:40 -04:00
parent 98e371b529
commit c07083423f
3 changed files with 50 additions and 62 deletions
-10
View File
@@ -27,7 +27,6 @@
#include "com232.h"
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
byte RS232_RxCharBuffer[25], RS232_RxCharBegin, RS232_RxCharEnd;
byte readkey;
@@ -58,15 +57,6 @@ void RS232_SendByte(byte Data) {
USART0_TXDATAL = Data; // send character
}
void RS232_Print_P(const char *str_addr) {
register byte c;
while ((c = pgm_read_byte(str_addr++))) {
if (c == '\n')
RS232_SendByte('\r');
RS232_SendByte(c);
}
}
void RS232_Print(const char *pBuf) {
register byte c;
while ((c = *pBuf++)) {