New ML support - changed _SEC_LANG reserved space to 10kb, added debug code

This commit is contained in:
Robert Pelnar 2018-05-23 16:11:12 +02:00
parent f00a9ce636
commit da3432e237
2 changed files with 6 additions and 4 deletions

View file

@ -1265,9 +1265,11 @@ void setup()
/// }
lang_select(0);
puts_P(_n("\nNew ML support"));
printf_P(_n(" lang_selected =%d\n"), lang_selected);
printf_P(_n(" &_SEC_LANG =%04x\n"), &_SEC_LANG);
printf_P(_n(" sizeof(_SEC_LANG) =%04x\n"), sizeof(_SEC_LANG));
printf_P(_n(" lang_selected = %d\n"), lang_selected);
printf_P(_n(" &_SEC_LANG = 0x%04x\n"), &_SEC_LANG);
printf_P(_n(" sizeof(_SEC_LANG) = 0x%04x\n"), sizeof(_SEC_LANG));
uint16_t ptr_lang_table0 = ((uint16_t)(&_SEC_LANG) + 0xff) & 0xff00;
printf_P(_n(" &_lang_table0 = 0x%04x\n"), ptr_lang_table0);
puts_P(_n("\n"));

View file

@ -21,7 +21,7 @@
//LANG - Multi-language support
//#define LANG_MODE 0 // primary language only
#define LANG_MODE 1 // sec. language support
#define LANG_SIZE_RESERVED 0x3000 // reserved space for secondary language (12kb)
#define LANG_SIZE_RESERVED 0x2800 // reserved space for secondary language (10kb)
#endif //_CONFIG_H