diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2016-10-30 14:34:58 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2016-10-30 14:34:58 +0100 |
commit | 4435bdec242f1518ee0b4fcf93d8eec4341697e3 (patch) | |
tree | ad037b10cfca74926c6de7e2327807940af1d05d /testhal/TIVA/TM4C123x/I2C | |
parent | d10aa9e7a136e41377f40a774fdf3bffb59b358b (diff) | |
download | ChibiOS-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.c | 8 |
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. |