mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-27 10:22:08 +00:00
Fixes for Test_PinGroup_driver.c and Test_pca9557.c warnings.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user