mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-15 10:18:11 +08:00
32/288, no TLS by default
This commit is contained in:
parent
93bcde0176
commit
3965aecfd4
@ -85,7 +85,7 @@ int main(void) {
|
|||||||
const char *sizes[] = {"128/192", "96/224", "64/256", "32/288"};
|
const char *sizes[] = {"128/192", "96/224", "64/256", "32/288"};
|
||||||
uint32_t mode = (FLASH->OBR >> 8) & 3U;
|
uint32_t mode = (FLASH->OBR >> 8) & 3U;
|
||||||
MG_INFO(("RAM/FLASH configuration: %s", sizes[mode]));
|
MG_INFO(("RAM/FLASH configuration: %s", sizes[mode]));
|
||||||
if (mode != 2) set_ram_size(2);
|
// if (mode != 2) set_ram_size(2);
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
ethernet_init(); // Initialise ethernet pins
|
ethernet_init(); // Initialise ethernet pins
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#define MG_ARCH MG_ARCH_NEWLIB
|
#define MG_ARCH MG_ARCH_NEWLIB
|
||||||
#define MG_OTA MG_OTA_FLASH
|
#define MG_OTA MG_OTA_FLASH
|
||||||
#define MG_DEVICE MG_DEVICE_CH32V307
|
#define MG_DEVICE MG_DEVICE_CH32V307
|
||||||
#define MG_TLS MG_TLS_BUILTIN
|
|
||||||
|
|
||||||
#define MG_ENABLE_TCPIP 1
|
#define MG_ENABLE_TCPIP 1
|
||||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||||
|
@ -4,8 +4,8 @@ PROVIDE( _stack_size = __stack_size );
|
|||||||
|
|
||||||
MEMORY {
|
MEMORY {
|
||||||
/* Possible configurations: 192/128, 224/96, 256/64, 288/32 */
|
/* Possible configurations: 192/128, 224/96, 256/64, 288/32 */
|
||||||
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256k
|
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 288k
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64k
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32k
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS {
|
SECTIONS {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user