aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/TIVA/TM4C123x/I2C
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:34:58 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:34:58 +0100
commit4435bdec242f1518ee0b4fcf93d8eec4341697e3 (patch)
treead037b10cfca74926c6de7e2327807940af1d05d /testhal/TIVA/TM4C123x/I2C
parentd10aa9e7a136e41377f40a774fdf3bffb59b358b (diff)
downloadChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.tar.gz
ChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.tar.bz2
ChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.zip
Replaced port+pad by line in the demos and testhal.
Diffstat (limited to 'testhal/TIVA/TM4C123x/I2C')
-rw-r--r--testhal/TIVA/TM4C123x/I2C/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/TIVA/TM4C123x/I2C/main.c b/testhal/TIVA/TM4C123x/I2C/main.c
index 5f58176..5c5e704 100644
--- a/testhal/TIVA/TM4C123x/I2C/main.c
+++ b/testhal/TIVA/TM4C123x/I2C/main.c
@@ -70,8 +70,8 @@ int main(void)
chSysInit();
/* Configure RX and TX pins for UART0.*/
- palSetPadMode(GPIOA, GPIOA_UART0_RX, PAL_MODE_INPUT | PAL_MODE_ALTERNATE(1));
- palSetPadMode(GPIOA, GPIOA_UART0_TX, PAL_MODE_INPUT | PAL_MODE_ALTERNATE(1));
+ palSetLineMode(LINE_UART0_RX, PAL_MODE_INPUT | PAL_MODE_ALTERNATE(1));
+ palSetLineMode(LINE_UART0_TX, PAL_MODE_INPUT | PAL_MODE_ALTERNATE(1));
/*
* Start the serial driver with the default configuration.
@@ -79,8 +79,8 @@ int main(void)
sdStart(&SD1, NULL);
/* Configure SCK and SCL pins for I2C0.*/
- palSetPadMode(GPIOB, GPIOB_I2C0_SCL, PAL_MODE_OUTPUT_PUSHPULL | PAL_MODE_ALTERNATE(3));
- palSetPadMode(GPIOB, GPIOB_I2C0_SDA, PAL_MODE_OUTPUT_OPENDRAIN | PAL_MODE_ALTERNATE(3));
+ palSetLineMode(LINE_I2C0_SCL, PAL_MODE_OUTPUT_PUSHPULL | PAL_MODE_ALTERNATE(3));
+ palSetLineMode(LINE_I2C0_SDA, PAL_MODE_OUTPUT_OPENDRAIN | PAL_MODE_ALTERNATE(3));
/*
* Start the i2c driver with the custom configuration.