philip
669543bbf2
Hardware timer support and convert the PWM module to use it
2016-02-17 21:07:33 -05:00
TerryE
49733f6f6d
Add New Tasking I/F and rework GPIO, UART, etc to support it
...
As with the last commit this rolls up the follwowing, but include the various
review comments on the PR.
- **Documentation changes**. I've added the taks FAQ as a stub new Extension
developer FAQ, and split the old FAQ into a Lua Developer FAQ and a Hardware
FAQ.
- **Tasking I/F**. New `app/task/Makefile`, `app/task/task.c`,
`app/include/task/task.h` and `app/Makefile` as per previous commit. Cascade
changes to `app/driver/uart.c`, `app/include/driver/uart.h`,
`app/user/user_main.c` and `app/modules/node.c`
- **GPIO Rework** to `app/modules/gpio.c` and `pin_map.[hc]`, `platform.[hc]`
in `app/platform`
- **Other Optimisations** Move the `platform_*_exists()` from
`app/platform/common.c` to static inline declarations in `platform.h` as
this generates faster, smaller code. Move lgc.a routines out of iram0.
2016-02-17 17:13:17 +00:00
Henk Vergonet
a1c1e015ff
Add i2c based module for am2320 humidity sensor
...
Example use:
> sda=1
> scl=2
> am2320.init(sda,scl)
> rh, t = am2320.read()
> print(string.format("Temperature: %s degrees C", t / 10))
> print(string.format("RH: %s %%", rh / 10))
signed-off-by: henk.vergonet@gmail.com
2016-02-14 15:12:42 +01:00
devsaurus
dc2e1efefb
Extend data type for spi miso/mosi buffer offset to 16 bit.
2016-02-09 22:05:05 +01:00
Johny Mattsson
74d27b3486
Merge pull request #968 from devsaurus/crypto_http_mqtt_lua-gnu11
...
Enable -std=gnu11 for crypto, http, mqtt, and lua dir
2016-01-28 17:36:27 +11:00
Robert Foss
0f3c0ffbb0
Added support for the APA102 LED.
2016-01-25 20:54:27 -05:00
Huang Rui
5e2eb3588c
Fix redefine bug on some other version SDK(such as espressif's lubuntu environment)
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2016-01-25 03:06:18 +08:00
devsaurus
f149b60c7f
enable -std=gnu11 for lua dir
2016-01-24 00:02:27 +01:00
devsaurus
19fda87e33
enable -std=gnu11 for http dir
2016-01-23 22:41:41 +01:00
devsaurus
9f54c8f5d4
enable -std=gnu11 for driver dir with corrected os_printf* decls
2016-01-23 11:22:03 +01:00
devsaurus
0c3fc6cc78
enable -std=gnu11 for platform dir
2016-01-22 23:21:34 +01:00
Johny Mattsson
0cd287e67b
Added -Wimplicit to modules build.
...
Plus associated fixes.
2016-01-22 10:55:57 +11:00
Johny Mattsson
182d45f928
Enable -std=gnu11 for modules dir.
...
Plus boat-load of fixes to actually make that build.
2016-01-20 19:40:47 +11:00
Terry Ellison
7e8c54890f
Merge pull request #878 from dnc40085/dev_wifi_sta_Xethostname
...
Add functions: wifi.sta.sethostname and wifi.sta.gethostname
2016-01-15 08:56:37 +00:00
Johny Mattsson
52e121f469
Merge pull request #887 from vowstar/dev-all-in-one
...
Add HTTP client module and documents.
2016-01-15 17:44:41 +11:00
jfollas
bf74b617d0
SPI: Implemented CPOL=1
...
Reference: http://bbs.espressif.com/viewtopic.php?f=49&t=1570
2016-01-13 22:39:15 -05:00
philip
dd5dafa99e
Merge remote-tracking branch 'jmattsson/tmr-libmain-binpatch150' into sdk1.5.1
...
Conflicts:
Makefile
2016-01-13 07:54:27 -05:00
Philip Gladstome
1d9336fb99
Upgrade to SDK version 1.5.1 from Espressif
2016-01-12 21:05:47 -05:00
Johny Mattsson
0b2d90300a
Remove left-over cruft regarding Lua mem opt.
2016-01-06 10:38:58 +11:00
dnc40085
b2190e4d7b
Added functions: wifi.sta.sethostname and wifi.sta.gethostname and
...
option to set hostname in user.config.h
2016-01-02 18:34:40 -08:00
Terry Ellison
2f655deeca
Merge pull request #885 from jmattsson/sdk150bin
...
Upgrade to SDK 1.5.0 + Espressif's Open LWIP 1.5.0.
2016-01-01 22:30:22 +00:00
Huang Rui
88bae3ed22
Remove all version data and combine 33 commits to 1.
...
Add http module and documention, including fix httpclient bug.
2015-12-29 19:25:37 +08:00
Johny Mattsson
a6c0873a28
Upgrade to SDK 1.5.0 + Espressif's Open LWIP 1.5.0.
...
Removed earlier TCP port randomisation fix - the new SDK has its own fix
even though Espressif told me they wouldn't fix it. Yay?
2015-12-23 11:17:05 +11:00
devsaurus
6cbe716db0
uart: fix parity and stopbit generation
2015-12-21 17:51:43 +01:00
Johny Mattsson
9003d3e8fb
Rework NODEMCU_MODULE() to not pull in extra gunk.
...
Third time lucky. I hope. Hi Terry.
2015-12-18 13:10:48 +11:00
Johny Mattsson
4e8ef87d03
Reworked module registration, removed modules.h
...
Module creation & registration now made a lot simpler. In essence,
each module file is now self-contained and only needs a
NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname);
line to both be automatically recognised by the Lua initialization
as well as honor the LUA_USE_MODULES_MYNAME #define.
2015-12-16 16:09:16 +11:00
Terry Ellison
32b2911263
Merge pull request #746 from DiUS/vdd33
...
Remove adc.readvdd33() limitation.
2015-12-01 23:37:53 +00:00
btsimonh
b2345857e9
Added uart.alt(n) to swap to use alternate rx/tx lines.
...
if n = 0 -> std pinout.
if n != 0 -> alternate pinout (gpio13 and gpio15)
2015-11-28 22:51:01 +00:00
Marcel Stör
5b00d02bf2
Order modules list alphabetically
2015-11-19 22:48:05 +01:00
Johny Mattsson
1e3c231630
Fix esp_init_data_default inconsistencies.
...
Make ADC vs readvdd33 option user_config.h configurable for the init data,
and made readvdd33 the default.
2015-11-12 12:57:07 +11:00
Johny Mattsson
7512e628b6
Merge pull request #742 from TerryE/dev-stripdebug
...
Port of strip debug patch to the SDK 1.4-baseline dev
2015-11-10 12:20:36 +11:00
Johny Mattsson
382eea5079
Fix building with DEVKIT_0_9 defined.
...
This got broken in the 1.4.0 overhaul, mea culpa.
2015-11-09 12:15:40 +11:00
TerryE
83d06b667d
Port of strip debug patch to the SDK 1.4-baseline dev
2015-11-08 23:46:08 +00:00
TerryE
307323d1ff
Add luac.cross capability to nodeMCU
2015-11-03 21:37:14 +00:00
TerryE
a08626d84f
Add minimum debug library providing traceback() and getregistry() functions
2015-11-03 21:34:42 +00:00
Vowstar
a38fbdbf51
Merge pull request #713 from christakahashi/hx711-support
...
Added support for the hx711 load cell ADC.
2015-11-01 14:31:12 +08:00
Vowstar
3e0a3e992e
Merge pull request #717 from karrots/feature/baudrate_define
...
Add #DEFINE to user_config.h to enable easier bit rate selection.
2015-11-01 14:30:57 +08:00
Jonathan karras
66e65bd3c1
Add #DEFINE to user_config.h to enable easier bit rate selection.
2015-10-31 19:47:11 -06:00
chris
dffbfacd46
most users won't need this so it should be off be default
2015-10-30 23:31:45 -07:00
devsaurus
9444ae28df
simplify spi api
...
duplex_mode configuration enables/disables receiving with spi.send()
spi.send_recv removed
2015-10-27 23:30:33 +01:00
devsaurus
7d77398921
introduce full/half duplex transactions and add spi.send_recv()
2015-10-25 22:58:06 +01:00
devsaurus
19092712e5
remove obsolete spi_mast_send and rename platform_spi_send
2015-10-18 11:13:56 +02:00
devsaurus
f238673772
rework of (H)SPI API
2015-10-18 11:13:55 +02:00
devsaurus
9cde0bbb83
add SPI transaction support
2015-10-18 11:13:55 +02:00
Johny Mattsson
afdd9430e0
Removed old lwip include file.
2015-10-12 15:57:24 +11:00
Johny Mattsson
5d5be35633
Upgraded LWIP to 1.4.0 released from Espressif.
...
Plus directly provided patch for user_interface.h.
2015-10-12 14:31:04 +11:00
Johny Mattsson
a161f882ae
Espressif-provided fix for open source LWIP on 1.4.0.
2015-10-12 13:26:05 +11:00
Johny Mattsson
bf8ed500bf
Moved node.key() & node.led() support into node module.
...
It was piggybacking on the Lua readline timer which no longer exists.
Also cleaned up injection of Lua commands via CoAP & node.input().
2015-10-12 13:26:05 +11:00
Johny Mattsson
fe6289a6c2
Switch Lua input to event driven instead of polled.
...
The Lua input timer has been the thorn in the side which prevents a lot of
potential sleeping, unnecessarily.
2015-10-12 13:26:05 +11:00
Johny Mattsson
e905c24dcc
Removed unsused, now incompatible SSL code.
2015-10-12 13:26:05 +11:00