This commit is contained in:
j3d1 2021-07-10 15:40:46 +02:00
parent 60c642bc15
commit 5abdb22c54
2 changed files with 26 additions and 1 deletions

View file

@ -11,6 +11,7 @@
#include <spiflash.h>
#include <espressif/user_interface.h>
#include <esp/uart.h>
#include <espressif/esp_system.h>
#include <rboot/rboot.h>
#include <rboot-ota/rboot-api.h>
@ -49,6 +50,20 @@ void system_init_config() {
}
}
int fputc(int ch, FILE *f)
{
uart_putc(0, '0');
uart_putc(0, ch);
return ch;
}
int puts (const char *str)
{
char c;
while((c=*str++))fputc(c,0);
return str;
}
#define MAX_IMAGE_SIZE 0x100000
struct {

View file

@ -336,4 +336,14 @@ extern "C" void httpd_task(void *pvParameters) {
httpd_init();
vTaskDelete(nullptr);
}
}
#include <stdio.h>
#include <espressif/esp_common.h>
void test(){
printf("foo\n");
printf("Warning: WiFi config, sysparam not initialized\n");
printf("SDK version: %s\n", sdk_system_get_sdk_version());
};