Skip to content

Commit 8ff6231

Browse files
STM32F7: add missing casts
1 parent 5003bac commit 8ff6231

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

connectivity/drivers/emac/TARGET_STM/stm32xx_emac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ bool STM32_EMAC::low_level_init_successful()
306306
tr_info("PHY ID %#X", PHY_ID);
307307

308308
/* Initialize Tx Descriptors list: Chain Mode */
309-
if (HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB) != HAL_OK) {
309+
if (HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, reinterpret_cast<uint8_t *>(&Tx_Buff[0][0]), ETH_TXBUFNB) != HAL_OK) {
310310
tr_error("HAL_ETH_DMATxDescListInit issue");
311311
return false;
312312
}
313313

314314
/* Initialize Rx Descriptors list: Chain Mode */
315-
if (HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, Rx_Buff[0].data(), ETH_RXBUFNB) != HAL_OK) {
315+
if (HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, reinterpret_cast<uint8_t *>(Rx_Buff[0].data()), ETH_RXBUFNB) != HAL_OK) {
316316
tr_error("HAL_ETH_DMARxDescListInit issue");
317317
return false;
318318
}

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/device/cmsis_nvic.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,4 @@ extern uint32_t __VECTOR_RAM[];
4242
#define NVIC_NUM_VECTORS (16 + 160) // CORE + MCU Peripherals
4343
#define NVIC_RAM_VECTOR_ADDRESS (__VECTOR_RAM) // Vectors positioned at start of RAM
4444

45-
#ifdef MIMXRT105X_BOARD_HAS_EXTERNAL_RAM
46-
#define MBED_RAM_SIZE MIMXRT105X_EXTERNAL_RAM_SIZE
47-
#else
48-
#define MBED_RAM_SIZE 0x00040000
49-
#endif
50-
5145
#endif

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/PinNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ typedef enum {
5454
#define LED3 P6_15
5555
#define LED4 P6_12
5656

57+
LED_RED = LED1,
58+
LED_GREEN= LED2,
59+
LED_BLUE = LED3,
60+
LED_USER = LED4,
5761
#define BUTTON0 P6_0
5862

5963
CONSOLE_TX = P6_3,

0 commit comments

Comments
 (0)