1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00
Commit Graph

136 Commits

Author SHA1 Message Date
669609f3d7 fix uart receive 2015-05-12 18:44:31 +03:00
4425e0921f removing timer aliases 2015-05-12 10:36:12 +03:00
3ff208c3e9 add pwm freq adjustment 2015-05-11 14:28:37 +03:00
b5d6951743 fix PWM and Timer1 2015-05-11 14:17:13 +03:00
7e15659c29 Merge pull request #200 from Makuna/esp8266
true noInterrupts() interrupts() support
2015-05-08 08:28:10 +03:00
9977276ba9 Merge pull request #1 from esp8266/esp8266
Get latest
2015-05-07 12:53:52 -07:00
367962d89e refactored xt_disable_intterupts to accept level
due to the rsil requirement that the level be a constant, the method was
moved into a macro
2015-05-07 12:29:37 -07:00
163858dc44 fix use SPI.beginTransaction crash 2015-05-07 19:25:25 +02:00
a689d6715b revert some changes that were wrong 2015-05-06 20:54:56 +03:00
b094b50e18 xt disable and enable functions 2015-05-06 09:02:14 -07:00
c328452651 true interrupt enable and disable
plus expose cycle count for bit bang timing
2015-05-06 08:42:38 -07:00
5c915ff385 add Winbond flash chip Ids 2015-05-05 18:41:38 +02:00
34b09f7e23 small clean up of HardwareSerial 2015-05-05 13:27:28 +03:00
4e41c2399b add OUTPUT_OPEN_DRAIN
disabling pulls on pinMode is not needed, since they are cleared 2
lines above.
2015-05-05 13:07:48 +03:00
e6b48164c2 add macro cli() and sei() for more AVR compatibility 2015-05-04 18:10:51 +02:00
b752822aef fix UART clock divider
UART clock is constant
2015-05-03 20:56:58 +03:00
735277fff9 ACK is actually 0 2015-05-03 20:35:01 +03:00
38b2bb7037 overflow at 160MHz 2015-05-03 17:53:24 +03:00
3d0dafcbc0 fix UART RX PullUps and TWI 2015-05-03 17:51:06 +03:00
fcbd7dbed0 Change UART register access methods 2015-05-03 16:44:19 +03:00
851f07cdf5 replease digitalPinToPort, digitalPinToBitMask, portOutputRegister, portInputRegister, portModeRegister by macros 2015-05-02 15:54:45 +02:00
66ded562f3 Revert "Revert "disable debug on Serial.end() if debug on this interface.""
This reverts commit b2d4169734.
2015-05-01 16:15:58 +03:00
bbba691cac Revert "disable debug on Serial.end() if debug on this interface."
This reverts commit 28a868d6dd.
2015-05-01 16:09:46 +03:00
bc3d847c4c Merge pull request #5 from Links2004/esp8266
merging some changes
2015-05-01 16:06:18 +03:00
a250492c20 disable debug on Serial.end() if debug on this interface. 2015-05-01 14:58:48 +02:00
c94128c02d disable UART before making all pins INPUTs 2015-05-01 15:52:30 +03:00
d4e6561b52 add back pull-down support 2015-05-01 14:46:08 +02:00
0a712e78c7 fix 160Mhz mode
add missing 0
16000000L != 160000000L
2015-05-01 14:11:09 +02:00
344eb6e8db move digitalWrite and digitalRead to ram
if in flash it can produce uncalculated lag.

fix warning
2015-05-01 14:04:56 +02:00
9e4594dc3e Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-05-01 13:57:13 +02:00
9fd686b853 wiring_digital: fix interrupts, initialize pins to INPUT on startup 2015-05-01 09:53:19 +08:00
fbec557ddb Importing my changes 2015-04-30 20:48:50 +03:00
1d2d8f8dd2 add function to get flash size based of flash Chip id 2015-04-30 16:06:01 +02:00
55b2d88d07 in Arduino.h make some errors by compiling in some cases moved to Esp.cpp 2015-04-30 15:19:36 +02:00
fab5104cff use User-defined literals for kHz, MHz, GHz, kBit, MBit, GBit, kB, MB and GB
see #145
2015-04-30 15:04:10 +02:00
cf9da93b61 Remove some definitions from global namespace
Names like kB, MB and kHz are likely to collide with variable names in user sketches.
Nowadays this should be implemented using c++14 user-defined literals (http://en.cppreference.com/w/cpp/language/user_literal)
2015-04-30 19:06:11 +08:00
a4536d5935 Minor code style changes 2015-04-30 18:54:16 +08:00
3d25914302 fix c&p fail 2015-04-30 11:34:44 +02:00
724baf7910 add functions to read out the flash config
Serial.print(F("Flash Chip Size: "));
Serial.println(ESP.getFlashChipSize());

Serial.print(F("Flash Chip Speed: "));
Serial.println(ESP.getFlashChipSpeed());

Serial.print(F("Flash Chip Mode: 0x"));
Serial.println(ESP.getFlashChipMode(), HEX);
2015-04-30 10:42:17 +02:00
8cb330eadf add ESP.getFlashChipId() 2015-04-29 22:33:15 +02:00
22f063b913 add _bv macro from avr
see #125
2015-04-29 07:01:34 +08:00
2472970933 fix some warnings
warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
warning: defined but not used [-Wunused-variable]
warning: declared 'static' but never defined [-Wunused-function]
warning: suggest parentheses around '&&' within '||' [-Wparentheses}
2015-04-29 07:01:28 +08:00
2b3302c714 add new macro for force function to ram
move uart_interrupt_handler in ram
2015-04-29 07:01:19 +08:00
a8658c8f1c Merge pull request #107 from Makuna/StrNAdditions
missing strn program space wrappers
2015-04-26 17:42:22 +08:00
468dff5e73 Merge pull request #108 from Makuna/strnlen
strnlen implementation
2015-04-26 17:41:38 +08:00
be5f1f83c1 HardwareSerial: add other configs than 8N1 2015-04-26 00:20:39 +02:00
7f6a588773 include stdlib_noniso.h in Arduino.h see #110 2015-04-25 10:43:10 +02:00
ca4c361a58 strnlen implementation
since there is no ets_strnlen, provide an implementation
2015-04-24 15:59:34 -07:00
b2fa3d5b1f missing strn program space wrappers 2015-04-24 15:46:02 -07:00
1d6fc00fdb uart_interrupt_handler is now in ram 2015-04-24 21:15:41 +02:00