mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
fix SDK 1.5 not building in recent gcc (update to SDK 2.1)
This commit is contained in:
1 parent
2f8e15a900
commit
ed79fe86aa
5 files changed
+4
-5
No files matched your search
@@ -13,7 +13,7 @@ build build/firmware.uf2: pico-sdk main.c net.c
|
|||||||
cd build && cmake -G "Unix Makefiles" .. && make
|
cd build && cmake -G "Unix Makefiles" .. && make
|
||||||
|
|
||||||
pico-sdk:
|
pico-sdk:
|
||||||
git clone --depth 1 -b 1.5.0 https://github.com/raspberrypi/pico-sdk $@
|
git clone --depth 1 -b 2.1.0 https://github.com/raspberrypi/pico-sdk $@
|
||||||
cd $@ && git submodule update --init
|
cd $@ && git submodule update --init
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
static struct mg_tcpip_if *s_ifp;
|
static struct mg_tcpip_if *s_ifp;
|
||||||
|
|
||||||
const uint8_t tud_network_mac_address[6] = {2, 2, 0x84, 0x6A, 0x96, 0};
|
uint8_t tud_network_mac_address[6] = {2, 2, 0x84, 0x6A, 0x96, 0};
|
||||||
|
|
||||||
static void blink_cb(void *arg) { // Blink periodically
|
static void blink_cb(void *arg) { // Blink periodically
|
||||||
gpio_put(PICO_DEFAULT_LED_PIN, !gpio_get_out_level(PICO_DEFAULT_LED_PIN));
|
gpio_put(PICO_DEFAULT_LED_PIN, !gpio_get_out_level(PICO_DEFAULT_LED_PIN));
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ build build/firmware.uf2: pico-sdk main.c net.c
|
|||||||
cd build && cmake -G "Unix Makefiles" .. && make
|
cd build && cmake -G "Unix Makefiles" .. && make
|
||||||
|
|
||||||
pico-sdk:
|
pico-sdk:
|
||||||
git clone --depth 1 -b 1.5.0 https://github.com/raspberrypi/pico-sdk $@
|
git clone --depth 1 -b 2.1.0 https://github.com/raspberrypi/pico-sdk $@
|
||||||
cd $@ && git submodule update --init
|
cd $@ && git submodule update --init
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ int hal_led_pin(void) {
|
|||||||
|
|
||||||
static struct mg_tcpip_if *s_ifp;
|
static struct mg_tcpip_if *s_ifp;
|
||||||
|
|
||||||
const uint8_t tud_network_mac_address[6] = {2, 2, 0x84, 0x6A, 0x96, 0};
|
uint8_t tud_network_mac_address[6] = {2, 2, 0x84, 0x6A, 0x96, 0};
|
||||||
|
|
||||||
bool tud_network_recv_cb(const uint8_t *buf, uint16_t len) {
|
bool tud_network_recv_cb(const uint8_t *buf, uint16_t len) {
|
||||||
mg_tcpip_qwrite((void *) buf, len, s_ifp);
|
mg_tcpip_qwrite((void *) buf, len, s_ifp);
|
||||||
|
|||||||
@@ -3,4 +3,3 @@
|
|||||||
#define MG_ENABLE_TCPIP 1
|
#define MG_ENABLE_TCPIP 1
|
||||||
#define MG_ENABLE_TCPIP_DRIVER_INIT 0
|
#define MG_ENABLE_TCPIP_DRIVER_INIT 0
|
||||||
#define MG_ENABLE_PACKED_FS 1
|
#define MG_ENABLE_PACKED_FS 1
|
||||||
|
|
||||||
Reference in new issue
Block a user