mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-16 03:07:59 +08:00

1. add spi flash erase protect mechanism, boot and current runing user bin can not been erased; 2. add memleak debug feature; 3. fix spi overlap issue; 4. fix call wifi_station_disconnect, disconnect event enter twice issue; 5. fix crash when set opmode from station to softAP in scan done callback; 6. modify spi flash erase/write flow, clear protect status if needed; 7. fix rf init data sector broken issue, add user_rf_cal_sector_set, user application MUST have this function, refer to examples; 8. fix system parameter sector broken issue when frequently power on/off; 9. fix the max value of os_timer_arm; 10. fix dns issue in some routers; 11. add sntp support; 12. update smartconfig to 2.5.4; 13. update open freedom to support send beacon packet; 14. fix seldom rf not work issue after external reset; 15. fix pwm issue; 16. fix status error got by wifi_station_get_connect_status; 17. fix assert in pp; 18. fix huawei X4 connect softAP issue; 19. optimize sleep strategy; 20. add vendor IE support; 21. update libphy.a to 1055; 22. add weak function wifi_set_backup_mac to let user set MAC; 23. fix bug of lwip and optimize socket mechanism; 24. update boot loader to v1.6; 25. update esp_init_data_default.bin 26. add mbedtls support; 27. fix other bugs;
86 lines
2.4 KiB
C
86 lines
2.4 KiB
C
/*
|
|
* ESPRSSIF MIT License
|
|
*
|
|
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
|
*
|
|
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
|
* it is free of charge, to any person obtaining a copy of this software and associated
|
|
* documentation files (the "Software"), to deal in the Software without restriction, including
|
|
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
|
* to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all copies or
|
|
* substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
#ifndef __HW_TIMER_H__
|
|
#define __HW_TIMER_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** \defgroup HW_Timer_APIs Hardware timer APIs
|
|
* @brief Hardware timer APIs
|
|
*
|
|
* @attention Hardware timer can not interrupt other ISRs.
|
|
*
|
|
*/
|
|
|
|
/** @addtogroup HW_Timer_APIs
|
|
* @{
|
|
*/
|
|
|
|
|
|
/**
|
|
* @brief Initialize the hardware ISR timer.
|
|
*
|
|
* @param uint8 req : 0, not autoload; 1, autoload mode.
|
|
*
|
|
* @return null
|
|
*/
|
|
void hw_timer_init(uint8 req);
|
|
|
|
/**
|
|
* @brief Set a trigger timer delay to enable this timer.
|
|
*
|
|
* @param uint32 val : Timing
|
|
* - In autoload mode, range : 50 ~ 0x7fffff
|
|
* - In non-autoload mode, range : 10 ~ 0x7fffff
|
|
*
|
|
* @return null
|
|
*/
|
|
void hw_timer_arm(uint32 val);
|
|
|
|
/**
|
|
* @brief Set timer callback function.
|
|
*
|
|
* For enabled timer, timer callback has to be set.
|
|
*
|
|
* @param uint32 val : Timing
|
|
* - In autoload mode, range : 50 ~ 0x7fffff
|
|
* - In non-autoload mode, range : 10 ~ 0x7fffff
|
|
*
|
|
* @return null
|
|
*/
|
|
void hw_timer_set_func(void (* user_hw_timer_cb_set)(void));
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|