Fixes for Test_PinGroup_driver.c and Test_pca9557.c warnings.

This commit is contained in:
mdlewisfb
2018-10-02 18:45:29 -07:00
parent 5ee3f2cd8a
commit 497d013e9c
2 changed files with 1 additions and 8 deletions

View File

@@ -27,10 +27,6 @@ static uint8_t PCA9557_regs[] = {
[0x02] = 0x00, /* Polarity */
[0x03] = 0x00, /* Dir Config */
};
static const I2C_Dev pca9557_dev = {
.bus = 2,
.slave_addr = 0x24,
};
OcGpio_Port fe_ch1_gain_io = {
.fn_table = &GpioPCA9557_fnTable,
.cfg = &(PCA9557_Cfg) {
@@ -133,4 +129,4 @@ void test_PinGroup_write(void)
TEST_ASSERT_EQUAL_HEX8(0x04, PCA9557_regs[0x01]);
TEST_ASSERT_EQUAL_HEX8(0xFF, PCA9557_regs[0x02]);
TEST_ASSERT_EQUAL_HEX8(0xFF, PCA9557_regs[0x03]);
}
}

View File

@@ -14,9 +14,6 @@
#include <string.h>
/* ======================== Constants & variables =========================== */
static const unsigned int I2C_BUS = 2;
static const uint8_t I2C_ADDR = 0x00;
static uint8_t PCA9557_regs[] = {
[0x00] = 0x00, /* Input values */
[0x01] = 0x00, /* Output values */