Browse Source

Changing default colors to RGB565

main
Goran Mahovlic 2 years ago
parent
commit
6f39a4dc3d
  1. 4
      .cproject
  2. 86
      .mxproject
  3. 52
      Core/Inc/eth.h
  4. 6
      Core/Inc/i2c.h
  5. 4
      Core/Inc/main.h
  6. 2
      Core/Inc/stm32f7xx_hal_conf.h
  7. 2
      Core/Inc/stm32f7xx_it.h
  8. 3
      Core/Inc/tim.h
  9. 54
      Core/Src/gpio.c
  10. 210
      Core/Src/i2c.c
  11. 2
      Core/Src/ltdc.c
  12. 5
      Core/Src/main.c
  13. 30
      Core/Src/stm32f7xx_it.c
  14. 87
      Core/Src/tim.c
  15. 90
      Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.d
  16. BIN
      Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o
  17. 31
      Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.su
  18. 5
      Debug/Drivers/STM32F7xx_HAL_Driver/Src/subdir.mk
  19. 1
      Debug/objects.list
  20. 83938
      Debug/stm32f746g-disco.hex
  21. 4
      Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.c
  22. 2217
      Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_eth.h
  23. 2291
      Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c
  24. 118
      Src/eez-flow-template-stm32f746g-disco.eez-project
  25. 15842
      Src/gui/document.cpp
  26. 4
      Src/gui/document.h
  27. 2
      Src/lcd.cpp
  28. 76
      stm32f746g-disco.ioc

4
.cproject

