mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Switch PROGMEM related uses to regular flash (flat address space in avrxmega3)
This commit is contained in:
@@ -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++)) {
|
||||
|
||||
Reference in New Issue
Block a user