Fix function prototypes

This commit is contained in:
Angus Gratton
2019-08-12 12:06:07 +10:00
committed by Angus Gratton
parent c47e1756f8
commit 18c5cfadae
46 changed files with 189 additions and 189 deletions

View File

@@ -16,6 +16,6 @@
#ifndef __ESP_BROWNOUT_H
#define __ESP_BROWNOUT_H
void esp_brownout_init();
void esp_brownout_init(void);
#endif

View File

@@ -20,7 +20,7 @@
* to interrupt input number ETS_CACHEERR_INUM (see soc/soc.h). It is called
* from the startup code.
*/
void esp_cache_err_int_init();
void esp_cache_err_int_init(void);
/**
@@ -30,4 +30,4 @@ void esp_cache_err_int_init();
* - APP_CPU_NUM, if APP_CPU has caused cache IA interrupt
* - (-1) otherwise
*/
int esp_cache_err_get_cpuid();
int esp_cache_err_get_cpuid(void);

View File

@@ -28,7 +28,7 @@
*
* @return the calibration value obtained using rtc_clk_cal, at startup time
*/
uint32_t esp_clk_slowclk_cal_get();
uint32_t esp_clk_slowclk_cal_get(void);
/**
* @brief Update the calibration value of RTC slow clock
@@ -72,4 +72,4 @@ int esp_clk_apb_freq(void);
*
* @return Value or RTC counter, expressed in microseconds
*/
uint64_t esp_clk_rtc_time();
uint64_t esp_clk_rtc_time(void);

View File

@@ -26,7 +26,7 @@
*
* @return ESP_OK on success
*/
esp_err_t esp_spiram_init();
esp_err_t esp_spiram_init(void);
/**
* @brief Configure Cache/MMU for access to external SPI RAM.
@@ -37,7 +37,7 @@ esp_err_t esp_spiram_init();
*
* @attention this function must be called with flash cache disabled.
*/
void esp_spiram_init_cache();
void esp_spiram_init_cache(void);
/**
@@ -48,13 +48,13 @@ void esp_spiram_init_cache();
*
* @return true on success, false on failed memory test
*/
bool esp_spiram_test();
bool esp_spiram_test(void);
/**
* @brief Add the initialized SPI RAM to the heap allocator.
*/
esp_err_t esp_spiram_add_to_heapalloc();
esp_err_t esp_spiram_add_to_heapalloc(void);
/**
@@ -62,7 +62,7 @@ esp_err_t esp_spiram_add_to_heapalloc();
*
* @return Size in bytes, or 0 if no external RAM chip support compiled in.
*/
size_t esp_spiram_get_size();
size_t esp_spiram_get_size(void);
/**
@@ -72,7 +72,7 @@ size_t esp_spiram_get_size();
*
* This is meant for use from within the SPI flash code.
*/
void esp_spiram_writeback_cache();
void esp_spiram_writeback_cache(void);

View File

@@ -28,7 +28,7 @@
*
* @return the calibration value obtained using rtc_clk_cal, at startup time
*/
uint32_t esp_clk_slowclk_cal_get();
uint32_t esp_clk_slowclk_cal_get(void);
/**
* @brief Update the calibration value of RTC slow clock
@@ -72,4 +72,4 @@ int esp_clk_apb_freq(void);
*
* @return Value or RTC counter, expressed in microseconds
*/
uint64_t esp_clk_rtc_time();
uint64_t esp_clk_rtc_time(void);

View File

@@ -281,13 +281,13 @@ esp_err_t esp_intr_set_in_iram(intr_handle_t handle, bool is_in_iram);
/**
* @brief Disable interrupts that aren't specifically marked as running from IRAM
*/
void esp_intr_noniram_disable();
void esp_intr_noniram_disable(void);
/**
* @brief Re-enable interrupts disabled by esp_intr_noniram_disable
*/
void esp_intr_noniram_enable();
void esp_intr_noniram_enable(void);
/**@}*/

View File

