New ML support - w25x20cl chiperase menu (for testing)

This commit is contained in:
Robert Pelnar 2018-06-12 18:56:40 +02:00
parent 113ef0e963
commit e904188b4f

View File

@ -27,7 +27,7 @@
#endif //TMC2130
#include <stdarg.h>
#include <stdarg.h>
int lcd_puts_P(const char* str)
{
@ -36,11 +36,11 @@ int lcd_puts_P(const char* str)
int lcd_printf_P(const char* format, ...)
{
va_list args;
va_start(args, format);
int ret = vfprintf_P(lcdout, format, args);
va_end(args);
return ret;
va_list args;
va_start(args, format);
int ret = vfprintf_P(lcdout, format, args);
va_end(args);
return ret;
}
@ -5400,9 +5400,15 @@ void lcd_confirm_print()
}
/*static void lcd_test_menu()
#include "w25x20cl.h"
static void lcd_test_menu()
{
}*/
W25X20CL_SPI_ENTER();
w25x20cl_enable_wr();
w25x20cl_chip_erase();
w25x20cl_disable_wr();
}
static void lcd_main_menu()
{
@ -5573,7 +5579,7 @@ static void lcd_main_menu()
#endif
MENU_ITEM(submenu, _i("Support"), lcd_support_menu);////MSG_SUPPORT c=0 r=0
// MENU_ITEM(submenu, _i("Test"), lcd_test_menu);////MSG_SUPPORT c=0 r=0
MENU_ITEM(submenu, _i("W25x20XL init"), lcd_test_menu);////MSG_SUPPORT c=0 r=0
END_MENU();