Commit graph

47 commits

Author SHA1 Message Date
Alessio Pollero
608f56ebf4 Fix wifi SSID length to 33 since the maximum chars for SSID is 32 but the string is null terminated so array size must be 33 2021-02-13 18:15:45 +00:00
Our Air Quality
cd23acaa4a LwIP v2 support 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
Johan Kanflo
c415d49f1e Added sdk_system_get_netif 2017-02-20 20:27:24 +01:00
Our Air Quality
0dadda86de wifi_get/set_sleep_type: add source code implementations plus fixes. (#218)
* wifi_set_sleep_type returns a bool success flag.

* wifi_get_sleep_type seemed useless, just returning an argument. Added an implementation using sdk_pm_get_sleep_type.
2016-11-14 12:13:38 +02:00
Our Air Quality
2bc87e9414 Use a separate file for the private SSID config. (#268) 2016-11-12 22:24:29 +02:00
Our Air Quality
a5cc728079 FreeRTOS type updates. (#261) 2016-11-05 12:04:03 +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
62f55d499e Fix for system_deep_sleep ignoring argument 2016-08-17 16:25:17 +03:00
Alex Stewart
8c9a77efe8 Added first half of RE'd user_interface.c 2016-07-06 17:21:34 +10:00
Alex Stewart
4d6fa0ccfa Misc post-merge fixups 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
587c867d4b queue.h: Re-add the BSD Copyright notice to queue.h from Espressif's SDK.
Thanks @pfalcon for the heads-up on this:
https://groups.google.com/forum/#!topic/esp8266-re/I4iO3fM0mmA
2016-06-28 10:24:43 +10:00
Sven
c63b1cfa66 Set correct base address for register HOST_INF_SEL 2016-05-31 21:10:14 +02:00
Angus Gratton
b9f8e8a648 spi_flash.h: Add note that pointers need to be word-aligned 2016-05-28 11:27: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
Alex Stewart
5b16aa5ba4 Change #warning to #error in ssid_config.h 2016-04-06 11:42:58 -07:00
UncleRus
c1f086579e Removed sdk_system_get_vdd() 2016-02-29 12:58:45 +05:00
UncleRus
b18f2947ee Added definition of SDK functions 2016-02-29 01:55:51 +05:00
Angus Gratton
a32d1099fa espressif/spi_flash.h: Add comments and more appropriate argument types 2016-02-26 16:10:51 +11:00
Jeff Kent
c427784c5d fix sdk_bss_info STAILQ_ENTRY 2016-02-24 14:03:30 -06:00
Angus Gratton
ed8470631f Consolidate interrupt management in core as esp/interrupts.h & esp_interrupts.c 2015-09-28 22:15:40 +10:00
Angus Gratton
fff17627d9 Merge branch 'master' into feature/c++ 2015-08-26 10:46:48 +10:00
Angus Gratton
491bf900c4 espressif/esp_wifi.h: Add prereq includes 2015-08-13 17:12:02 +10:00
Michael Jacobsen
da6b5f74bb Mostly updated header files for use in C++ 2015-08-10 15:31:03 +10:00
Johan Kanflo
64a1e5598b Correct prototype for sdk_uart_rx_one_char, kudos to @foogod 2015-08-07 13:26:06 +02:00
Johan Kanflo
0e521a74a9 WiFi credentials
Changed local.h to include/ssid_config.h and added instructions on how
to keep your WiFi credentials safe from Github.
2015-08-07 13:26:06 +02:00
Angus Gratton
1cb2de5b96 spi_flash.h: Correct comment regarding flashchip structure
From ed0a079d9b
2015-08-07 18:19:09 +10:00
Angus Gratton
e7460de0a1 esp_system.h: Fix return type of sdk_system_get_rst_info 2015-08-06 16:35:20 +10:00
Angus Gratton
ed0a079d9b Expose SDK flashchip parameter
More thanks due to @foogod's RE work for this.
2015-08-06 11:40:44 +10:00
Angus Gratton
6bbd6736a4 Add SDK set_sleep_type/get_sleep_time functions (undocumented in 0.9.9, may not workas expected) 2015-08-03 12:52:42 +10:00
Angus Gratton
ed7ba52c9a Add exception vectors & low-level handlers
At the moment these are almost bit-for-bit copies of the vector
behaviour in the RTOS SDK, but hopefully that will start to change.

Progress towards #2
2015-07-28 11:01:57 +10:00
Angus Gratton
86188c01fd Merge branch 'newlib' 2015-07-15 16:01:18 +10:00
Angus Gratton
4217a1029e xtensa_interrupts: Add _xt_disable_interrupts/_xt_restore_interrupts inline functions 2015-06-18 11:30:13 +10:00
Angus Gratton
5151ccc3b2 xtensa_interrupts: Add esync after writing intenable/intclear, add comment about non-interrupt-safe mask/unmask 2015-06-18 09:04:45 +10:00
Angus Gratton
aaef4b0644 Replace all binary SDK libc functions with newlib
Adds a new build step to remove the SDK object files listed in
<libname>.remove.

Closes #1.
2015-06-16 14:21:24 +10:00
Angus Gratton
822533fd92 Interrupt support refactor
Write inline versions for SDK-based interrupt convenience functions.
2015-06-08 18:20:29 +10:00
Angus Gratton
2c46be9825 Basic support for GPIOs 0-15.
Start new 'core' component for low-level parts

Progress towards #8
2015-06-08 12:09:34 +10:00
Angus Gratton
70cec6c3b7 Rename the sdk_prototypes header to sdk_private 2015-06-02 17:15:00 +10:00
Angus Gratton
c126fa6430 Add README, 'make help', header comments, Copyright notices 2015-06-02 17:12:20 +10:00
Angus Gratton
3fcec6106f Swap binary axTLS libssl for direct compiled version 2015-06-02 17:12:20 +10:00
Angus Gratton
e743d03a78 Preprocess all binary SDK symbols to add an sdk_ prefix
* This fixes the problem of axTLS symbols hmac_md5/hmac_sha1 having same
  name as symbols in libwpa (which have incompatible signatures)

* Also allows for easier identification and piece-by-piece removal of
  binary functions.

* Some libc symbols are not renamed, list is in lib/symbols_norename.txt
2015-06-02 15:08:35 +10:00
Angus Gratton
05019cb0ee Remove cJSON blob (can re-add later from source) 2015-06-02 15:08:35 +10:00
Angus Gratton
7c982da48f Add function prototypes for LWIP SDK functions, allow compilng with -Werror again 2015-06-02 15:08:35 +10:00
Angus Gratton
dc4ca6861f Remove udhcp (DHCP server support) as it's a GPL violation :( 2015-06-02 15:08:35 +10:00
Angus Gratton
806962d5c7 Replace lwip SDK blob with lwip 1.4.1 upstream source
Compiles but won't work yet
2015-06-02 15:08:26 +10:00
Angus Gratton
1ffbc303ff Working variant of esp_iot_rtos_sdk (files from commit ec75c85f9ef53) 2015-05-07 14:22:25 +10:00