Our Air Quality
29da4e9279
sdk_cnx_add_rc: fix overflow of the table, when no match is found.
...
Also adds source code for sdk_cnx_rc_search, adding a null pointer dereference
check (that is not expected to be seen), and source code for sdk_cnx_remove_rc.
2017-08-30 13:51:32 +10:00
Our Air Quality
cd23acaa4a
LwIP v2 support
2017-08-30 13:51:32 +10:00
Our Air Quality
5583543f14
Add an argument to ISRs. Disable interrupts while masking them.
2017-08-30 13:51:32 +10:00
sheinz
a91ec6eb61
sysparam fixes, tests, spi flash refactoring ( #299 )
...
Original work by @ourairquality
* Sysparam threadsafe and SPI access
* Sysparam test cases
* Fix for negative int8
* Sysparam getting bool without memory allocation. Bool tests.
* SPI flash refactoring.
* Extract common spiflash.c into core.
* Use spiflash.c in sysparam.
* Use memcpy in spiflash.c insted of hand-written version.
* Tests for spiflash.c
2017-03-22 02:18:04 +05:00
otopetrik
8f5d49de81
Allow changing write function of stdout ( #304 )
...
* Allow changing write function of stdout.
Required for stdout redirection.
Works on blocks, not chars - does _not_ use sdk_os_putc !
Should work even when linking with SPIFFS.
2016-12-19 20:55:26 +05:00
Ruslan V. Uss
61c3d509e5
Merge pull request #302 from Zaltora/spi_fixes
...
Fixes SPI Bug(s)
2016-12-05 19:08:17 +06:00
lilian
199237ec6e
Fixes Bug(s)
2016-11-30 08:19:25 +01:00
UncleRus
c3b6aff41d
gpio_interrupt_handler() can now be overriden
2016-11-30 02:54:07 +05:00
UncleRus
a61af52d96
More convenient GPIO interrupt handlers
2016-11-30 01:07:46 +05:00
lilian
20ab2176fb
fix tab
2016-11-26 15:14:40 +01:00
lilian
f19fdc37be
adjustements
2016-11-26 12:26:42 +01:00
lilian
71bce674a0
Spi features
2016-11-26 12:19:53 +01:00
Our Air Quality
5c885c7722
sysparam: export the 'compact' function, added it to the editor. ( #213 )
2016-11-24 00:41:39 +02:00
Our Air Quality
e48910ea3b
Update and re-organise the sdk internal definitions. ( #267 )
2016-11-14 00:05:13 +02:00
sheinz
29bd8d832a
Merge pull request #222 from resetnow/phy-regs
...
core: add phy regs definition
2016-10-10 22:16:46 +03:00
Vlad Ivanov
94237f0ecd
core: add phy regs definition
2016-09-15 22:31:45 +03: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
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
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
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
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
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
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
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
Alex Stewart
8c9a77efe8
Added first half of RE'd user_interface.c
2016-07-06 17:21:34 +10:00
Alex Stewart
2ecbf1d584
First batch of opensdk additions
...
Replacements for:
libmain/misc.o
libmain/os_cpu_a.o
libmain/spi_flash.o
libmain/timers.o
libmain/uart.o
libmain/xtensa_context.o
2016-07-06 17:21:34 +10:00
Angus Gratton
230aa9fd37
Add new "RAM" storage macro for putting constant data in RAM
...
Also update comments in common_macros.h following #142
2016-05-28 12:39:56 +10:00
Angus Gratton
3ba19d7c4e
Merge pull request #137 from SuperHouse/feature/better_crash_dumps
...
Better crash dumps
2016-05-17 09:38:19 +10:00
Angus Gratton
1e9296f60c
Fatal exceptions: Cleanly deal with exceptions that occur inside fatal_exception_handler_inner()
...
In case of heap corruption or some other major problem, dumping details
in the exception handler can cause a crash loop - so fail out if we seem
to be going in circles.
2016-05-17 09:27:31 +10:00
Angus Gratton
981c87899b
Add heap information to fatal exception & abort dumps
2016-05-15 22:30:01 +10:00
Angus Gratton
efedd24624
fatal exception handler: Only dump "registers" from stack for fatal user exceptions
2016-05-15 22:30:01 +10:00
Angus Gratton
36886412e6
Add abort() implementation
...
Also reduces the IRAM footprint of the fatal exception handler, as only
the prelude (which disables interrupts & enables the flash mapping) is
in IRAM now.
Closes #54 , relevant to #133 .
2016-05-15 22:30:01 +10:00
Angus Gratton
52f9b13faf
Break out debug dump functions into their own compilation unit
2016-05-15 22:30:01 +10:00
Angus Gratton
fd20b1a530
Add PHY hardware management for Bluetooth Coexistence pin choice
2016-05-15 22:21:10 +10:00
Angus Gratton
b61d06e940
Wrap structure around phy_info PHY initialisation settings
...
Add notes based on testing some of the values found there.
2016-05-15 22:21:10 +10:00
UncleRus
3a62a0af0c
esp/gpio.h c++ compatibility
2016-03-22 01:51:50 +05:00
UncleRus
42018f0315
SPI big endian swap bug fix, spi_get_settings()/spi_set_settings()
2016-03-18 03:27:36 +05:00
UncleRus
b0fb8736a8
Comments updated
2016-03-13 16:48:05 +05:00
UncleRus
22ceb08b49
Tabs to spaces. Again.
2016-03-13 02:25:15 +05:00
UncleRus
b4554b5806
SPI mode bug fixed, SPI endianness bugs fixed, new spi_transfer()
2016-03-13 01:59:52 +05:00
UncleRus
9dc565ff7c
Separate send/receive buffers
2016-03-08 04:00:11 +05:00
UncleRus
b5c2120efc
Removed redeclaration of peripheral bus freq
2016-03-06 01:24:59 +05:00
UncleRus
bd40f75d37
Hardware SPI driver
2016-03-05 02:29:01 +05:00
Alex Stewart
8279b5cfd1
Added some clarifications to comments in esp/gpio.h
2016-02-22 09:32:12 -08:00