Compare commits

...

3 commits

Author SHA1 Message Date
afa011b50e stash
All checks were successful
continuous-integration/drone/push Build is passing
2021-11-18 09:47:34 +01:00
5abdb22c54 stash 2021-11-18 09:47:34 +01:00
60c642bc15 stash 2021-11-18 09:45:00 +01:00
4 changed files with 1168439 additions and 1 deletions

1168411
firmware/livc.s Normal file

File diff suppressed because it is too large Load diff

View file

@ -33,6 +33,8 @@ unsigned syslog_data_after(unsigned local_tail) {
extern "C" int syslog_copy_out(char *out, int len, unsigned local_tail) {
unsigned cnt = 0;
// printf("<syslog(%d): [%d, %d] `%.*s`\n", streams, (local_tail & syslog_buffer_size), head,
// head - (local_tail & syslog_buffer_size), &syslog_buf[local_tail % syslog_buffer_size]);
while (cnt < syslog_data_after(local_tail) && cnt < len) {
out[cnt] = syslog_buf[local_tail % syslog_buffer_size + cnt];
cnt++;

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());
};