2014-12-22 12:35:05 +01:00
|
|
|
#ifndef __USER_CONFIG_H__
|
|
|
|
#define __USER_CONFIG_H__
|
|
|
|
|
2014-12-31 07:26:51 +01:00
|
|
|
#define NODE_VERSION_MAJOR 0U
|
|
|
|
#define NODE_VERSION_MINOR 9U
|
2015-01-05 03:09:51 +01:00
|
|
|
#define NODE_VERSION_REVISION 5U
|
2015-01-01 15:22:05 +01:00
|
|
|
#define NODE_VERSION_INTERNAL 0U
|
2014-12-31 07:26:51 +01:00
|
|
|
|
2015-01-07 08:57:17 +01:00
|
|
|
#define NODE_VERSION "NodeMCU 0.9.5"
|
2015-01-26 15:25:04 +01:00
|
|
|
#define BUILD_DATE "build 20150127"
|
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
|
2014-12-30 19:47:44 +01:00
|
|
|
#define FLASH_AUTOSIZE
|
2014-12-23 05:08:32 +01:00
|
|
|
// #define DEVELOP_VERSION
|
|
|
|
#define FULL_VERSION_FOR_USER
|
2014-12-22 12:35:05 +01:00
|
|
|
|
2015-01-24 16:36:04 +01:00
|
|
|
#define USE_OPTIMIZE_PRINTF
|
|
|
|
|
2015-02-04 18:42:14 +01:00
|
|
|
#ifdef DEVELOP_VERSION
|
2014-12-22 12:35:05 +01:00
|
|
|
#define NODE_DEBUG
|
|
|
|
#endif /* DEVELOP_VERSION */
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
// #define BUILD_WOFS 1
|
|
|
|
#define BUILD_SPIFFS 1
|
|
|
|
|
|
|
|
#define LUA_USE_MODULES
|
|
|
|
#ifdef LUA_USE_MODULES
|
|
|
|
#define LUA_USE_MODULES_NODE
|
|
|
|
#define LUA_USE_MODULES_FILE
|
|
|
|
#define LUA_USE_MODULES_GPIO
|
|
|
|
#define LUA_USE_MODULES_WIFI
|
|
|
|
#define LUA_USE_MODULES_NET
|
|
|
|
#define LUA_USE_MODULES_PWM
|
|
|
|
#define LUA_USE_MODULES_I2C
|
2015-01-16 21:41:34 +01:00
|
|
|
#define LUA_USE_MODULES_SPI
|
2014-12-22 12:35:05 +01:00
|
|
|
#define LUA_USE_MODULES_TMR
|
|
|
|
#define LUA_USE_MODULES_ADC
|
|
|
|
#define LUA_USE_MODULES_UART
|
|
|
|
#define LUA_USE_MODULES_OW
|
|
|
|
#define LUA_USE_MODULES_BIT
|
2015-01-23 04:48:05 +01:00
|
|
|
#define LUA_USE_MODULES_MQTT
|
2015-02-05 18:40:46 +01:00
|
|
|
#define LUA_USE_MODULES_WS2812
|
2014-12-22 12:35:05 +01:00
|
|
|
#endif /* LUA_USE_MODULES */
|
|
|
|
|
2015-01-26 15:25:04 +01:00
|
|
|
// #define LUA_NUMBER_INTEGRAL
|
2015-01-26 12:57:54 +01:00
|
|
|
#ifndef LUA_NUMBER_INTEGRAL
|
2015-01-26 10:17:04 +01:00
|
|
|
#define PRINTF_LONG_SUPPORT
|
2015-01-26 12:57:54 +01:00
|
|
|
#endif
|
2014-12-22 12:35:05 +01:00
|
|
|
|
|
|
|
#define LUA_OPTRAM
|
|
|
|
#ifdef LUA_OPTRAM
|
|
|
|
#define LUA_OPTIMIZE_MEMORY 2
|
|
|
|
#else
|
|
|
|
#define LUA_OPTIMIZE_MEMORY 0
|
|
|
|
#endif /* LUA_OPTRAM */
|
|
|
|
|
|
|
|
#define READLINE_INTERVAL 80
|
|
|
|
#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
|
|
|
|
|
|
|
|
#endif /* __USER_CONFIG_H__ */
|