Regeneration CubeMX (Appli) preparant le driver ST67W611M1 et la carte SD : - SPI4 (PE12/13/14, CS PF8) + DMA GPDMA1 canaux 4/5, SPI_RDY (PD12/EXTI12), CHIP_EN (PD13) et BOOT (PD15) pour la X-NUCLEO-67W61M1 sur l'Arduino - SDMMC1 + FatFs (appels d'init non generes dans main, IRQ SDMMC1 prio 14), PM14 en open-drain ; I2S6_CK sur PA5 pour liberer PC12 (SDMMC1_CK) - HAL UART retire ; USE_BSP_COM_FEATURE=0 - Audio preserve : ADF 4/16/24, prio IRQ 2, DMA canal 0 en priorite haute, GPDMA1_Channel2_IRQHandler deplace dans audio_irq.c (hors fichiers generes), BSP_MX_I2S6_Init (renommage dans le BSP pour eviter le conflit avec CubeMX) - Middlewares/ST/ST67W6X_Network_Driver, FatFs et sources HAL SPI/SD ajoutes (driver ST67 pas encore integre au build) Build et debug sous Linux : - gcc/toolchain-env.sh, gdbserver.sh, arm-gdb.sh : outils de STM32CubeIDE par glob ; flash.sh les retrouve ; ruby_compat.rb pour Ruby >= 3.2 (TouchGFX) - makefile_appli : sources SD/SPI/FatFs/audio_irq ; chmod +x des .out TouchGFX - Objets de build (*.o, *.d, *.su) retires de l'index (deja dans .gitignore) - AGENTS.md : toolchain Linux, configs VS Code (cppdbg et ST stlinkgdbtarget), pieges de l'extension ST (.settings/ide.store.json, preRunCommands reset) Verifie sur carte : audio OK, debug Appli/Boot OK. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
76 lines
2.4 KiB
C
76 lines
2.4 KiB
C
/* USER CODE BEGIN Header */
|
|
/**
|
|
******************************************************************************
|
|
* @file w61_driver_config.h
|
|
* @author ST67 Application Team
|
|
* @brief Header file for the W61 configuration module
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2026 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 W61_DRIVER_CONFIG_H
|
|
#define W61_DRIVER_CONFIG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
/* USER CODE BEGIN Includes */
|
|
|
|
/* USER CODE END Includes */
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/** ============================
|
|
* AT Wi-Fi
|
|
* All available configuration defines in
|
|
* Middlewares\ST\ST67W6X_Network_Driver\Driver\W61_at\w61_default_config.h
|
|
* ============================
|
|
*/
|
|
|
|
/** Maximum number of detected AP during the scan. Cannot be greater than 50 */
|
|
#define W61_WIFI_MAX_DETECTED_AP 20U
|
|
|
|
/** Enable/Disable Wi-Fi module logging */
|
|
#define WIFI_LOG_ENABLE 1
|
|
|
|
/** ============================
|
|
* AT Common
|
|
* All available configuration defines in
|
|
* Middlewares\ST\ST67W6X_Network_Driver\Driver\W61_at\w61_at_common.h
|
|
* ============================
|
|
*/
|
|
/** Maximum SPI buffer size */
|
|
#define W61_MAX_SPI_XFER 1520U
|
|
|
|
/** Enable/Disable System module logging */
|
|
#define SYS_LOG_ENABLE 1
|
|
|
|
/** Debugging only: Enable/Disable AT log, i.e. logs the AT commands incoming/outcoming from/to the NCP */
|
|
#define W61_AT_LOG_ENABLE 0
|
|
#include "logging.h"
|
|
|
|
/** Enable/Disable Modem command log */
|
|
#define MDM_CMD_LOG_ENABLE 0
|
|
|
|
/* USER CODE BEGIN EC */
|
|
|
|
/* USER CODE END EC */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* W61_DRIVER_CONFIG_H */
|