stash
This commit is contained in:
parent
60c642bc15
commit
5abdb22c54
2 changed files with 26 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include <spiflash.h>
|
#include <spiflash.h>
|
||||||
|
|
||||||
#include <espressif/user_interface.h>
|
#include <espressif/user_interface.h>
|
||||||
|
#include <esp/uart.h>
|
||||||
#include <espressif/esp_system.h>
|
#include <espressif/esp_system.h>
|
||||||
#include <rboot/rboot.h>
|
#include <rboot/rboot.h>
|
||||||
#include <rboot-ota/rboot-api.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
|
#define MAX_IMAGE_SIZE 0x100000
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
|
|
@ -337,3 +337,13 @@ extern "C" void httpd_task(void *pvParameters) {
|
||||||
|
|
||||||
vTaskDelete(nullptr);
|
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());
|
||||||
|
};
|
Loading…
Reference in a new issue