8000 Add Nano32 development board by nazt · Pull Request #8 · espressif/arduino-esp32 · GitHub
[go: up one dir, main page]

Skip to content

Add Nano32 development board #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 33 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e8fd4e5
Add Nano32
Oct 7, 2016
c9c3e78
Change upload.maximum_data_size to 294912
Oct 18, 2016
7eee62e
Update README.md
me-no-dev Oct 7, 2016
6243347
include math.h by default
me-no-dev Oct 7, 2016
3a7ce7e
fix F macro
me-no-dev Oct 7, 2016
9c6fdfa
comment out __FlashStringHelper methods in Print
me-no-dev Oct 7, 2016
6ddf4b6
Print::printf should allocate it's buffer
me-no-dev Oct 7, 2016
d9271d4
add more definitions to pgmspace.h to match ESP8266
me-no-dev Oct 7, 2016
08fb11f
Remove non-working WiFi examples and fix some that require changes
me-no-dev Oct 8, 2016
7f39802
fix i2c hal
me-no-dev Oct 8, 2016
8bfca04
I2C SDA should properly register the ACK bit from some slaves
me-no-dev Oct 10, 2016
a4f3600
prevent some devices from locking the SCL line
me-no-dev Oct 10, 2016
df46317
Prevent I2C Bus locks and wrong data being sent on retry
me-no-dev Oct 10, 2016
afcff1b
use local buffer for printf if size is equal or less than 64
me-no-dev Oct 10, 2016
2f512bc
Do not delete printf buffer if not required
me-no-dev Oct 10, 2016
ae2a984
fix Serial RX
me-no-dev Oct 11, 2016
89a3e09
attach uart isr on the current core
me-no-dev Oct 11, 2016
9b01daa
copy va_list in Print::printf
me-no-dev Oct 11, 2016
d5a59e1
fix GPIO attachInterrupt
me-no-dev Oct 11, 2016
74aeafb
really fix attachInterrupt to work on either core
me-no-dev Oct 11, 2016
713ff09
implement thread-safe i2c
me-no-dev Oct 11, 2016
cff7f69
return proper errors
me-no-dev Oct 11, 2016
13af2c7
implement thread-safe spi
me-no-dev Oct 11, 2016
9d5881a
UART rework
me-no-dev Oct 14, 2016
5cd933e
Implement thread-safe uart
me-no-dev Oct 14, 2016
c36a891
remove unnecessary locks
me-no-dev Oct 14, 2016
c4cd31d
remove unnecessary locks
me-no-dev Oct 14, 2016
a2e3506
fix reported data size and percentage
me-no-dev Oct 17, 2016
74197b1
do not lock for ets_printf
me-no-dev Oct 17, 2016
f0c99ef
Ignore certificates on windows
whatnick Oct 17, 2016
b366e84
ignore ssl only on windows
me-no-dev Oct 17, 2016
5f1a818
First addition of ESP320 support (#19)
Sweet-Peas Oct 17, 2016
6bfaa52
Add Nano32
Oct 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix GPIO attachInterrupt
  • Loading branch information
me-no-dev authored and Nat committed Oct 18, 2016
commit d5a59e16d75dff731b7093a05be9d750e2c883b0
8 changes: 5 additions & 3 deletions cores/esp32/esp32-hal-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,23 @@ extern void __attachInterrupt(uint8_t pin, voidFuncPtr userFunc, int intr_type)
if(!interrupt_initialized) {
interrupt_initialized = true;
ESP_INTR_DISABLE(ETS_GPIO_INUM);
intr_matrix_set(PRO_CPU_NUM, ETS_GPIO_INTR_SOURCE, ETS_GPIO_INUM);
intr_matrix_set(xPortGetCoreID(), ETS_GPIO_INTR_SOURCE, ETS_GPIO_INUM);
xt_set_interrupt_handler(ETS_GPIO_INUM, &__onPinInterrupt, NULL);
ESP_INTR_ENABLE(ETS_GPIO_INUM);
}
__pinInterruptHandlers[pin] = userFunc;
ESP_INTR_DISABLE(ETS_GPIO_INUM);
GPIO.pin[pin].val = (GPIO.pin[pin].val & ~((GPIO_PIN0_INT_ENA << GPIO_PIN0_INT_ENA_S) | (GPIO_PIN0_INT_TYPE << GPIO_PIN0_INT_TYPE_S))) | (((uint32_t)0x4 << GPIO_PIN0_INT_ENA_S) | ((uint32_t)intr_type << GPIO_PIN0_INT_TYPE_S));
GPIO.pin[pin].int_ena = 1;
GPIO.pin[pin].int_type = intr_type;
ESP_INTR_ENABLE(ETS_GPIO_INUM);
}

extern void __detachInterrupt(uint8_t pin)
{
__pinInterruptHandlers[pin] = NULL;
ESP_INTR_DISABLE(ETS_GPIO_INUM);
GPIO.pin[pin].val = (GPIO.pin[pin].val & ~((GPIO_PIN0_INT_ENA << GPIO_PIN0_INT_ENA_S) | (GPIO_PIN0_INT_TYPE << GPIO_PIN0_INT_TYPE_S)));
GPIO.pin[pin].int_ena = 0;
GPIO.pin[pin].int_type = 0;
ESP_INTR_ENABLE(ETS_GPIO_INUM);
}

Expand Down
0