Compare commits
3 commits
stable
...
jedi/dev/s
Author | SHA1 | Date | |
---|---|---|---|
afa011b50e | |||
5abdb22c54 | |||
60c642bc15 |
4 changed files with 1168439 additions and 1 deletions
1168411
firmware/livc.s
Normal file
1168411
firmware/livc.s
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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++;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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());
|
||||
};
|
Loading…
Reference in a new issue