Skip to content

Commit a9dc9c6

Browse files
committed
sdio patch squashed
1 parent b03b88f commit a9dc9c6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/port/cybsp_wifi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "whd_config.h"
2929
#include "whd_wifi_api.h"
3030
#include "cyhal_sdio.h"
31+
#include "cyhal_gpio.h"
3132

3233
#if defined(__cplusplus)
3334
extern "C" {

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/port/cyhal_hw_types.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ typedef struct
8383
/** Clock object */
8484
typedef struct
8585
{
86-
/* TODO: replace with port specific items */
87-
void *empty;
86+
//For backwards compatibility with cyhal_clock_divider_t only. Do not use going forward.
87+
int div_type; /*!< Deprecated */
88+
uint8_t div_num; /*!< Deprecated */
89+
//End BWC items
90+
int block;
91+
uint8_t channel;
92+
bool reserved;
8893
} cyhal_clock_t;
8994

9095
/** SDIO object */
@@ -109,7 +114,7 @@ typedef struct
109114
#define PRINTF(...)
110115
#endif
111116

112-
//#include "whd_config.h"
117+
#include "whd_config.h"
113118

114119
#if defined(__cplusplus)
115120
}

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/whd_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifndef __WHD_CONFIG__
2323
#define __WHD_CONFIG__
2424

25-
#include "cyhal_gpio.h"
25+
//#include "cyhal_gpio.h"
2626
#include "whd_types.h"
2727
#include "stm32h7xx_hal.h"
2828
#include <stdint.h>

0 commit comments

Comments
 (0)