@ -23,7 +23,7 @@
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.580909619" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv5-sp-d16" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.58424822" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.1165501152" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="STM32F746G-DISCO" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1682484946" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F746G-DISCO || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../USB_DEVICE/Target | ../Drivers/CMSIS/Device/ST/STM32F7xx/Include | ../Drivers/STM32F7xx_HAL_Driver/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Core/Inc | ../Drivers/CMSIS/Include | ../Core/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc | ../USB_DEVICE/App | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 | ../FATFS/Target | ../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 || || || USE_HAL_DRIVER | STM32F746xx || || Drivers | Core/Startup | Middlewares | Core | FATFS | USB_DEVICE || || || ${workspace_loc:/${ProjName}/STM32F746NGHX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1682484946" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F746G-DISCO || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../USB_DEVICE/Target | ../Drivers/CMSIS/Device/ST/STM32F7xx/Include | ../Drivers/STM32F7xx_HAL_Driver/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Core/Inc | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Drivers/CMSIS/Include | ../Core/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc | ../USB_DEVICE/App | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 | ../FATFS/Target | ../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32F746xx || || Drivers | Core/Startup | Middlewares | Core | FATFS | USB_DEVICE || || || ${workspace_loc:/${ProjName}/STM32F746NGHX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoprintffloat.678080147" name="Use float with printf from newlib-nano (-u _printf_float)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoprintffloat" useByScannerDiscovery="false" value="true" valueType="boolean"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.847475818" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/stm32f746g-disco}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1711004464" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
@ -270,7 +270,7 @@
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.1672549662" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv5-sp-d16" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1502976338" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.418858996" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="STM32F746G-DISCO" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1660624337" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F746G-DISCO || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../USB_DEVICE/Target | ../Drivers/CMSIS/Device/ST/STM32F7xx/Include | ../Drivers/STM32F7xx_HAL_Driver/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Core/Inc | ../Drivers/CMSIS/Include | ../Core/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc | ../USB_DEVICE/App | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 | ../FATFS/Target | ../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 || || || USE_HAL_DRIVER | STM32F746xx || || Drivers | Core/Startup | Middlewares | Core | FATFS | USB_DEVICE || || || ${workspace_loc:/${ProjName}/STM32F746NGHX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1660624337" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F746G-DISCO || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../USB_DEVICE/Target | ../Drivers/CMSIS/Device/ST/STM32F7xx/Include | ../Drivers/STM32F7xx_HAL_Driver/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Core/Inc | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Drivers/CMSIS/Include | ../Core/Inc | ../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc | ../USB_DEVICE/App | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 | ../FATFS/Target | ../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32F746xx || || Drivers | Core/Startup | Middlewares | Core | FATFS | USB_DEVICE || || || ${workspace_loc:/${ProjName}/STM32F746NGHX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.904643149" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/stm32f746g-disco}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.407955074" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.933753983" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">

86
.mxproject

File diff suppressed because one or more lines are too long

52
Core/Inc/eth.h

@ -1,52 +0,0 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file eth.h
* @brief This file contains all the function prototypes for
* the eth.c file
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __ETH_H__
#define __ETH_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern ETH_HandleTypeDef heth;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_ETH_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __ETH_H__ */

6
Core/Inc/i2c.h

@ -32,18 +32,12 @@ extern "C" {
/* USER CODE END Includes */
extern I2C_HandleTypeDef hi2c1;
extern I2C_HandleTypeDef hi2c2;
extern I2C_HandleTypeDef hi2c3;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_I2C1_Init(void);
void MX_I2C2_Init(void);
void MX_I2C3_Init(void);
/* USER CODE BEGIN Prototypes */

4
Core/Inc/main.h

@ -273,6 +273,8 @@ void Error_Handler(void);
#define FMC_BA1_GPIO_Port GPIOG
#define FMC_BA0_Pin GPIO_PIN_4
#define FMC_BA0_GPIO_Port GPIOG
#define LCD_SCL_Pin_Pin GPIO_PIN_7
#define LCD_SCL_Pin_GPIO_Port GPIOH
#define RMII_MDIO_Pin GPIO_PIN_2
#define RMII_MDIO_GPIO_Port GPIOA
#define RMII_RXD1_Pin GPIO_PIN_5
@ -291,6 +293,8 @@ void Error_Handler(void);
#define FMC_D11_GPIO_Port GPIOE
#define ARDUINO_PWM_D6_Pin GPIO_PIN_6
#define ARDUINO_PWM_D6_GPIO_Port GPIOH
#define LCD_SDA_Pin_Pin GPIO_PIN_8
#define LCD_SDA_Pin_GPIO_Port GPIOH
#define RMII_CRS_DV_Pin GPIO_PIN_7
#define RMII_CRS_DV_GPIO_Port GPIOA
#define LCD_R1_Pin GPIO_PIN_0

2
Core/Inc/stm32f7xx_hal_conf.h

@ -46,7 +46,7 @@
/* #define HAL_DAC_MODULE_ENABLED */
/* #define HAL_DCMI_MODULE_ENABLED */
#define HAL_DMA2D_MODULE_ENABLED
#define HAL_ETH_MODULE_ENABLED
/* #define HAL_ETH_MODULE_ENABLED */
/* #define HAL_NAND_MODULE_ENABLED */
/* #define HAL_NOR_MODULE_ENABLED */
/* #define HAL_SRAM_MODULE_ENABLED */

2
Core/Inc/stm32f7xx_it.h

@ -52,8 +52,10 @@ void MemManage_Handler(void);
void BusFault_Handler(void);
void UsageFault_Handler(void);
void DebugMon_Handler(void);
void TIM3_IRQHandler(void);
void TIM6_DAC_IRQHandler(void);
void OTG_FS_IRQHandler(void);
void I2C3_EV_IRQHandler(void);
void LTDC_IRQHandler(void);
void DMA2D_IRQHandler(void);
/* USER CODE BEGIN EFP */

3
Core/Inc/tim.h

@ -34,11 +34,14 @@ extern "C" {
extern TIM_HandleTypeDef htim1;
extern TIM_HandleTypeDef htim3;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_TIM1_Init(void);
void MX_TIM3_Init(void);
/* USER CODE BEGIN Prototypes */

54
Core/Src/gpio.c

@ -33,17 +33,29 @@
/* USER CODE END 1 */
/** Configure pins
PB4 ------> S_TIM3_CH1
PG14 ------> ETH_TXD1
PB8 ------> I2C1_SCL
PA15 ------> S_TIM2_CH1_ETR
PG13 ------> ETH_TXD0
PB9 ------> I2C1_SDA
PG11 ------> ETH_TX_EN
PI1 ------> SPI2_SCK
PI0 ------> S_TIM5_CH4
PH4 ------> I2C2_SCL
PH5 ------> I2C2_SDA
PF7 ------> ADC3_IN5
PF6 ------> ADC3_IN4
PF10 ------> ADC3_IN8
PF9 ------> ADC3_IN7
PF8 ------> ADC3_IN6
PC1 ------> ETH_MDC
PA1 ------> ETH_REF_CLK
PA0/WKUP ------> ADCx_IN0
PC4 ------> ETH_RXD0
PA2 ------> ETH_MDIO
PC5 ------> ETH_RXD1
PH6 ------> S_TIM12_CH1
PA7 ------> ETH_CRS_DV
PB14 ------> SPI2_MISO
PB15 ------> SPI2_MOSI
*/
@ -89,13 +101,21 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(OTG_HS_OverCurrent_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : PtPin */
GPIO_InitStruct.Pin = ARDUINO_PWM_D3_Pin;
/*Configure GPIO pins : PGPin PGPin PGPin */
GPIO_InitStruct.Pin = RMII_TXD1_Pin|RMII_TXD0_Pin|RMII_TX_EN_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
/*Configure GPIO pins : PBPin PBPin */
GPIO_InitStruct.Pin = ARDUINO_SCL_D15_Pin|ARDUINO_SDA_D14_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
HAL_GPIO_Init(ARDUINO_PWM_D3_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/*Configure GPIO pin : PtPin */
GPIO_InitStruct.Pin = ARDUINO_PWM_D9_Pin;
@ -185,6 +205,14 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(LCD_INT_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pins : PH4 PH5 */
GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
/*Configure GPIO pins : PGPin PGPin PGPin */
GPIO_InitStruct.Pin = ARDUINO_D4_Pin|ARDUINO_D2_Pin|EXT_RST_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
@ -200,12 +228,28 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
/*Configure GPIO pins : PCPin PCPin PCPin */
GPIO_InitStruct.Pin = RMII_MDC_Pin|RMII_RXD0_Pin|RMII_RXD1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
/*Configure GPIO pin : PtPin */
GPIO_InitStruct.Pin = RMII_RXER_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(RMII_RXER_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pins : PAPin PAPin PAPin */
GPIO_InitStruct.Pin = RMII_REF_CLK_Pin|RMII_MDIO_Pin|RMII_CRS_DV_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/*Configure GPIO pin : PtPin */
GPIO_InitStruct.Pin = ARDUINO_A0_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;

210
Core/Src/i2c.c

@ -24,96 +24,8 @@
/* USER CODE END 0 */
I2C_HandleTypeDef hi2c1;
I2C_HandleTypeDef hi2c2;
I2C_HandleTypeDef hi2c3;
/* I2C1 init function */
void MX_I2C1_Init(void)
{
/* USER CODE BEGIN I2C1_Init 0 */
/* USER CODE END I2C1_Init 0 */
/* USER CODE BEGIN I2C1_Init 1 */
/* USER CODE END I2C1_Init 1 */
hi2c1.Instance = I2C1;
hi2c1.Init.Timing = 0x00C0EAFF;
hi2c1.Init.OwnAddress1 = 0;
hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
hi2c1.Init.OwnAddress2 = 0;
hi2c1.Init.OwnAddress2Masks = I2C_OA2_NOMASK;
hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
if (HAL_I2C_Init(&hi2c1) != HAL_OK)
{
Error_Handler();
}
/** Configure Analogue filter
*/
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c1, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
{
Error_Handler();
}
/** Configure Digital filter
*/
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c1, 0) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN I2C1_Init 2 */
/* USER CODE END I2C1_Init 2 */
}
/* I2C2 init function */
void MX_I2C2_Init(void)
{
/* USER CODE BEGIN I2C2_Init 0 */
/* USER CODE END I2C2_Init 0 */
/* USER CODE BEGIN I2C2_Init 1 */
/* USER CODE END I2C2_Init 1 */
hi2c2.Instance = I2C2;
hi2c2.Init.Timing = 0x00C0EAFF;
hi2c2.Init.OwnAddress1 = 0;
hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
hi2c2.Init.OwnAddress2 = 0;
hi2c2.Init.OwnAddress2Masks = I2C_OA2_NOMASK;
hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
if (HAL_I2C_Init(&hi2c2) != HAL_OK)
{
Error_Handler();
}
/** Configure Analogue filter
*/
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c2, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
{
Error_Handler();
}
/** Configure Digital filter
*/
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c2, 0) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN I2C2_Init 2 */
/* USER CODE END I2C2_Init 2 */
}
/* I2C3 init function */
void MX_I2C3_Init(void)
{
@ -163,73 +75,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
GPIO_InitTypeDef GPIO_InitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
if(i2cHandle->Instance==I2C1)
{
/* USER CODE BEGIN I2C1_MspInit 0 */
/* USER CODE END I2C1_MspInit 0 */
/** Initializes the peripherals clock
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2C1;
PeriphClkInitStruct.I2c1ClockSelection = RCC_I2C1CLKSOURCE_PCLK1;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
{
Error_Handler();
}
__HAL_RCC_GPIOB_CLK_ENABLE();
/**I2C1 GPIO Configuration
PB8 ------> I2C1_SCL
PB9 ------> I2C1_SDA
*/
GPIO_InitStruct.Pin = ARDUINO_SCL_D15_Pin|ARDUINO_SDA_D14_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/* I2C1 clock enable */
__HAL_RCC_I2C1_CLK_ENABLE();
/* USER CODE BEGIN I2C1_MspInit 1 */
/* USER CODE END I2C1_MspInit 1 */
}
else if(i2cHandle->Instance==I2C2)
{
/* USER CODE BEGIN I2C2_MspInit 0 */
/* USER CODE END I2C2_MspInit 0 */
/** Initializes the peripherals clock
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2C2;
PeriphClkInitStruct.I2c2ClockSelection = RCC_I2C2CLKSOURCE_PCLK1;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
{
Error_Handler();
}
__HAL_RCC_GPIOH_CLK_ENABLE();
/**I2C2 GPIO Configuration
PH4 ------> I2C2_SCL
PH5 ------> I2C2_SDA
*/
GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
/* I2C2 clock enable */
__HAL_RCC_I2C2_CLK_ENABLE();
/* USER CODE BEGIN I2C2_MspInit 1 */
/* USER CODE END I2C2_MspInit 1 */
}
else if(i2cHandle->Instance==I2C3)
if(i2cHandle->Instance==I2C3)
{
/* USER CODE BEGIN I2C3_MspInit 0 */
@ -249,7 +95,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
PH7 ------> I2C3_SCL
PH8 ------> I2C3_SDA
*/
GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8;
GPIO_InitStruct.Pin = LCD_SCL_Pin_Pin|LCD_SDA_Pin_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
@ -258,6 +104,10 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
/* I2C3 clock enable */
__HAL_RCC_I2C3_CLK_ENABLE();
/* I2C3 interrupt Init */
HAL_NVIC_SetPriority(I2C3_EV_IRQn, 5, 0);
HAL_NVIC_EnableIRQ(I2C3_EV_IRQn);
/* USER CODE BEGIN I2C3_MspInit 1 */
/* USER CODE END I2C3_MspInit 1 */
@ -267,47 +117,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
void HAL_I2C_MspDeInit(I2C_HandleTypeDef* i2cHandle)
{
if(i2cHandle->Instance==I2C1)
{
/* USER CODE BEGIN I2C1_MspDeInit 0 */
/* USER CODE END I2C1_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_I2C1_CLK_DISABLE();
/**I2C1 GPIO Configuration
PB8 ------> I2C1_SCL
PB9 ------> I2C1_SDA
*/
HAL_GPIO_DeInit(ARDUINO_SCL_D15_GPIO_Port, ARDUINO_SCL_D15_Pin);
HAL_GPIO_DeInit(ARDUINO_SDA_D14_GPIO_Port, ARDUINO_SDA_D14_Pin);
/* USER CODE BEGIN I2C1_MspDeInit 1 */
/* USER CODE END I2C1_MspDeInit 1 */
}
else if(i2cHandle->Instance==I2C2)
{
/* USER CODE BEGIN I2C2_MspDeInit 0 */
/* USER CODE END I2C2_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_I2C2_CLK_DISABLE();
/**I2C2 GPIO Configuration
PH4 ------> I2C2_SCL
PH5 ------> I2C2_SDA
*/
HAL_GPIO_DeInit(GPIOH, GPIO_PIN_4);
HAL_GPIO_DeInit(GPIOH, GPIO_PIN_5);
/* USER CODE BEGIN I2C2_MspDeInit 1 */
/* USER CODE END I2C2_MspDeInit 1 */
}
else if(i2cHandle->Instance==I2C3)
if(i2cHandle->Instance==I2C3)
{
/* USER CODE BEGIN I2C3_MspDeInit 0 */
@ -319,10 +129,12 @@ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* i2cHandle)
PH7 ------> I2C3_SCL
PH8 ------> I2C3_SDA
*/
HAL_GPIO_DeInit(GPIOH, GPIO_PIN_7);
HAL_GPIO_DeInit(LCD_SCL_Pin_GPIO_Port, LCD_SCL_Pin_Pin);
HAL_GPIO_DeInit(GPIOH, GPIO_PIN_8);
HAL_GPIO_DeInit(LCD_SDA_Pin_GPIO_Port, LCD_SDA_Pin_Pin);
/* I2C3 interrupt Deinit */
HAL_NVIC_DisableIRQ(I2C3_EV_IRQn);
/* USER CODE BEGIN I2C3_MspDeInit 1 */
/* USER CODE END I2C3_MspDeInit 1 */

2
Core/Src/ltdc.c

@ -24,7 +24,7 @@
/* USER CODE END 0 */
//LTDC_HandleTypeDef hltdc;
extern LTDC_HandleTypeDef hltdc;
/* LTDC init function */
void MX_LTDC_Init(void)

5
Core/Src/main.c

@ -21,7 +21,6 @@
#include "cmsis_os.h"
#include "crc.h"
#include "dma2d.h"
#include "eth.h"
#include "fatfs.h"
#include "i2c.h"
#include "ltdc.h"
@ -121,17 +120,15 @@ int main(void)
MX_CRC_Init();
MX_DMA2D_Init();
MX_FMC_Init();
MX_I2C1_Init();
MX_LTDC_Init();
MX_QUADSPI_Init();
MX_SDMMC1_SD_Init();
MX_TIM1_Init();
MX_FATFS_Init();
MX_ETH_Init();
MX_I2C2_Init();
MX_I2C3_Init();
MX_USART3_UART_Init();
MX_USART6_UART_Init();
MX_TIM3_Init();
/* USER CODE BEGIN 2 */
#endif
/* USER CODE END 2 */

30
Core/Src/stm32f7xx_it.c

@ -57,7 +57,9 @@
/* External variables --------------------------------------------------------*/
extern PCD_HandleTypeDef hpcd_USB_OTG_FS;
extern DMA2D_HandleTypeDef hdma2d;
extern I2C_HandleTypeDef hi2c3;
extern LTDC_HandleTypeDef hltdc;
extern TIM_HandleTypeDef htim3;
extern TIM_HandleTypeDef htim6;
/* USER CODE BEGIN EV */
@ -163,6 +165,20 @@ void DebugMon_Handler(void)
/******************************************************************************/
/**
* @brief This function handles TIM3 global interrupt.
*/
void TIM3_IRQHandler(void)
{
/* USER CODE BEGIN TIM3_IRQn 0 */
/* USER CODE END TIM3_IRQn 0 */
HAL_TIM_IRQHandler(&htim3);
/* USER CODE BEGIN TIM3_IRQn 1 */
/* USER CODE END TIM3_IRQn 1 */
}
/**
* @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
*/
void TIM6_DAC_IRQHandler(void)
@ -191,6 +207,20 @@ void OTG_FS_IRQHandler(void)
}
/**
* @brief This function handles I2C3 event interrupt.
*/
void I2C3_EV_IRQHandler(void)
{
/* USER CODE BEGIN I2C3_EV_IRQn 0 */
/* USER CODE END I2C3_EV_IRQn 0 */
HAL_I2C_EV_IRQHandler(&hi2c3);
/* USER CODE BEGIN I2C3_EV_IRQn 1 */
/* USER CODE END I2C3_EV_IRQn 1 */
}
/**
* @brief This function handles LTDC global interrupt.
*/
void LTDC_IRQHandler(void)

87
Core/Src/tim.c

@ -25,6 +25,7 @@
/* USER CODE END 0 */
TIM_HandleTypeDef htim1;
TIM_HandleTypeDef htim3;
/* TIM1 init function */
void MX_TIM1_Init(void)
@ -68,6 +69,47 @@ void MX_TIM1_Init(void)
/* USER CODE END TIM1_Init 2 */
}
/* TIM3 init function */
void MX_TIM3_Init(void)
{
/* USER CODE BEGIN TIM3_Init 0 */
/* USER CODE END TIM3_Init 0 */
TIM_SlaveConfigTypeDef sSlaveConfig = {0};
TIM_MasterConfigTypeDef sMasterConfig = {0};
/* USER CODE BEGIN TIM3_Init 1 */
/* USER CODE END TIM3_Init 1 */
htim3.Instance = TIM3;
htim3.Init.Prescaler = 8999;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
htim3.Init.Period = 499;
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
{
Error_Handler();
}
sSlaveConfig.SlaveMode = TIM_SLAVEMODE_RESET;
sSlaveConfig.InputTrigger = TIM_TS_ITR0;
if (HAL_TIM_SlaveConfigSynchro(&htim3, &sSlaveConfig) != HAL_OK)
{
Error_Handler();
}
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN TIM3_Init 2 */
/* USER CODE END TIM3_Init 2 */
}
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle)
{
@ -96,6 +138,32 @@ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle)
/* USER CODE END TIM1_MspInit 1 */
}
else if(tim_baseHandle->Instance==TIM3)
{
/* USER CODE BEGIN TIM3_MspInit 0 */
/* USER CODE END TIM3_MspInit 0 */
/* TIM3 clock enable */
__HAL_RCC_TIM3_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
/**TIM3 GPIO Configuration
PB4 ------> TIM3_CH1
*/
GPIO_InitStruct.Pin = ARDUINO_PWM_D3_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
HAL_GPIO_Init(ARDUINO_PWM_D3_GPIO_Port, &GPIO_InitStruct);
/* TIM3 interrupt Init */
HAL_NVIC_SetPriority(TIM3_IRQn, 5, 0);
HAL_NVIC_EnableIRQ(TIM3_IRQn);
/* USER CODE BEGIN TIM3_MspInit 1 */
/* USER CODE END TIM3_MspInit 1 */
}
}
void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* tim_baseHandle)
@ -118,6 +186,25 @@ void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* tim_baseHandle)
/* USER CODE END TIM1_MspDeInit 1 */
}
else if(tim_baseHandle->Instance==TIM3)
{
/* USER CODE BEGIN TIM3_MspDeInit 0 */
/* USER CODE END TIM3_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_TIM3_CLK_DISABLE();
/**TIM3 GPIO Configuration
PB4 ------> TIM3_CH1
*/
HAL_GPIO_DeInit(ARDUINO_PWM_D3_GPIO_Port, ARDUINO_PWM_D3_Pin);
/* TIM3 interrupt Deinit */
HAL_NVIC_DisableIRQ(TIM3_IRQn);
/* USER CODE BEGIN TIM3_MspDeInit 1 */
/* USER CODE END TIM3_MspDeInit 1 */
}
}
/* USER CODE BEGIN 1 */