@@ -94,7 +94,7 @@ esp_err_t esp_sleep_disable_wakeup_source(esp_sleep_source_t source);
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if ULP co-processor is not enabled or if wakeup triggers conflict
*/
esp_err_t esp_sleep_enable_ulp_wakeup();
esp_err_t esp_sleep_enable_ulp_wakeup(void);
/**
* @brief Enable wakeup by timer
@@ -120,7 +120,7 @@ esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us);
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if wakeup triggers conflict
*/
esp_err_t esp_sleep_enable_touchpad_wakeup();
esp_err_t esp_sleep_enable_touchpad_wakeup(void);
/**
* @brief Get the touch pad which caused wakeup
@@ -129,7 +129,7 @@ esp_err_t esp_sleep_enable_touchpad_wakeup();
*
* @return touch pad which caused wakeup
*/
touch_pad_t esp_sleep_get_touchpad_wakeup_status();
touch_pad_t esp_sleep_get_touchpad_wakeup_status(void);
/**
* @brief Enable wakeup using a pin
@@ -197,7 +197,7 @@ esp_err_t esp_sleep_enable_ext1_wakeup(uint64_t mask, esp_sleep_ext1_wakeup_mode
*
* @return bit mask, if GPIOn caused wakeup, BIT(n) will be set
*/
uint64_t esp_sleep_get_ext1_wakeup_status();
uint64_t esp_sleep_get_ext1_wakeup_status(void);
/**
* @brief Set power down mode for an RTC power domain in sleep mode
@@ -218,7 +218,7 @@ esp_err_t esp_sleep_pd_config(esp_sleep_pd_domain_t domain,
*
* This function does not return.
*/
void esp_deep_sleep_start() __attribute__((noreturn));
void esp_deep_sleep_start(void) __attribute__((noreturn));
/**
* @brief Enter light sleep with the configured wakeup options
@@ -227,7 +227,7 @@ void esp_deep_sleep_start() __attribute__((noreturn));
* - ESP_OK on success (returned after wakeup)
* - ESP_ERR_INVALID_STATE if WiFi or BT is not stopped
*/
esp_err_t esp_light_sleep_start();
esp_err_t esp_light_sleep_start(void);
/**
* @brief Enter deep-sleep mode
@@ -269,7 +269,7 @@ void system_deep_sleep(uint64_t time_in_us) __attribute__((noreturn, deprecated)
*
* @return wakeup cause, or ESP_DEEP_SLEEP_WAKEUP_UNDEFINED if reset happened for reason other than deep sleep wakeup
*/
esp_sleep_wakeup_cause_t esp_sleep_get_wakeup_cause();
esp_sleep_wakeup_cause_t esp_sleep_get_wakeup_cause(void);
/**

View File

@@ -25,7 +25,7 @@
*
* @return ESP_OK on success
*/
esp_err_t esp_spiram_init();
esp_err_t esp_spiram_init(void);
/**
* @brief Configure Cache/MMU for access to external SPI RAM.
@@ -36,7 +36,7 @@ esp_err_t esp_spiram_init();
*
* @attention this function must be called with flash cache disabled.
*/
void esp_spiram_init_cache();
void esp_spiram_init_cache(void);
/**
@@ -47,13 +47,13 @@ void esp_spiram_init_cache();
*
* @return true on success, false on failed memory test
*/
bool esp_spiram_test();
bool esp_spiram_test(void);
/**
* @brief Add the initialized SPI RAM to the heap allocator.
*/
esp_err_t esp_spiram_add_to_heapalloc();
esp_err_t esp_spiram_add_to_heapalloc(void);
/**
@@ -61,7 +61,7 @@ esp_err_t esp_spiram_add_to_heapalloc();
*
* @return Size in bytes, or 0 if no external RAM chip support compiled in.
*/
size_t esp_spiram_get_size();
size_t esp_spiram_get_size(void);
/**
@@ -71,7 +71,7 @@ size_t esp_spiram_get_size();
*
* This is meant for use from within the SPI flash code.
*/
void esp_spiram_writeback_cache();
void esp_spiram_writeback_cache(void);