Make the firmware of the left keyboard half build successfully.
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z/examples"/>
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z/examples/frdmkl03z"/>
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z"/>
|
||||
<listOptionValue builtIn="false" value="../../../../include"/>
|
||||
<listOptionValue builtIn="false" value="../../../../shared"/>
|
||||
</option>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.933718024" name="Language standard" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.gnu99" valueType="enumerated"/>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs.4702060583" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
@@ -228,7 +228,7 @@
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z/examples"/>
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z/examples/frdmkl03z"/>
|
||||
<listOptionValue builtIn="false" value="../../../../lib/KSDK_1.3_FRDM-KL03Z"/>
|
||||
<listOptionValue builtIn="false" value="../../../../include"/>
|
||||
<listOptionValue builtIn="false" value="../../../../shared"/>
|
||||
</option>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.997197032" name="Language standard" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.gnu99" valueType="enumerated"/>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs.9999202301" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
|
||||
@@ -35,6 +35,11 @@
|
||||
<type>2</type>
|
||||
<locationURI>virtual:/virtual</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>shared</name>
|
||||
<type>2</type>
|
||||
<locationURI>PARENT-3-PROJECT_LOC/shared</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>source</name>
|
||||
<type>2</type>
|
||||
@@ -83,7 +88,7 @@
|
||||
<link>
|
||||
<name>source/i2c.h</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-3-PROJECT_LOC/include/i2c.h</locationURI>
|
||||
<locationURI>PARENT-3-PROJECT_LOC/shared/i2c.h</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>source/main.c</name>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "fsl_clock_manager.h"
|
||||
#include "fsl_i2c_slave_driver.h"
|
||||
#include "fsl_i2c_shared_function.h"
|
||||
#include "i2c.h"
|
||||
#include "i2c_addresses.h"
|
||||
#include "main.h"
|
||||
|
||||
uint8_t isSw2Pressed;
|
||||
@@ -94,7 +94,7 @@ int main(void)
|
||||
i2c_slave_state_t slave;
|
||||
|
||||
i2c_slave_user_config_t userConfig = {
|
||||
.address = LEFT_KEYBOARD_HALF_I2C_ADDRESS_7BIT,
|
||||
.address = I2C_ADDRESS_LED_DRIVER_LEFT,
|
||||
.slaveCallback = i2c_slave_callback,
|
||||
.callbackParam = NULL,
|
||||
.slaveListening = true,
|
||||
|
||||
Reference in New Issue
Block a user