90
Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.d

@ -0,0 +1,90 @@
Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o: \
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h \
../Core/Inc/stm32f7xx_hal_conf.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h \
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f746xx.h \
../Drivers/CMSIS/Include/core_cm7.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_crc.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_crc_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma2d.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_eth.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sdram.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_fmc.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_ltdc.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_ltdc_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_qspi.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pcd.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usb.h \
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pcd_ex.h
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:
../Core/Inc/stm32f7xx_hal_conf.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h:
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f746xx.h:
../Drivers/CMSIS/Include/core_cm7.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_crc.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_crc_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma2d.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_eth.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sdram.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_fmc.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_ltdc.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_ltdc_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_qspi.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pcd.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usb.h:
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pcd_ex.h:

BIN
Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o

Binary file not shown.

31
Debug/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.su

@ -0,0 +1,31 @@
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:208:19:HAL_ETH_Init 40 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:493:19:HAL_ETH_DeInit 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:529:19:HAL_ETH_DMATxDescListInit 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:596:19:HAL_ETH_DMARxDescListInit 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:663:13:HAL_ETH_MspInit 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:679:13:HAL_ETH_MspDeInit 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:890:19:HAL_ETH_TransmitFrame 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1003:19:HAL_ETH_GetReceivedFrame 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1083:19:HAL_ETH_GetReceivedFrame_IT 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1168:6:HAL_ETH_IRQHandler 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1242:13:HAL_ETH_TxCpltCallback 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1258:13:HAL_ETH_RxCpltCallback 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1274:13:HAL_ETH_ErrorCallback 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1296:19:HAL_ETH_ReadPHYRegister 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1368:19:HAL_ETH_WritePHYRegister 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1460:19:HAL_ETH_Start 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1499:19:HAL_ETH_Stop 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1539:19:HAL_ETH_ConfigMAC 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1706:19:HAL_ETH_ConfigDMA 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1813:22:HAL_ETH_GetState 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:1838:13:ETH_MACDMAConfig 200 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2101:13:ETH_MACAddressConfig 32 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2125:13:ETH_MACTransmissionEnable 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2145:13:ETH_MACTransmissionDisable 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2165:13:ETH_MACReceptionEnable 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2185:13:ETH_MACReceptionDisable 24 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2205:13:ETH_DMATransmissionEnable 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2217:13:ETH_DMATransmissionDisable 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2229:13:ETH_DMAReceptionEnable 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2241:13:ETH_DMAReceptionDisable 16 static
../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c:2253:13:ETH_FlushTransmitFIFO 24 static

