app_cfg.h 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /****************************************Copyright (c)****************************************************
  2. **
  3. ** http://www.powermcu.com
  4. **
  5. **--------------File Info---------------------------------------------------------------------------------
  6. ** File name: app_cfg.h
  7. ** Descriptions: ucosii configuration
  8. **
  9. **--------------------------------------------------------------------------------------------------------
  10. ** Created by: AVRman
  11. ** Created date: 2010-11-9
  12. ** Version: v1.0
  13. ** Descriptions: The original version
  14. **
  15. **--------------------------------------------------------------------------------------------------------
  16. ** Modified by:
  17. ** Modified date:
  18. ** Version:
  19. ** Descriptions:
  20. **
  21. *********************************************************************************************************/
  22. #ifndef __APP_CFG_H__
  23. #define __APP_CFG_H__
  24. /*
  25. *********************************************************************************************************
  26. * MODULE ENABLE / DISABLE
  27. *********************************************************************************************************
  28. */
  29. #define OS_VIEW_MODULE DEF_DISABLED /* DEF_ENABLED = Present, DEF_DISABLED = Not Present */
  30. /*
  31. *********************************************************************************************************
  32. * TASKS NAMES
  33. *********************************************************************************************************
  34. */
  35. /*
  36. *********************************************************************************************************
  37. * TASK PRIORITIES
  38. *********************************************************************************************************
  39. */
  40. #define APP_TASK_START_PRIO ( 1)
  41. #define APP_TASK_MAIN_PRIO ( 2)
  42. #define APP_TASK_NET_PRIO ( 3)
  43. #define APP_TASK_GPS_PRIO ( 4)
  44. #define APP_TASK_LED_PRIO ( 5)
  45. #define APP_TASK_OSVIEW_TERMINAL_PRIO (OS_LOWEST_PRIO - 6)
  46. #define OS_VIEW_TASK_PRIO (OS_LOWEST_PRIO - 3)
  47. #define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
  48. /*
  49. *********************************************************************************************************
  50. * TASK STACK SIZES
  51. * Size of the task stacks (# of OS_STK entries)
  52. *********************************************************************************************************
  53. */
  54. #define APP_TASK_ETHERNETIF_INPUT_STK_SIZE 512u
  55. #define APP_TASK_START_STK_SIZE 64u
  56. #define APP_TASK_BLINK_STK_SIZE 128u
  57. #define APP_TASK_OSVIEW_TERMINAL_STK_SIZE 128u
  58. #define OS_VIEW_TASK_STK_SIZE 128u
  59. #define APP_TASK_MB_STK_SIZE 256u
  60. /*
  61. *********************************************************************************************************
  62. * LIB
  63. *********************************************************************************************************
  64. */
  65. #define uC_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
  66. #define LIB_STR_CFG_FP_EN DEF_DISABLED
  67. #endif
  68. /*********************************************************************************************************
  69. END FILE
  70. *********************************************************************************************************/