mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Fixed Wire1 initialization. Fixed keywords for Wire library
This commit is contained in:
parent
b6eef92980
commit
9113c454f4
@ -369,6 +369,11 @@ static void Wire1_Init(void) {
|
|||||||
g_APinDescription[PIN_WIRE1_SCL].ulPinType,
|
g_APinDescription[PIN_WIRE1_SCL].ulPinType,
|
||||||
g_APinDescription[PIN_WIRE1_SCL].ulPin,
|
g_APinDescription[PIN_WIRE1_SCL].ulPin,
|
||||||
g_APinDescription[PIN_WIRE1_SCL].ulPinConfiguration);
|
g_APinDescription[PIN_WIRE1_SCL].ulPinConfiguration);
|
||||||
|
|
||||||
|
NVIC_DisableIRQ(TWI0_IRQn);
|
||||||
|
NVIC_ClearPendingIRQ(TWI0_IRQn);
|
||||||
|
NVIC_SetPriority(TWI0_IRQn, 0);
|
||||||
|
NVIC_EnableIRQ(TWI0_IRQn);
|
||||||
}
|
}
|
||||||
|
|
||||||
TwoWire Wire1 = TwoWire(WIRE1_INTERFACE, Wire1_Init);
|
TwoWire Wire1 = TwoWire(WIRE1_INTERFACE, Wire1_Init);
|
||||||
|
@ -24,6 +24,7 @@ onRequest KEYWORD2
|
|||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
Wire KEYWORD2
|
Wire KEYWORD2
|
||||||
|
Wire1 KEYWORD2
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Constants (LITERAL1)
|
# Constants (LITERAL1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user