5
Debug/Drivers/STM32F7xx_HAL_Driver/Src/subdir.mk

File diff suppressed because one or more lines are too long

1
Debug/objects.list

@ -46,7 +46,6 @@
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dsi.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.o"
"./Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.o"

83938
Debug/stm32f746g-disco.hex

File diff suppressed because it is too large Load Diff

4
Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.c

@ -293,7 +293,7 @@ void BSP_LCD_LayerDefaultInit(uint16_t LayerIndex, uint32_t FB_Address)
layer_cfg.WindowX1 = BSP_LCD_GetXSize();
layer_cfg.WindowY0 = 0;
layer_cfg.WindowY1 = BSP_LCD_GetYSize();
layer_cfg.PixelFormat = LTDC_PIXEL_FORMAT_ARGB8888;
layer_cfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
layer_cfg.FBStartAdress = FB_Address;
layer_cfg.Alpha = 255;
layer_cfg.Alpha0 = 0;
@ -1425,7 +1425,7 @@ __weak void BSP_LCD_ClockConfig(LTDC_HandleTypeDef *hltdc, void *Params)
periph_clk_init_struct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
periph_clk_init_struct.PLLSAI.PLLSAIN = 192;
periph_clk_init_struct.PLLSAI.PLLSAIR = RK043FN48H_FREQUENCY_DIVIDER;
periph_clk_init_struct.PLLSAIDivR = RCC_PLLSAIDIVR_4;
periph_clk_init_struct.PLLSAIDivR = RCC_PLLSAIDIVR_8;
HAL_RCCEx_PeriphCLKConfig(&periph_clk_init_struct);
}

