mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 02:13:19 +00:00
arch/xtensa/src/esp32/esp32_wifi_adapter.c: Fix a type mismatch
This commit is contained in:
parent
dbb81dfd5d
commit
95a3db7629
1 changed files with 16 additions and 1 deletions
|
|
@ -259,6 +259,7 @@ static void esp_coex_condition_set(uint32_t type, bool dissatisfy);
|
|||
static int32_t esp_coex_wifi_request(uint32_t event, uint32_t latency,
|
||||
uint32_t duration);
|
||||
static int32_t esp_coex_wifi_release(uint32_t event);
|
||||
static unsigned long esp_random_ulong(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions declaration
|
||||
|
|
@ -389,7 +390,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs =
|
|||
._nvs_erase_key = esp_nvs_erase_key,
|
||||
._get_random = esp_get_random,
|
||||
._get_time = esp_get_time,
|
||||
._random = esp_random,
|
||||
._random = esp_random_ulong,
|
||||
._log_write = esp_log_write,
|
||||
._log_writev = esp_log_writev,
|
||||
._log_timestamp = esp_log_timestamp,
|
||||
|
|
@ -3672,6 +3673,20 @@ static int32_t esp_coex_wifi_release(uint32_t event)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: esp_random_ulong
|
||||
*
|
||||
* Description:
|
||||
* A simpler wrapper of esp_random.
|
||||
* Just convert the return value from uint32_t to unsigned long.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static unsigned long esp_random_ulong(void)
|
||||
{
|
||||
return esp_random();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Functions needed by libphy.a
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue