esp_heap_alloc_caps.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #pragma once
  14. #warning "This header is deprecated, please use functions defined in esp_heap_caps.h instead."
  15. #include "esp_heap_caps.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /* Deprecated FreeRTOS-style esp_heap_alloc_caps.h functions follow */
  20. /* Please use heap_caps_malloc() instead of this function */
  21. void *pvPortMallocCaps(size_t xWantedSize, uint32_t caps) asm("heap_caps_malloc") __attribute__((deprecated));
  22. /* Please use heap_caps_get_minimum_free_size() instead of this function */
  23. size_t xPortGetMinimumEverFreeHeapSizeCaps( uint32_t caps ) asm("heap_caps_get_minimum_free_size") __attribute__((deprecated));
  24. /* Please use heap_caps_get_free_size() instead of this function */
  25. size_t xPortGetFreeHeapSizeCaps( uint32_t caps ) asm("heap_caps_get_free_size") __attribute__((deprecated));
  26. #ifdef __cplusplus
  27. }
  28. #endif