Commit graph

152 commits

Author SHA1 Message Date
Angus Gratton
bcc22bdfc5 Merge pull request #33 from foogod/uart_fix
Fix broken UART(i) definition
2015-08-27 15:56:17 +10:00
Alex Stewart
b0206d0ca6 Fix broken UART(i) definition 2015-08-25 22:31:47 -07:00
Angus Gratton
cb5e67a871 Merge pull request #32 from foogod/regs_fixups0
Remove packed attribute from register structs
2015-08-26 14:14:33 +10:00
Alex Stewart
da48a6b0df Remove 'packed' attribute from all regs structs 2015-08-26 11:23:52 +10:00
Alex Stewart
e2e841c660 Remove 'packed' attribute from all regs structs 2015-08-25 17:13:13 -07:00
Alex Stewart
2a939e97b5 Remove unnecessary AND for VAL2FIELD macro
Added VAL2FIELD_M / SET_FIELD_M for rare cases when there might actually be some need for it.
2015-08-25 17:07:06 -07:00
Angus Gratton
22d35ed5f2 Merge pull request #29 from foogod/issue_8
Add more *_regs.h definitions
2015-08-24 16:14:19 +10:00
Angus Gratton
cf4b477c1f lwipopts.h: Rearrange debug macros, add placeholdes for UDP and ICMP debug 2015-08-24 10:52:40 +10:00
Angus Gratton
050b17adbe Add a comment explaining commented out REG_BASE lines
Change was part of #27
2015-08-22 17:39:25 +10:00
Angus Gratton
aa17221929 Merge pull request #27 from foogod/issue_8
Convert headers to new *_regs.h format
2015-08-22 17:36:37 +10:00
Alex Stewart
2f3b82812b Add esp/rtcmem_regs.h 2015-08-21 14:20:00 -07:00
Alex Stewart
fdbb361a60 Fix a couple of struct def issues with 2 previous commits 2015-08-21 14:06:38 -07:00
Alex Stewart
0b6dfb6080 Add more regs to esp/dport_regs.h
Added a bunch of definitions based on info in http://esp8266-re.foogod.com/wiki/Memory_Map#dport0
2015-08-21 13:59:20 -07:00
Alex Stewart
e88b5b8c4b Add esp/uart_regs.h and esp/spi_regs.h 2015-08-21 13:56:23 -07:00
Alex Stewart
1ebb85b150 rename GPIO_CONF_DRIVER_ENABLE back to GPIO_CONF_PUSH_PULL 2015-08-21 09:54:20 -07:00
Angus Gratton
6470450aff Clarify some install steps in README 2015-08-21 16:30:02 +10:00
Angus Gratton
65581f1cdd Add Travis build status icon to README 2015-08-21 16:21:49 +10:00
Angus Gratton
66a1983a95 examples/Makefile: Make more make-like instead of using shell loops
Shell loops broke Travis fairly severely.
2015-08-21 15:54:01 +10:00
Angus Gratton
24ff83fc41 Add Travis support - build toolchain, esptool2, all example projects
Toolchain & esptool2 are cached for quicker follow-up builds. Versioning
of these is accomplished via commit variables in .travis.yml.
2015-08-21 15:53:25 +10:00
Alex Stewart
ab6f4b8420 Fixup some constants used in examples 2015-08-20 15:11:29 -07:00
Alex Stewart
e07395fcb6 Merge branch 'master' into issue_8 2015-08-20 11:13:41 -07:00
Angus Gratton
7f983bc474 Add netbuf_helpers.h temporary header 2015-08-20 15:33:08 +10:00
Alex Stewart
8263fce80f Fix leftover IOMUX_FUNC_A/D references 2015-08-19 16:53:02 -07:00
Alex Stewart
d2231b7ff5 Cleanup a few comments in *_regs.h files 2015-08-19 16:50:56 -07:00
Alex Stewart
177ad281aa Add esp/wdt_regs.h 2015-08-19 16:48:11 -07:00
Alex Stewart
4fa66ca391 Added esp/timer_regs.h and esp/dport_regs.h 2015-08-19 11:34:18 -07:00
Alex Stewart
b271e19b51 Replace stdint.h with esp/types.h in gpio_regs.h 2015-08-19 09:05:03 -07:00
Alex Stewart
b84a69168f Fix cut-paste error in gpio_regs.h comment 2015-08-19 09:03:18 -07:00
Alex Stewart
fc1a1a7d0a Add esp/gpio_regs.h 2015-08-18 22:46:25 -07:00
Alex Stewart
2ffd3da71e Add esp/iomux_regs.h 2015-08-18 17:38:31 -07:00
Angus Gratton
491bf900c4 espressif/esp_wifi.h: Add prereq includes 2015-08-13 17:12:02 +10:00
Angus Gratton
3eee1a9845 Examples: Fix printf argument flags for older example programs 2015-08-10 14:50:56 +10:00
Angus Gratton
72670be012 Update work with WiFi credentials
PR #16
2015-08-10 14:50:32 +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
d703f8eae0 esptool.py: Ensure flash size args are passed at each step
('esptool.py write_image' will override the flash size in your binaries with the
default, given the chance)
2015-08-06 11:40:44 +10:00
Angus Gratton
bed6907d22 Exception vector address must be 256 byte aligned
Not actually a problem with the current linker script as the address is
predetermined there at start of IRAM, but might as well be accurate
about it.

As per advice from @foogod on esp8266-re mailing list:
https://groups.google.com/d/msg/esp8266-re/1ljIY3Zttbo/HvzHSWOLCgAJ
2015-08-06 09:54:46 +10:00
Angus Gratton
5f82b3c27f Merge branch 'master' of github.com:SuperHouse/esp-open-rtos 2015-08-05 14:24:10 +10:00
Angus Gratton
19b8383069 Working TFTP server based OTA updates
Tested with 16MBit flash configuration, two rboot update slots.

Closes #10
2015-08-05 14:10:14 +10:00
Angus Gratton
6887a8119a Simple example: Fix printf modifier 2015-08-05 14:04:12 +10:00
Angus Gratton
dd538b2889 Makefile: Pass flash size & speed flags to both esptool.py & esptool2 2015-08-05 14:04:12 +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
aed843fc14 exception_vectors: Remove some cruft some the symbol table 2015-07-30 10:10:37 +10:00
Angus Gratton
147257efa4 Almost functional OTA support
ota_basic example can receive new image via TCP.

However - writing to flash with interrupts disabled causes data loss,
and the TCP flow is very slow to recover. Linux sender quickly ramps up
RTT timer to very long retry intervals, crippling performance &
throughput.

Running the update without the flash writes causes the data to be
received quickly, so this is definitely an issue with the time taken for
the erase cycle.

Progress towards #10
2015-07-29 16:50:23 +10:00
Angus Gratton
3797cf5357 lwip: Ignore some compiler warnings when debugging is on 2015-07-29 16:50:23 +10:00
Angus Gratton
efc454035c Move all code paths touched by NMI to IRAM
Prerequisite for calling Cache_Read_Disable() for OTA updates.

Massive thanks due to @foogod and their xtobjdis tool, creating the call
graph of where the wDev_ProcessFiq touched (including in newlib, etc.)
would have otherwise been very painful:
https://bitbucket.org/foogod/xtobjdis
2015-07-29 16:47:33 +10:00
Angus Gratton
28fdebee92 gpio: Change gpio_write argument to bool 2015-07-29 10:35:15 +10:00