diff --git a/targets/TARGET_STM/ospi_api.c b/targets/TARGET_STM/ospi_api.c index 36d4f2a875..25d762be40 100644 --- a/targets/TARGET_STM/ospi_api.c +++ b/targets/TARGET_STM/ospi_api.c @@ -237,7 +237,7 @@ ospi_status_t ospi_init_direct(ospi_t *obj, const ospi_pinmap_t *pinmap, uint32_ static ospi_status_t _ospi_init_direct(ospi_t *obj, const ospi_pinmap_t *pinmap, uint32_t hz, uint8_t mode) #endif { - tr_info("ospi_init mode %u", mode); + tr_debug("ospi_init mode %u", mode); // Reset handle internal state obj->handle.State = HAL_OSPI_STATE_RESET; @@ -412,7 +412,7 @@ ospi_status_t ospi_init(ospi_t *obj, PinName io0, PinName io1, PinName io2, PinN ospi_status_t ospi_free(ospi_t *obj) { - tr_info("ospi_free"); + tr_debug("ospi_free"); if (HAL_OSPI_DeInit(&obj->handle) != HAL_OK) { return OSPI_STATUS_ERROR; } @@ -450,7 +450,7 @@ ospi_status_t ospi_free(ospi_t *obj) ospi_status_t ospi_frequency(ospi_t *obj, int hz) { - tr_info("ospi_frequency hz %d", hz); + tr_debug("ospi_frequency hz %d", hz); ospi_status_t status = OSPI_STATUS_OK; /* HCLK drives OSPI. OSPI clock depends on prescaler value: @@ -532,7 +532,7 @@ ospi_status_t ospi_read(ospi_t *obj, const ospi_command_t *command, void *data, ospi_status_t ospi_command_transfer(ospi_t *obj, const ospi_command_t *command, const void *tx_data, size_t tx_size, void *rx_data, size_t rx_size) { - tr_info("ospi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); + tr_debug("ospi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); ospi_status_t status = OSPI_STATUS_OK; if ((tx_data == NULL || tx_size == 0) && (rx_data == NULL || rx_size == 0)) { diff --git a/targets/TARGET_STM/qspi_api.c b/targets/TARGET_STM/qspi_api.c index 93b4d40806..911262c122 100644 --- a/targets/TARGET_STM/qspi_api.c +++ b/targets/TARGET_STM/qspi_api.c @@ -387,7 +387,7 @@ qspi_status_t qspi_init_direct(qspi_t *obj, const qspi_pinmap_t *pinmap, uint32_ static qspi_status_t _qspi_init_direct(qspi_t *obj, const qspi_pinmap_t *pinmap, uint32_t hz, uint8_t mode) #endif { - tr_info("qspi_init mode %u", mode); + tr_debug("qspi_init mode %u", mode); // Reset handle internal state obj->handle.State = HAL_OSPI_STATE_RESET; @@ -535,7 +535,7 @@ qspi_status_t qspi_init_direct(qspi_t *obj, const qspi_pinmap_t *pinmap, uint32_ static qspi_status_t _qspi_init_direct(qspi_t *obj, const qspi_pinmap_t *pinmap, uint32_t hz, uint8_t mode) #endif { - tr_info("qspi_init mode %u", mode); + tr_debug("qspi_init mode %u", mode); // Enable interface clock for QSPI __HAL_RCC_QSPI_CLK_ENABLE(); @@ -632,7 +632,7 @@ qspi_status_t qspi_init(qspi_t *obj, PinName io0, PinName io1, PinName io2, PinN #if defined(OCTOSPI1) qspi_status_t qspi_free(qspi_t *obj) { - tr_info("qspi_free"); + tr_debug("qspi_free"); if (HAL_OSPI_DeInit(&obj->handle) != HAL_OK) { return QSPI_STATUS_ERROR; } @@ -664,7 +664,7 @@ qspi_status_t qspi_free(qspi_t *obj) #else /* OCTOSPI */ qspi_status_t qspi_free(qspi_t *obj) { - tr_info("qspi_free"); + tr_debug("qspi_free"); if (HAL_QSPI_DeInit(&obj->handle) != HAL_OK) { return QSPI_STATUS_ERROR; @@ -701,7 +701,7 @@ qspi_status_t qspi_free(qspi_t *obj) #if defined(OCTOSPI1) qspi_status_t qspi_frequency(qspi_t *obj, int hz) { - tr_info("qspi_frequency hz %d", hz); + tr_debug("qspi_frequency hz %d", hz); qspi_status_t status = QSPI_STATUS_OK; /* HCLK drives QSPI. QSPI clock depends on prescaler value: @@ -728,7 +728,7 @@ qspi_status_t qspi_frequency(qspi_t *obj, int hz) #else /* OCTOSPI */ qspi_status_t qspi_frequency(qspi_t *obj, int hz) { - tr_info("qspi_frequency hz %d", hz); + tr_debug("qspi_frequency hz %d", hz); qspi_status_t status = QSPI_STATUS_OK; /* HCLK drives QSPI. QSPI clock depends on prescaler value: @@ -863,7 +863,7 @@ qspi_status_t qspi_read(qspi_t *obj, const qspi_command_t *command, void *data, #if defined(OCTOSPI1) qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, const void *tx_data, size_t tx_size, void *rx_data, size_t rx_size) { - tr_info("qspi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); + tr_debug("qspi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); qspi_status_t status = QSPI_STATUS_OK; @@ -903,7 +903,7 @@ qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, #else /* OCTOSPI */ qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, const void *tx_data, size_t tx_size, void *rx_data, size_t rx_size) { - tr_info("qspi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); + tr_debug("qspi_command_transfer tx %u rx %u command %#04x", tx_size, rx_size, command->instruction.value); qspi_status_t status = QSPI_STATUS_OK; if ((tx_data == NULL || tx_size == 0) && (rx_data == NULL || rx_size == 0)) {