2217
Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_eth.h

File diff suppressed because it is too large Load Diff

2291
Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c

File diff suppressed because it is too large Load Diff

118
Src/eez-flow-template-stm32f746g-disco.eez-project

@ -361,7 +361,7 @@
"left": 0,
"top": 0,
"width": 350,
"height": 480,
"height": 272,
"customInputs": [],
"customOutputs": [],
"data": "keypad_text",
@ -375,10 +375,10 @@
{
"objID": "e374964a-8dac-46c1-d763-eef26b271289",
"type": "Text",
"left": 350,
"top": 5,
"width": 108,
"height": 115,
"left": 274,
"top": 0,
"width": 56,
"height": 54,
"customInputs": [],
"customOutputs": [],
"data": "\"1\"",
@ -392,10 +392,10 @@
{
"objID": "e4b91b93-db34-4f2f-dfea-ea9d98ef1dd4",
"type": "Text",
"left": 462,
"top": 5,
"width": 108,
"height": 115,
"left": 330,
"top": 0,
"width": 51,
"height": 54,
"customInputs": [],
"customOutputs": [],
"data": "\"2\"",
@ -409,10 +409,10 @@
{
"objID": "2d460edd-f4d1-4960-fbff-6fdae001c110",
"type": "Text",
"left": 573,
"top": 5,
"width": 108,
"height": 115,
"left": 380,
"top": 0,
"width": 53,
"height": 54,
"customInputs": [],
"customOutputs": [],
"data": "\"3\"",
@ -426,10 +426,10 @@
{
"objID": "b436b6d8-01ba-476a-9cec-731b15fec5a5",
"type": "Text",
"left": 350,
"top": 124,
"width": 108,
"height": 115,
"left": 274,
"top": 54,
"width": 56,
"height": 51,
"customInputs": [],
"customOutputs": [],
"data": "\"4\"",
@ -443,10 +443,10 @@
{
"objID": "dd0e99f9-a269-4abc-b727-a685d4801c49",
"type": "Text",
"left": 462,
"top": 124,
"width": 108,
"height": 115,
"left": 330,
"top": 54,
"width": 51,
"height": 51,
"customInputs": [],
"customOutputs": [],
"data": "\"5\"",
@ -460,10 +460,10 @@
{
"objID": "0631f0ec-5112-4166-e00f-74533d31ab49",
"type": "Text",
"left": 573,
"top": 124,
"width": 108,
"height": 115,
"left": 380,
"top": 54,
"width": 53,
"height": 51,
"customInputs": [],
"customOutputs": [],
"data": "\"6\"",
@ -477,10 +477,10 @@
{
"objID": "ac774321-cb76-4660-989c-e13806374f6e",
"type": "Text",
"left": 350,
"top": 242,
"width": 108,
"height": 115,
"left": 272,
"top": 105,
"width": 58,
"height": 56,
"customInputs": [],
"customOutputs": [],
"data": "\"7\"",
@ -494,10 +494,10 @@
{
"objID": "5a5086da-50d0-4794-e03e-d1476892fc5a",
"type": "Text",
"left": 462,
"top": 242,
"width": 108,
"height": 115,
"left": 330,
"top": 105,
"width": 51,
"height": 56,
"customInputs": [],
"customOutputs": [],
"data": "\"8\"",
@ -511,10 +511,10 @@
{
"objID": "1ee52ded-910a-4844-f4bd-a4795124bdea",
"type": "Text",
"left": 573,
"top": 242,
"width": 108,
"height": 115,
"left": 380,
"top": 105,
"width": 53,
"height": 56,
"customInputs": [],
"customOutputs": [],
"data": "\"9\"",
@ -528,10 +528,10 @@
{
"objID": "869a4233-3a77-415c-afd0-e799d95dd70a",
"type": "Text",
"left": 350,
"top": 360,
"width": 220,
"height": 115,
"left": 272,
"top": 161,
"width": 161,
"height": 59,
"customInputs": [],
"customOutputs": [],
"data": "\"0\"",
@ -545,10 +545,10 @@
{
"objID": "abd73c1b-0256-47ad-a13d-954fe9dcb095",
"type": "Button",
"left": 573,
"top": 360,
"width": 108,
"height": 115,
"left": 366,
"top": 220,
"width": 67,
"height": 52,
"customInputs": [],
"customOutputs": [],
"data": "\".\"",
@ -567,10 +567,10 @@
{
"objID": "248ed0f2-6508-4fa1-d0e8-e9a4246d6695",
"type": "Text",
"left": 685,
"top": 5,
"width": 108,
"height": 115,
"left": 433,
"top": 0,
"width": 47,
"height": 54,
"customInputs": [],
"customOutputs": [],
"data": "\"\\u0020\"",
@ -584,10 +584,10 @@
{
"objID": "801ca594-78e7-4648-a8d9-ae84c729cdb7",
"type": "Text",
"left": 685,
"top": 124,
"width": 108,
"height": 115,
"left": 433,
"top": 54,
"width": 47,
"height": 51,
"customInputs": [],
"customOutputs": [],
"data": "\"\\u0022\"",
@ -601,10 +601,10 @@
{
"objID": "ade7f838-a0d6-41a1-fa8c-3099e9cdfa37",
"type": "Text",
"left": 685,
"top": 242,
"width": 108,
"height": 233,
"left": 433,
"top": 105,
"width": 47,
"height": 167,
"customInputs": [],
"customOutputs": [],
"data": "\"\\u0021\"",
@ -621,8 +621,8 @@
"name": "numeric_keypad",
"left": 0,
"top": 0,
"width": 800,
"height": 480,
"width": 480,
"height": 272,
"scaleToFit": false
},
{

15842
Src/gui/document.cpp

File diff suppressed because it is too large Load Diff

4
Src/gui/document.h

@ -178,7 +178,7 @@ enum PagesEnum {
PAGE_ID_KEYBOARD = 3
};
extern const uint8_t assets[60895];
extern const uint8_t assets[61117];
#elif defined(EEZ_PLATFORM_SIMULATOR)
@ -358,7 +358,7 @@ enum PagesEnum {
PAGE_ID_FRONT_PANEL = 4
};
extern const uint8_t assets[77315];
extern const uint8_t assets[77537];
#endif

2
Src/lcd.cpp

@ -40,8 +40,6 @@ void LCD_init() {
OnError_Handler(lcd_status != LCD_OK);
BSP_LCD_LayerDefaultInit(0, (uint32_t)eez::VRAM_BUFFER1_START_ADDRESS);
BSP_LCD_SelectLayer(0);
//
// Code currently brakes here
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_TS_Init(DISPLAY_WIDTH, DISPLAY_HEIGHT);

76
stm32f746g-disco.ioc

@ -1,6 +1,4 @@
#MicroXplorer Configuration settings - do not modify
ETH.IPParameters=MediaInterface
ETH.MediaInterface=HAL_ETH_RMII_MODE
FATFS.BSP.number=1
FATFS0.BSP.STBoard=false
FATFS0.BSP.api=Unknown
@ -36,10 +34,6 @@ FREERTOS.configUSE_NEWLIB_REENTRANT=1
FREERTOS.configUSE_RECURSIVE_MUTEXES=1
File.Version=6
GPIO.groupedBy=Group By Peripherals
I2C1.IPParameters=Timing
I2C1.Timing=0x00C0EAFF
I2C2.IPParameters=Timing
I2C2.Timing=0x00C0EAFF
I2C3.IPParameters=Timing
I2C3.Timing=0x00C0EAFF
KeepUserPlacement=false
@ -64,26 +58,24 @@ Mcu.CPN=STM32F746NGH6
Mcu.Family=STM32F7
Mcu.IP0=CORTEX_M7
Mcu.IP1=CRC
Mcu.IP10=LTDC
Mcu.IP11=NVIC
Mcu.IP12=QUADSPI
Mcu.IP13=RCC
Mcu.IP14=SDMMC1
Mcu.IP15=SYS
Mcu.IP16=TIM1
Mcu.IP17=USART3
Mcu.IP18=USART6
Mcu.IP19=USB_DEVICE
Mcu.IP10=RCC
Mcu.IP11=SDMMC1
Mcu.IP12=SYS
Mcu.IP13=TIM1
Mcu.IP14=TIM3
Mcu.IP15=USART3
Mcu.IP16=USART6
Mcu.IP17=USB_DEVICE
Mcu.IP18=USB_OTG_FS
Mcu.IP2=DMA2D
Mcu.IP20=USB_OTG_FS
Mcu.IP3=ETH
Mcu.IP4=FATFS
Mcu.IP5=FMC
Mcu.IP6=FREERTOS
Mcu.IP7=I2C1
Mcu.IP8=I2C2
Mcu.IP9=I2C3
Mcu.IPNb=21
Mcu.IP3=FATFS
Mcu.IP4=FMC
Mcu.IP5=FREERTOS
Mcu.IP6=I2C3
Mcu.IP7=LTDC
Mcu.IP8=NVIC
Mcu.IP9=QUADSPI
Mcu.IPNb=19
Mcu.Name=STM32F746NGHx
Mcu.Package=TFBGA216
Mcu.Pin0=PE4
@ -138,7 +130,9 @@ Mcu.Pin141=VP_FATFS_VS_SDIO
Mcu.Pin142=VP_FREERTOS_VS_CMSIS_V2
Mcu.Pin143=VP_SYS_VS_tim6
Mcu.Pin144=VP_TIM1_VS_ClockSourceINT
Mcu.Pin145=VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS
Mcu.Pin145=VP_TIM3_VS_ControllerModeReset
Mcu.Pin146=VP_TIM3_VS_ClockSourceITR
Mcu.Pin147=VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS
Mcu.Pin15=PB6
Mcu.Pin16=PG15
Mcu.Pin17=PG11
@ -232,7 +226,7 @@ Mcu.Pin96=PB2
Mcu.Pin97=PF12
Mcu.Pin98=PG1
Mcu.Pin99=PF15
Mcu.PinsNb=146
Mcu.PinsNb=148
Mcu.ThirdPartyNb=0
Mcu.UserConstants=
Mcu.UserName=STM32F746NGHx
@ -243,6 +237,7 @@ NVIC.DMA2D_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false
NVIC.ForceEnableDMAVector=true
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false
NVIC.I2C3_EV_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true
NVIC.LTDC_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false
@ -254,6 +249,7 @@ NVIC.SavedPendsvIrqHandlerGenerated=true
NVIC.SavedSvcallIrqHandlerGenerated=true
NVIC.SavedSystickIrqHandlerGenerated=true
NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:false\:true\:false\:true\:false
NVIC.TIM3_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true
NVIC.TIM6_DAC_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:true\:true
NVIC.TimeBase=TIM6_DAC_IRQn
NVIC.TimeBaseIP=TIM6
@ -267,7 +263,6 @@ PA0/WKUP.Signal=ADCx_IN0
PA1.GPIOParameters=GPIO_Label
PA1.GPIO_Label=RMII_REF_CLK [LAN8742A-CZ-TR_REFCLK0]
PA1.Locked=true
PA1.Mode=RMII
PA1.Signal=ETH_REF_CLK
PA11.GPIOParameters=GPIO_Label
PA11.GPIO_Label=OTG_FS_N
@ -299,12 +294,10 @@ PA15.Signal=S_TIM2_CH1_ETR
PA2.GPIOParameters=GPIO_Label
PA2.GPIO_Label=RMII_MDIO [LAN8742A-CZ-TR_MDIO]
PA2.Locked=true
PA2.Mode=RMII
PA2.Signal=ETH_MDIO
PA7.GPIOParameters=GPIO_Label
PA7.GPIO_Label=RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
PA7.Locked=true
PA7.Mode=RMII
PA7.Signal=ETH_CRS_DV
PA8.GPIOParameters=GPIO_ModeDefaultPP,GPIO_Speed,GPIO_PuPd,GPIO_Label
PA8.GPIO_Label=ARDUINO PWM/D10
@ -362,7 +355,6 @@ PB8.GPIO_Pu=GPIO_PULLUP
PB8.GPIO_PuPd=GPIO_NOPULL
PB8.GPIO_Speed=GPIO_SPEED_FREQ_LOW
PB8.Locked=true
PB8.Mode=I2C
PB8.Signal=I2C1_SCL
PB9.GPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label,GPIO_Pu,GPIO_Mode
PB9.GPIO_Label=ARDUINO SDA/D14
@ -371,14 +363,12 @@ PB9.GPIO_Pu=GPIO_PULLUP
PB9.GPIO_PuPd=GPIO_NOPULL
PB9.GPIO_Speed=GPIO_SPEED_FREQ_LOW
PB9.Locked=true
PB9.Mode=I2C
PB9.Signal=I2C1_SDA
PC0.Locked=true
PC0.Signal=FMC_SDNWE
PC1.GPIOParameters=GPIO_Label
PC1.GPIO_Label=RMII_MDC [LAN8742A-CZ-TR_MDC]
PC1.Locked=true
PC1.Mode=RMII
PC1.Signal=ETH_MDC
PC10.GPIOParameters=GPIO_Label
PC10.GPIO_Label=SDMMC_D2
@ -418,12 +408,10 @@ PC3.Signal=FMC_SDCKE0
PC4.GPIOParameters=GPIO_Label
PC4.GPIO_Label=RMII_RXD0 [LAN8742A-CZ-TR_RXD0]
PC4.Locked=true
PC4.Mode=RMII
PC4.Signal=ETH_RXD0
PC5.GPIOParameters=GPIO_Label
PC5.GPIO_Label=RMII_RXD1 [LAN8742A-CZ-TR_RXD1]
PC5.Locked=true
PC5.Mode=RMII
PC5.Signal=ETH_RXD1
PC6.GPIOParameters=GPIO_Label
PC6.GPIO_Label=ARDUINO TX/D1
@ -646,7 +634,6 @@ PG1.Signal=FMC_A11
PG11.GPIOParameters=GPIO_Label
PG11.GPIO_Label=RMII_TX_EN [LAN8742A-CZ-TR_TXEN]
PG11.Locked=true
PG11.Mode=RMII
PG11.Signal=ETH_TX_EN
PG12.GPIOParameters=GPIO_Label
PG12.GPIO_Label=LCD_B4 [RK043FN48H-CT672B_B4]
@ -656,12 +643,10 @@ PG12.Signal=LTDC_B4
PG13.GPIOParameters=GPIO_Label
PG13.GPIO_Label=RMII_TXD0 [LAN8742A-CZ-TR_TXD0]
PG13.Locked=true
PG13.Mode=RMII
PG13.Signal=ETH_TXD0
PG14.GPIOParameters=GPIO_Label
PG14.GPIO_Label=RMII_TXD1 [LAN8742A-CZ-TR_TXD1]
PG14.Locked=true
PG14.Mode=RMII
PG14.Signal=ETH_TXD1
PG15.GPIOParameters=GPIO_Label
PG15.GPIO_Label=FMC_SDNCAS [MT48LC4M32B2B5-6A_CAS]
@ -721,17 +706,19 @@ PH3.Locked=true
PH3.Mode=SdramChipSelect1_1
PH3.Signal=FMC_SDNE0
PH4.Locked=true
PH4.Mode=I2C
PH4.Signal=I2C2_SCL
PH5.Locked=true
PH5.Mode=I2C
PH5.Signal=I2C2_SDA
PH6.GPIOParameters=GPIO_Label
PH6.GPIO_Label=ARDUINO PWM/D6
PH6.Locked=true
PH6.Signal=S_TIM12_CH1
PH7.GPIOParameters=GPIO_Label
PH7.GPIO_Label=LCD_SCL_Pin
PH7.Mode=I2C
PH7.Signal=I2C3_SCL
PH8.GPIOParameters=GPIO_Label
PH8.GPIO_Label=LCD_SDA_Pin
PH8.Mode=I2C
PH8.Signal=I2C3_SDA
PI0.GPIOParameters=GPIO_ModeDefaultPP,GPIO_Speed,GPIO_PuPd,GPIO_Label
@ -935,7 +922,7 @@ ProjectManager.StackSize=0x400
ProjectManager.TargetToolchain=STM32CubeIDE
ProjectManager.ToolChainLocation=
ProjectManager.UnderRoot=true
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_CRC_Init-CRC-false-HAL-true,4-MX_DMA2D_Init-DMA2D-false-HAL-true,5-MX_FMC_Init-FMC-false-HAL-true,6-MX_I2C1_Init-I2C1-false-HAL-true,7-MX_LTDC_Init-LTDC-false-HAL-true,8-MX_QUADSPI_Init-QUADSPI-false-HAL-true,9-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,10-MX_TIM1_Init-TIM1-false-HAL-true,11-MX_FATFS_Init-FATFS-false-HAL-false,12-MX_USB_DEVICE_Init-USB_DEVICE-false-HAL-false,13-MX_ETH_Init-ETH-false-HAL-true,14-MX_I2C2_Init-I2C2-false-HAL-true,15-MX_I2C3_Init-I2C3-false-HAL-true,16-MX_USART3_UART_Init-USART3-false-HAL-true,17-MX_USART6_UART_Init-USART6-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_CRC_Init-CRC-false-HAL-true,4-MX_DMA2D_Init-DMA2D-false-HAL-true,5-MX_FMC_Init-FMC-false-HAL-true,6-MX_I2C1_Init-I2C1-false-HAL-true,6-MX_LTDC_Init-LTDC-false-HAL-true,7-MX_QUADSPI_Init-QUADSPI-false-HAL-true,8-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,9-MX_TIM1_Init-TIM1-false-HAL-true,10-MX_FATFS_Init-FATFS-false-HAL-false,11-MX_USB_DEVICE_Init-USB_DEVICE-false-HAL-false,13-MX_I2C2_Init-I2C2-false-HAL-true,12-MX_I2C3_Init-I2C3-false-HAL-true,13-MX_USART3_UART_Init-USART3-false-HAL-true,14-MX_USART6_UART_Init-USART6-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
QUADSPI.ChipSelectHighTime=QSPI_CS_HIGH_TIME_5_CYCLE
QUADSPI.ClockPrescaler=1
QUADSPI.FifoThreshold=4
@ -1098,6 +1085,9 @@ SH.S_TIM3_CH1.0=TIM3_CH1
SH.S_TIM3_CH1.ConfNb=1
SH.S_TIM5_CH4.0=TIM5_CH4
SH.S_TIM5_CH4.ConfNb=1
TIM3.IPParameters=Prescaler,Period
TIM3.Period=499
TIM3.Prescaler=8999
USART3.IPParameters=VirtualMode-Asynchronous
USART3.VirtualMode-Asynchronous=VM_ASYNC
USART6.IPParameters=VirtualMode-Asynchronous
@ -1120,6 +1110,10 @@ VP_SYS_VS_tim6.Mode=TIM6
VP_SYS_VS_tim6.Signal=SYS_VS_tim6
VP_TIM1_VS_ClockSourceINT.Mode=Internal
VP_TIM1_VS_ClockSourceINT.Signal=TIM1_VS_ClockSourceINT
VP_TIM3_VS_ClockSourceITR.Mode=TriggerSource_ITR0
VP_TIM3_VS_ClockSourceITR.Signal=TIM3_VS_ClockSourceITR
VP_TIM3_VS_ControllerModeReset.Mode=Reset Mode
VP_TIM3_VS_ControllerModeReset.Signal=TIM3_VS_ControllerModeReset
VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS.Mode=CDC_FS
VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS.Signal=USB_DEVICE_VS_USB_DEVICE_CDC_FS
board=STM32F746G-DISCO

Loading…
Cancel
Save