This commit is contained in:
parent
ef1767a4d2
commit
f7c6692a82
6 changed files with 155 additions and 0 deletions
26
firmware/Makefile
Normal file
26
firmware/Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
PROGRAM=fiatlux
|
||||
|
||||
EXTRA_CFLAGS=-O3
|
||||
|
||||
#Enable debugging
|
||||
#EXTRA_CFLAGS+=-DLWIP_DEBUG=1 -DHTTPD_DEBUG=LWIP_DBG_ON
|
||||
|
||||
EXTRA_COMPONENTS=extras/i2s_dma extras/ws2812_i2s extras/dhcpserver extras/mbedtls extras/sntp extras/cpp_support
|
||||
|
||||
LIBS = hal m
|
||||
|
||||
FLASH_MODE = dio
|
||||
|
||||
include ../modules/rtos/common.mk
|
||||
|
||||
html:
|
||||
@echo "Generating fsdata.."
|
||||
cd fsdata && ./makefsdata
|
||||
|
||||
test: unittest systest
|
||||
|
||||
unittest:
|
||||
true
|
||||
|
||||
systest:
|
||||
true
|
16
firmware/fiatlux.c
Normal file
16
firmware/fiatlux.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <espressif/esp_common.h>
|
||||
#include <esp/uart.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
|
||||
void user_init(void)
|
||||
{
|
||||
uart_set_baud(0, 115200);
|
||||
printf("SDK version: %s\n", sdk_system_get_sdk_version());
|
||||
|
||||
sdk_wifi_set_sleep_type(WIFI_SLEEP_MODEM);
|
||||
|
||||
while(1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue