help not in flash (program space) because there is not enough space in RAM
This commit is contained in:
parent
1fdf680207
commit
7f637bc705
|
@ -27,7 +27,7 @@
|
||||||
#include <util/delay.h> /* Convenience functions for busy-wait delay loops */
|
#include <util/delay.h> /* Convenience functions for busy-wait delay loops */
|
||||||
#include <avr/interrupt.h> /* Interrupts */
|
#include <avr/interrupt.h> /* Interrupts */
|
||||||
#include <avr/wdt.h> /* Watchdog timer handling */
|
#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 "main.h"
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
|
@ -35,7 +35,6 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
/* help strings */
|
/* help strings */
|
||||||
/*
|
|
||||||
const char help_00[] PROGMEM = "commands:\n";
|
const char help_00[] PROGMEM = "commands:\n";
|
||||||
const char help_01[] PROGMEM = "\thelp display this help\n";
|
const char help_01[] PROGMEM = "\thelp display this help\n";
|
||||||
const char help_02[] PROGMEM = "\treset reset boad and settings\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_13,
|
||||||
help_14,
|
help_14,
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
volatile uint8_t* PORTS[CHANNELS_1+CHANNELS_2] = {&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD};
|
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};
|
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)
|
void help(void)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
char* str;
|
char* str;
|
||||||
for (uint8_t i=0; i<sizeof(help_table)/sizeof(PGM_P); i++) {
|
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]))));
|
str = malloc(strlen_PF((uint_farptr_t)pgm_read_word(&(help_table[i]))));
|
||||||
|
@ -269,7 +266,6 @@ void help(void)
|
||||||
printf(str);
|
printf(str);
|
||||||
free(str);
|
free(str);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
|
|
Loading…
Reference in New Issue