Skip to content

Commit 3d128e8

Browse files
committed
- Fix the CI build issue.
- Incorporate the review comment.
1 parent cbb15ad commit 3d128e8

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ void fpga_pwm_period_fill_test(PinName pin, uint32_t period_ms, uint32_t fill_pr
127127
break;
128128
}
129129

130+
// wait_us is safe to call as this test disable the IRQs on execution.
130131
wait_us(PERIOD_US(period_ms));
131132

132133
tester.io_metrics_start();

targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/device/drivers/smsc9220_eth_drv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ uint32_t smsc9220_get_tx_data_fifo_size(
859859

860860
enum smsc9220_error_t smsc9220_init(
861861
const struct smsc9220_eth_dev_t* dev,
862-
void(* wait_ms_function)(int))
862+
void(* wait_ms_function)(uint32_t))
863863
{
864864
uint32_t phyreset = 0;
865865
enum smsc9220_error_t error = SMSC9220_ERROR_NONE;

targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/device/drivers/smsc9220_eth_drv.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct smsc9220_eth_dev_cfg_t {
3838
struct smsc9220_eth_dev_data_t {
3939
uint32_t state; /*!< Indicates if the SMSC9220 driver
4040
is initialized and enabled */
41-
void (*wait_ms) (int);/*!< function pointer to system's millisec delay
41+
void (*wait_ms) (uint32_t);/*!< function pointer to system's millisec delay
4242
function, will be used for delays */
4343
uint32_t ongoing_packet_length;/*!< size in bytes of the packet
4444
is being sent */
@@ -195,7 +195,7 @@ enum smsc9220_fifo_level_irq_pos_t{
195195
* \return error code /ref smsc9220_error_t
196196
*/
197197
enum smsc9220_error_t smsc9220_init(const struct smsc9220_eth_dev_t* dev,
198-
void(* wait_ms_function)(int));
198+
void(* wait_ms_function)(uint32_t));
199199

200200
/**
201201
* \brief Reads the MAC register.

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/trng_api_esp32.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#if DEVICE_TRNG
1818
#include "drivers/I2C.h"
1919
#include "platform/mbed_wait_api.h"
20+
#include "rtos/ThisThread.h"
2021

2122
#define ESP32_I2C_ADDR (0x28<<1)
2223
#define RETRY_CNT_MAX (20)
@@ -47,7 +48,9 @@ extern "C" void trng_init_esp32(void)
4748
GPIOPM3 &= ~0x4000; /* Output mode */
4849

4950
GPIOP3 |= 0x4000; /* Outputs hi level */
50-
ThisThread::sleep_for(5);
51+
52+
rtos::ThisThread::sleep_for(5);
53+
5154
GPIOP5 |= 0x0008; /* Outputs hi level */
5255
}
5356
}
@@ -84,7 +87,7 @@ extern "C" int trng_get_bytes_esp32(uint8_t *output, size_t length, size_t *outp
8487
}
8588
if (ret != 0) {
8689
retry_cnt++;
87-
ThisThread::sleep_for(100);
90+
rtos::ThisThread::sleep_for(100);
8891
}
8992
}
9093
if (retry_cnt >= RETRY_CNT_MAX) {

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_MTS_DRAGONFLY_F413RH/ONBOARD_TELIT_HE910.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ nsapi_error_t ONBOARD_TELIT_HE910::soft_power_on()
4949
/* keep the power line low for 200 milisecond */
5050
press_power_button(200);
5151
/* give modem a little time to respond */
52-
ThisThread::sleep_for(100);
52+
rtos::ThisThread::sleep_for(100);
5353
// From Telit_xE910 Global form factor App note: It is mandatory to avoid sending data to the serial ports during the first 200ms of the module start-up.
5454
rtos::ThisThread::sleep_for(200);
5555
return NSAPI_ERROR_OK;
@@ -64,7 +64,7 @@ nsapi_error_t ONBOARD_TELIT_HE910::soft_power_off()
6464
* If 3G_ON_OFF pin is kept low for more than a second, a controlled disconnect and shutdown takes
6565
* place, Due to the network disconnect, shut-off can take up to 30 seconds. However, we wait for 10
6666
* seconds only */
67-
ThisThread::sleep_for(10 * 1000);
67+
rtos::ThisThread::sleep_for(10 * 1000);
6868
return NSAPI_ERROR_OK;
6969
}
7070

@@ -74,7 +74,7 @@ void ONBOARD_TELIT_HE910::press_power_button(int time_ms)
7474

7575
gpio_init_out_ex(&gpio, MDMPWRON, 1);
7676
gpio_write(&gpio, 0);
77-
ThisThread::sleep_for(time_ms);
77+
rtos::ThisThread::sleep_for(time_ms);
7878
gpio_write(&gpio, 1);
7979
}
8080

0 commit comments

Comments
 (0)