From 49d32751efec2baf6689f90feb41570897b68631 Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 8 Sep 2023 14:17:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D0=B8=20ZD24C02A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/epwm_test/src/ZD24C02A.c | 8 ++++++++ Projects/epwm_test/src/ZD24C02A.h | 13 +++++++++++++ Projects/epwm_test/src/i2c_init.c | 8 ++++---- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 Projects/epwm_test/src/ZD24C02A.c create mode 100644 Projects/epwm_test/src/ZD24C02A.h diff --git a/Projects/epwm_test/src/ZD24C02A.c b/Projects/epwm_test/src/ZD24C02A.c new file mode 100644 index 0000000..40c95ff --- /dev/null +++ b/Projects/epwm_test/src/ZD24C02A.c @@ -0,0 +1,8 @@ +/* + * ZD24C02A.c + * + * Created on: 8 сент. 2023 г. + * Author: seklyuts + */ + + diff --git a/Projects/epwm_test/src/ZD24C02A.h b/Projects/epwm_test/src/ZD24C02A.h new file mode 100644 index 0000000..5d06f74 --- /dev/null +++ b/Projects/epwm_test/src/ZD24C02A.h @@ -0,0 +1,13 @@ +/* + * ZD24C02A.h + * + * Created on: 8 сент. 2023 г. + * Author: seklyuts + */ + +#ifndef SRC_ZD24C02A_H_ +#define SRC_ZD24C02A_H_ + + + +#endif /* SRC_ZD24C02A_H_ */ diff --git a/Projects/epwm_test/src/i2c_init.c b/Projects/epwm_test/src/i2c_init.c index 986c5ea..421ef1c 100644 --- a/Projects/epwm_test/src/i2c_init.c +++ b/Projects/epwm_test/src/i2c_init.c @@ -21,17 +21,17 @@ uint16_t I2C_RXdata[MAX_BUFFER_SIZE]; // // I2C GPIO pins // -#define GPIO_PIN_SDAA 26U // GPIO number for I2C SDAA -#define GPIO_PIN_SCLA 27U // GPIO number for I2C SCLA +#define GPIO_PIN_SDAA 0U // GPIO number for I2C SDAA +#define GPIO_PIN_SCLA 1U // GPIO number for I2C SCLA void I2CMasterGpioInit(void) { // //Configure I2C pins // - GPIO_SetupPinMux(GPIO_PIN_SDAA, GPIO_MUX_CPU1, 11); + GPIO_SetupPinMux(GPIO_PIN_SDAA, GPIO_MUX_CPU1, 6); GPIO_SetupPinOptions(GPIO_PIN_SDAA, GPIO_OUTPUT, GPIO_PULLUP); - GPIO_SetupPinMux(GPIO_PIN_SCLA, GPIO_MUX_CPU1, 11); + GPIO_SetupPinMux(GPIO_PIN_SCLA, GPIO_MUX_CPU1, 6); GPIO_SetupPinOptions(GPIO_PIN_SCLA, GPIO_OUTPUT, GPIO_PULLUP); }