2014-12-22 12:35:05 +01:00
|
|
|
#ifndef __USER_CONFIG_H__
|
|
|
|
#define __USER_CONFIG_H__
|
|
|
|
|
2015-02-12 04:05:28 +01:00
|
|
|
// #define DEVKIT_VERSION_0_9 1 // define this only if you use NodeMCU devkit v0.9
|
2015-01-01 15:22:05 +01:00
|
|
|
|
2014-12-30 19:47:44 +01:00
|
|
|
// #define FLASH_512K
|
2014-12-22 12:35:05 +01:00
|
|
|
// #define FLASH_1M
|
|
|
|
// #define FLASH_2M
|
|
|
|
// #define FLASH_4M
|
2015-02-11 14:01:57 +01:00
|
|
|
// #define FLASH_8M
|
|
|
|
// #define FLASH_16M
|
2014-12-30 19:47:44 +01:00
|
|
|
#define FLASH_AUTOSIZE
|
2015-03-15 18:05:06 +01:00
|
|
|
#define FLASH_SAFE_API
|
2014-12-22 12:35:05 +01:00
|
|
|
|
2015-11-12 02:57:07 +01:00
|
|
|
// Byte 107 of esp_init_data_default, only one of these 3 can be picked
|
|
|
|
#define ESP_INIT_DATA_ENABLE_READVDD33
|
|
|
|
//#define ESP_INIT_DATA_ENABLE_READADC
|
|
|
|
//#define ESP_INIT_DATA_FIXED_VDD33_VALUE 33
|
2015-01-24 16:36:04 +01:00
|
|
|
|
2015-11-12 02:57:07 +01:00
|
|
|
// #define DEVELOP_VERSION
|
2015-02-04 18:42:14 +01:00
|
|
|
#ifdef DEVELOP_VERSION
|
2014-12-22 12:35:05 +01:00
|
|
|
#define NODE_DEBUG
|
2015-02-04 18:32:57 +01:00
|
|
|
#define COAP_DEBUG
|
2015-10-30 04:25:02 +01:00
|
|
|
#define BIT_RATE_DEFAULT BIT_RATE_74880
|
|
|
|
#else
|
|
|
|
#define BIT_RATE_DEFAULT BIT_RATE_9600
|
|
|
|
#endif /* DEVELOP_VERSION */
|
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
|
|
|
|
#define NODE_ERROR
|
|
|
|
|
|
|
|
#ifdef NODE_DEBUG
|
|
|
|
#define NODE_DBG c_printf
|
|
|
|
#else
|
|
|
|
#define NODE_DBG
|
|
|
|
#endif /* NODE_DEBUG */
|
|
|
|
|
|
|
|
#ifdef NODE_ERROR
|
|
|
|
#define NODE_ERR c_printf
|
|
|
|
#else
|
|
|
|
#define NODE_ERR
|
|
|
|
#endif /* NODE_ERROR */
|
|
|
|
|
2015-01-05 03:09:51 +01:00
|
|
|
#define ICACHE_STORE_TYPEDEF_ATTR __attribute__((aligned(4),packed))
|
|
|
|
#define ICACHE_STORE_ATTR __attribute__((aligned(4)))
|
|
|
|
#define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
|
2015-01-01 15:22:05 +01:00
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
#define CLIENT_SSL_ENABLE
|
|
|
|
#define GPIO_INTERRUPT_ENABLE
|
2015-06-05 04:12:24 +02:00
|
|
|
//#define MD2_ENABLE
|
2015-06-03 03:11:23 +02:00
|
|
|
#define SHA2_ENABLE
|
2014-12-22 12:35:05 +01:00
|
|
|
|
|
|
|
// #define BUILD_WOFS 1
|
|
|
|
#define BUILD_SPIFFS 1
|
|
|
|
|
2015-07-31 08:29:29 +02:00
|
|
|
#define SPIFFS_CACHE 1
|
|
|
|
|
2015-01-26 15:25:04 +01:00
|
|
|
// #define LUA_NUMBER_INTEGRAL
|
2014-12-22 12:35:05 +01:00
|
|
|
|
2015-11-09 02:03:29 +01:00
|
|
|
#define READLINE_INTERVAL 80
|
2015-10-08 05:14:51 +02:00
|
|
|
#define LUA_TASK_PRIO USER_TASK_PRIO_0
|
|
|
|
#define LUA_PROCESS_LINE_SIG 2
|
2015-11-09 00:46:08 +01:00
|
|
|
#define LUA_OPTIMIZE_DEBUG 2
|
2015-02-12 04:05:28 +01:00
|
|
|
|
|
|
|
#ifdef DEVKIT_VERSION_0_9
|
2015-10-08 05:14:51 +02:00
|
|
|
#define KEYLED_INTERVAL 80
|
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
#define KEY_SHORT_MS 200
|
|
|
|
#define KEY_LONG_MS 3000
|
|
|
|
#define KEY_SHORT_COUNT (KEY_SHORT_MS / READLINE_INTERVAL)
|
|
|
|
#define KEY_LONG_COUNT (KEY_LONG_MS / READLINE_INTERVAL)
|
|
|
|
|
|
|
|
#define LED_HIGH_COUNT_DEFAULT 10
|
|
|
|
#define LED_LOW_COUNT_DEFAULT 0
|
2015-02-12 04:05:28 +01:00
|
|
|
#endif
|
2014-12-22 12:35:05 +01:00
|
|
|
|
2015-09-30 19:24:18 +02:00
|
|
|
#define ENDUSER_SETUP_AP_SSID "SetupGadget"
|
|
|
|
|
2015-07-29 10:49:18 +02:00
|
|
|
#define STRBUF_DEFAULT_INCREMENT 32
|
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
#endif /* __USER_CONFIG_H__ */
|