help not in flash (program space) because there is not enough space in RAM

This commit is contained in:
King Kévin 2013-10-19 19:56:24 +02:00
parent 1fdf680207
commit 7f637bc705
1 changed files with 1 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#include <util/delay.h> /* Convenience functions for busy-wait delay loops */
#include <avr/interrupt.h> /* Interrupts */
#include <avr/wdt.h> /* Watchdog timer handling */
//#include <avr/pgmspace.h> /* Program Space Utilities */
#include <avr/pgmspace.h> /* Program Space Utilities */
#include "main.h"
#include "uart.h"
@ -35,7 +35,6 @@
#include "settings.h"
/* help strings */
/*
const char help_00[] PROGMEM = "commands:\n";
const char help_01[] PROGMEM = "\thelp display this help\n";
const char help_02[] PROGMEM = "\treset reset boad and settings\n";
@ -68,7 +67,6 @@ PGM_P const help_table[] PROGMEM = {
help_13,
help_14,
};
*/
volatile uint8_t* PORTS[CHANNELS_1+CHANNELS_2] = {&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD};
volatile uint8_t* DDRS[CHANNELS_1+CHANNELS_2] = {&DDRC,&DDRC,&DDRC,&DDRC,&DDRC,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD};
@ -261,7 +259,6 @@ void ioinit(void)
void help(void)
{
/*
char* str;
for (uint8_t i=0; i<sizeof(help_table)/sizeof(PGM_P); i++) {
str = malloc(strlen_PF((uint_farptr_t)pgm_read_word(&(help_table[i]))));
@ -269,7 +266,6 @@ void help(void)
printf(str);
free(str);
}
*/
}
int main(void)