Commit graph

713 commits

Author SHA1 Message Date
sheinz
b23dd64419 Merge pull request #237 from UncleRus/extras/hmc5883l
HMC5883L driver + example
2016-10-16 12:52:43 +03:00
rus
4e7362f2d4 HMC5883L driver + example 2016-10-13 14:59:52 +05:00
sheinz
0a8c61ffb7 Merge pull request #235 from UncleRus/extras/ultrasonic
Driver for ultrasonic range meters + example
2016-10-13 00:50:55 +03:00
sheinz
36759a2da5 Merge pull request #232 from UncleRus/extras/ds1307
DS1307 RTC driver + example
2016-10-13 00:46:43 +03:00
UncleRus
f31ea70e1b Driver for ultrasonic range meters + example 2016-10-13 00:09:13 +05:00
UncleRus
8ded673ec3 DS1307 RTC driver + example 2016-10-12 23:57:24 +05:00
sheinz
add6d85182 Merge pull request #228 from bschwind/tsl2561
Add a TSL2561 driver and example usage
2016-10-12 16:41:52 +03:00
Brian Schwind
6dea7abfc0 Add extern C declaration 2016-10-11 22:52:11 +09:00
Brian Schwind
6449f243fc Move defined constants to enums 2016-10-11 21:39:22 +09:00
Brian Schwind
cd594a4296 Fix according to review comments 2016-10-11 20:51:29 +09:00
sheinz
29bd8d832a Merge pull request #222 from resetnow/phy-regs
core: add phy regs definition
2016-10-10 22:16:46 +03:00
Brian Schwind
a323680115 Add a TSL2561 driver and example usage 2016-09-24 19:54:54 +09:00
Our Air Quality
a15d1bb002 timers: esp library timer callbacks expect their argument not a xTimerHandle (#221) 2016-09-22 08:56:06 +02:00
Vlad Ivanov
94237f0ecd core: add phy regs definition 2016-09-15 22:31:45 +03:00
Vlad Ivanov
8368929a66 paho_mqtt_c: refactor: rename symbols so they all have same prefix (#204)
* paho_mqtt_c: refactor: rename symbols so they all have same prefix

* Update AWS IOT example after MQTT refactoring
2016-09-15 19:52:57 +02:00
Vlad Ivanov
12d0da0c58 core: exception_vectors: initial esp-gdbstub support (#205) 2016-09-15 08:26:38 +02:00
Our Air Quality
4c78db81d8 sysparams: get/set int32 and int8 apis. (#209)
Rename the get/set_int api functions to get/set_int32.

Add get/set_int8 api functions too in anticipation of more efficient implementations for these.
2016-09-15 08:17:26 +02:00
Our Air Quality
97de07f8b2 Comment the sdk_station_config slots. (#217)
Note bssid_set should be set to one if the bssid is used otherwise zero.
2016-09-15 08:16:54 +02:00
sheinz
c2953eda38 Merge pull request #215 from pfalcon/pfalcon
esp/gpio_regs.h: Add info about strapping pins captured in GPIO.IN register.
2016-09-05 09:23:56 +03:00
sheinz
c342763612 Merge pull request #214 from ourairquality/i2c-open-drain2
i2c: use open drain for output rather than flipping between input and output.
2016-09-05 09:22:19 +03:00
sheinz
ad8764b9c6 Merge pull request #211 from ourairquality/gpio16
GPIO16 support.
2016-09-05 09:20:26 +03:00
Paul Sokolovsky
285dedd8f5 esp/gpio_regs.h: Add info about strapping pins captured in GPIO.IN register.
Specifically, in the high 16 bits of GPIO.IN register.
2016-09-04 23:20:29 +03:00
Angus Gratton
17176841f2 Merge pull request #212 from pfalcon/pfalcon
esp/interrupts.h: Add RTC interrupt number.
2016-09-04 22:33:46 +10:00
ourairquality
e6eda5c3ff i2c: use open drain for output rather than flipping between input and output. 2016-09-01 22:48:02 +10:00
ourairquality
c52890eed7 GPIO16 support. 2016-08-31 11:30:32 +10:00
Paul Sokolovsky
0962255d91 esp/interrupts.h: Add RTC interrupt number.
40002a58     $a3 = rtc_intr_handler
40002a5e     $a4 = 0x0
40002a60     $a2 = 0x3
40002a62     call ets_isr_attach
2016-08-31 01:51:23 +03:00
rongsaws
7041c014bb Added a MQTT pub/sub example of using AWS IoT (#173)
* Added a MQTT pub/sub example of using AWS IoT (via ECC based TLS1.2 connection).

* Fixed a buffer overflow issue when receiving large MQTT packet.

* Reset TLS connection on read/write errors.
2016-08-29 19:55:32 +02:00
Vlad Ivanov
c9851e9253 FreeRTOS: Drop reference to xthal_set_intset (#198) 2016-08-27 22:23:27 +02:00
Our Air Quality
03248a96c7 libmain: add sdk_system_uart_swap and sdk_system_uart_de_swap (#171) 2016-08-27 22:18:13 +02:00
Our Air Quality
fb33995bc4 sysparam editor: add echo-on and echo-off commands. (#199)
Helpful to be able to disable echo when sending commands fast, so that
the editor can consume them fast than they arrive. This adds 'echo-on'
and 'echo-off' commands to set the echo state.
2016-08-25 23:11:59 +02:00
sheinz
46840baed4 Merge pull request #196 from pfalcon/pfalcon
esp8266 headers: A new interrupt no and a new WDT register
2016-08-22 07:58:38 +03:00
Our Air Quality
762eced543 sysparam: add a semaphore to synchronize writers. (#194) 2016-08-21 07:47:40 +02:00
Paul Sokolovsky
0aabbea16f esp/wdt_regs.h: Add "current value" register.
WDT is countdown timer. Current value is accessible via VAL register. At
this time it's unclear if it's RO or RW (common sense says it shoul be RO).

Source: looking at the WDT registers on a running chip.
2016-08-20 16:13:07 +03:00
Paul Sokolovsky
458a6813c8 esp/interrupts.h: Add wDev FIQ interrupt number.
40251dd9     $a2 = 0x0
40251ddb     $a3 = wDev_ProcessFiq
40251dde     $a4 = 0x0
40251de0     $a0 = ets_isr_attach
40251de3     call $a0
2016-08-20 16:06:09 +03:00
sheinz
95081a1e9f Merge pull request #186 from ourairquality/bme280
BME280 support.
2016-08-19 10:31:21 +03:00
sheinz
519accd46c Merge pull request #190 from sheinz/fix/deep_sleep_timer
Fix for system_deep_sleep ignoring argument
2016-08-19 10:28:09 +03:00
Johan Kanflo
40dc3bf945 Sysparam by @foogod (#180)
* Sysparam implementation

sysparam improvements

Mostly done, a few minor cleanups left.

Add sysparam_editor example

Sysparam code cleanup

Add documentation to sysparam.h

Fix up sysparam.h docs

Added a couple more debug statements

Fix potential memory leak if realloc() fails

Major sysparam overhaul

Add sysparam_get_info function

Add sysparam initialization to app_main.c

* Fixed warnings, added license
2016-08-18 12:07:46 +02:00
ourairquality
f0c43ff5d5 BME280 support.
The BME280 is close to compatible with the existing BMP280 and extends it with support for measuring humidity, so support has been bundled into the bmp280 driver.

The example now auto-detects the device and displays the humidity for the BME280.

The I2C bus initialization has been moved out of the bmp280 driver to support multiple devices.

The check-id and reset logic has been bundled into the driver initialization. It needs to be re-initialized after reset anyway and the chip-id is need to initialize it, just re-initialize to reset.

Support has been added for multiple devices. The calibration data storage needs to be managed by the caller rather than static data. The caller can choose the I2C address to allow two BMx280 devices to be used on the same I2C bus.

An interface has been added to return the measurement values in an integer fixed float format. The float format interface is still there.

All the values are read in one I2C transaction to ensure they are a consistent set.

Renamed bmp280_calib_t to bmp280_t, and removed read_register8.
2016-08-17 23:33:04 +10:00
sheinz
62f55d499e Fix for system_deep_sleep ignoring argument 2016-08-17 16:25:17 +03:00
sheinz
b07c34b863 Merge branch 'ourairquality-iomux-set-func' 2016-08-17 14:37:16 +03:00
sheinz
0875e5d55b Merge branch 'iomux-set-func' of https://github.com/ourairquality/esp-open-rtos into ourairquality-iomux-set-func
Conflicts:
	core/include/esp/iomux.h
2016-08-17 14:36:46 +03:00
Johan Kanflo
84ee8d493c Merge pull request #189 from sheinz/feature/i2s_dma
i2s_dma wrapper, ws2812_i2s driver and examples.
2016-08-17 06:59:30 +02:00
sheinz
e96dc5c722 is2_audio: Example of using i2s_dma library to output audio 2016-08-16 11:16:02 +03:00
sheinz
666f821263 ws2812_i2s: WS2812 leds driver implementation using i2s_dma library 2016-08-16 10:53:56 +03:00
sheinz
27135d6252 i2s_dma: Implementation of I2S + DMA wrapper library 2016-08-16 10:19:33 +03:00
ourairquality
4b77138f71 Add gpio_set_iomux_function(). 2016-08-15 22:23:45 +10:00
ourairquality
8405b989f9 iomux_set_function: remove the IOMUX_FUNC transform of the func argument.
The allows the IOMUX_GPIO<n>_FUNC_<function> definitions to be used here.
2016-08-15 22:10:59 +10:00
sheinz
3dcc4f14a9 Merge pull request #185 from pellepl/master
spiffs: enable temporal cache for spiffs v 0.3.6
2016-08-14 19:50:54 +03:00
Peter Andersson
5ea0228639 spiffs: enable temporal cache for spiffs v 0.3.6 2016-08-14 15:15:45 +02:00
Johan Kanflo
0c09054f3e Merge pull request #178 from sheinz/feature/spiffs_update
SPIFFS: Selectable configuration of SPIFFS
2016-08-09 22:32:37 +02:00