1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-16 22:27:59 +03:00
Commit Graph

1985 Commits

Author SHA1 Message Date
Collin Kidder
2fedb00552 Switch all of the transmit interrupt code to UARTClass. Also, turn USARTClass into a stub because it did nothing differently from the UART code anyway. Now all serial ports use transmit interrupts. 2014-12-24 10:20:37 -05:00
Collin Kidder
bb341c6d92 Modifications to make serial transmit interrupt work more reliably. Also, added the availableForWrite function. 2014-12-23 22:37:58 -05:00
Collin Kidder
4eb05c303b Change RingBuffer to have buffer size of 128 and also set its members volatile since they are all accessed and modified in interrupt handlers. 2014-12-23 22:36:35 -05:00
Ivan Grokhotkov
052b39cd79 Add samples for the ESP8266WiFi library 2014-12-23 15:39:48 +03:00
Ivan Grokhotkov
d2a6839075 Fix encryptionType for AUTH_WPA_WPA2_PSK 2014-12-23 12:43:19 +03:00
Ivan Grokhotkov
8d9855190a Fix memory leak in WiFiClient 2014-12-23 12:34:41 +03:00
Ivan Grokhotkov
ca75c64ddb Fix issues with WiFi scanning 2014-12-23 12:33:59 +03:00
Ivan Grokhotkov
5ef9faa844 Implement atoi, ltoa, dtostrf 2014-12-23 12:33:33 +03:00
Ivan Grokhotkov
573d06c846 Implement interrupts/noInterrupts 2014-12-23 12:31:26 +03:00
Ivan Grokhotkov
171394f2f9 Fix issue with spaces in paths 2014-12-22 23:48:49 +03:00
Ivan Grokhotkov
d6370f7dc3 Use esptool-ck for flashing 2014-12-22 18:43:20 +03:00
Ivan Grokhotkov
5ee9677331 Ticker library update 2014-12-22 18:42:57 +03:00
Collin Kidder
065459c18f Implement transmit buffering with interrupts for USART devices 2014-12-21 20:57:08 -05:00
Ivan Grokhotkov
2f6dfed924 More license headers 2014-12-19 11:16:28 +03:00
Ivan Grokhotkov
6a77bf6ea6 Ticker library 2014-12-19 01:43:40 +03:00
Ivan Grokhotkov
79bd1e2952 More license headers 2014-12-19 01:43:18 +03:00
Ivan Grokhotkov
a07332e4ae WiFi scanning (incomplete) and diagnostics 2014-12-19 01:41:35 +03:00
Ivan Grokhotkov
af64431191 Update license headers in files that were completely rewritten 2014-12-19 01:40:47 +03:00
Ivan Grokhotkov
20cb0422b0 Clean up unused stuff 2014-12-19 01:39:27 +03:00
Ivan Grokhotkov
07420687d8 Implement tx and rx buffers and interrupts for HardwareSerial 2014-12-18 18:49:14 +03:00
Ivan Grokhotkov
b2e2c44125 Implement pin interrupts 2014-12-18 18:47:46 +03:00
Ivan Grokhotkov
ab43d404fc Make sigma_delta.c unused 2014-12-18 18:47:07 +03:00
Ivan Grokhotkov
d3e3be50b9 Remove i2c.c
replaced with i2c.cpp
2014-12-18 18:46:45 +03:00
Ivan Grokhotkov
c418bac33c Clean up ets_printf declarations 2014-12-18 18:45:22 +03:00
Ivan Grokhotkov
c87a77e0da Fix sdk files permissions 2014-12-17 10:30:35 +03:00
Ivan Grokhotkov
bf69f10401 WiFi client connect with hostname 2014-12-17 10:29:29 +03:00
Ivan Grokhotkov
bce15fee5f EEPROM examples 2014-12-12 10:37:40 +03:00
Ivan Grokhotkov
b8caeb363c Add sigma-delta api 2014-12-12 10:37:24 +03:00
Ivan Grokhotkov
36fbb75d48 Disable debug output in Serial.begin 2014-12-12 04:41:24 +03:00
Ivan Grokhotkov
73b0e8b1ff Upload sketch at 115200 2014-12-12 04:40:59 +03:00
Ivan Grokhotkov
c1e59a37e1 analogRead 2014-12-12 04:40:43 +03:00
Ivan Grokhotkov
40e2eca7f6 EEPROM library 2014-12-09 22:20:30 +03:00
Ivan Grokhotkov
4936093dcf Update SDK to 0.9.3 2014-12-09 10:25:59 +03:00
Ivan Grokhotkov
e510c0226a WiFi scanning fixes 2014-12-09 10:23:50 +03:00
Ivan Grokhotkov
bb3e2ed04b Wire library with i2c master support 2014-12-09 10:11:42 +03:00
Ivan Grokhotkov
d0e58a756b digitalWrite fix 2014-12-09 10:10:26 +03:00
Ivan Grokhotkov
1154cd8ae5 Add stubs for itoa, ltoa 2014-12-09 10:09:12 +03:00
Ivan Grokhotkov
fa546bb31a Implement most WiFi functions
Need to update to SDK 0.9.3 because DHCP client functions are missing
2014-12-05 22:39:40 +03:00
Ivan Grokhotkov
92babaed21 Open-drain output mode 2014-12-05 00:05:01 +03:00
Ivan Grokhotkov
f788022730 Modify the linker script to move some code into flash, enable -mtext-section-literals 2014-12-02 00:46:57 +03:00
Ivan Grokhotkov
d3359d3670 Don't use timer for zero delay 2014-12-01 00:37:51 +03:00
Ivan Grokhotkov
9cc12ccc15 Add ESP8266WiFi library 2014-12-01 00:36:56 +03:00
Ivan Grokhotkov
4fc356fbf5 Add circular buffer implementation 2014-12-01 00:36:07 +03:00
Ivan Grokhotkov
c346734adc Move some code to flash and fix prototypes 2014-12-01 00:34:59 +03:00
Ivan Grokhotkov
22b88f73c2 Fix malloc/free references 2014-12-01 00:34:28 +03:00
Cristian Maglie
a9735bf91f Fix atomicity issues in SPI::beginTransaction and SPI::endTransaction (Andrew Kroll)
Previously, it could happen that SPI::beginTransaction was
interrupted by an ISR, while it is changing the SPI_AVR_EIMSK
register or interruptSave variable (it seems that there is
a small window after changing SPI_AVR_EIMSK where an interrupt
might still occur). If this happens, interruptSave is overwritten
with an invalid value, permanently disabling the pin interrupts.

To prevent this, disable interrupts globally while changing
these values.
2014-11-25 15:56:11 +01:00
Cristian Maglie
84b6cc27a5 [avr] Made SPI.usingInterrupt() synchronized (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
d9537cb7da [avr] Added SPI.notUsingInterrupt() (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
8344812ce8 [avr] Made SPI.begin() and SPI.end() synchronized (Andrew Kroll) 2014-11-25 15:49:17 +01:00
Cristian Maglie
53e25d8b55 [avr] Improved SPI speed on 16bit transfer.
From https://github.com/arduino/Arduino/pull/2376#issuecomment-59671152

Quoting Andrew Kroll:

   [..this commit..] introduces a small delay that can prevent the wait
   loop form iterating when running at the maximum speed. This gives
   you a little more speed, even if it seems counter-intuitive. At
   lower speeds, it is unnoticed. Watch the output on an oscilloscope
   when running full SPI speed, and you should see closer back-to-back
   writes.

Quoting Paul Stoffregen:

   I did quite a bit of experimenting with the NOP addition. The one
   that's in my copy gives about a 10% speedup on AVR.
2014-11-25 15:49:17 +01:00