app_inc.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (c) 2022 OpenLuat & AirM2M
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  5. * this software and associated documentation files (the "Software"), to deal in
  6. * the Software without restriction, including without limitation the rights to
  7. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  8. * the Software, and to permit persons to whom the Software is furnished to do so,
  9. * subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in all
  12. * copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  16. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  17. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  18. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  19. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. */
  21. #ifndef __APP_INC_H__
  22. #define __APP_INC_H__
  23. #include "bl_inc.h"
  24. #if 0
  25. typedef unsigned char u8;
  26. typedef char s8;
  27. typedef unsigned short u16;
  28. typedef short s16;
  29. typedef unsigned int u32;
  30. typedef int s32;
  31. typedef unsigned long long u64;
  32. typedef long long s64;
  33. //typedef unsigned char bool;
  34. typedef unsigned char uint8_t;
  35. //typedef char int8_t;
  36. typedef unsigned short uint16_t;
  37. typedef short int16_t;
  38. //typedef unsigned int uint32_t;
  39. //typedef int int32_t;
  40. typedef unsigned long long uint64_t;
  41. typedef long long int64_t;
  42. #endif
  43. #include "core_hwtimer.h"
  44. #include "core_adc.h"
  45. #include "core_dac.h"
  46. #include "core_wdt.h"
  47. #include "core_usb_ll_driver.h"
  48. #include "core_keyboard.h"
  49. #include "core_dcmi.h"
  50. #include "core_rng.h"
  51. #ifdef __BUILD_OS__
  52. #include "FreeRTOS.h"
  53. #include "task.h"
  54. #include "semphr.h"
  55. #include "bget.h"
  56. #include "core_task.h"
  57. #include "core_service.h"
  58. #define mallc OS_Malloc
  59. #define zallc OS_Zalloc
  60. #define reallc OS_Realloc
  61. #define free OS_Free
  62. #define IRQ_LOWEST_PRIORITY configLIBRARY_LOWEST_INTERRUPT_PRIORITY
  63. #define IRQ_MAX_PRIORITY configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY
  64. #endif
  65. #endif