mac_cfg.c 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**************************************************************************************************
  2. Filename: mac_cfg.c
  3. Revised: $Date: 2007-10-29 22:37:25 -0700 (Mon, 29 Oct 2007) $
  4. Revision: $Revision: 15811 $
  5. Description: Compile-time parameters which are configurable by the user.
  6. Copyright 2005-2007 Texas Instruments Incorporated. All rights reserved.
  7. IMPORTANT: Your use of this Software is limited to those specific rights
  8. granted under the terms of a software license agreement between the user
  9. who downloaded the software, his/her employer (which must be your employer)
  10. and Texas Instruments Incorporated (the "License"). You may not use this
  11. Software unless you agree to abide by the terms of the License. The License
  12. limits your use, and you acknowledge, that the Software may not be modified,
  13. copied or distributed unless embedded on a Texas Instruments microcontroller
  14. or used solely and exclusively in conjunction with a Texas Instruments radio
  15. frequency transceiver, which is integrated into your product. Other than for
  16. the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  17. works of, modify, distribute, perform, display or sell this Software and/or
  18. its documentation for any purpose.
  19. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  20. PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  21. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  22. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  23. TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  24. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  25. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  26. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  27. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  28. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  29. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  30. Should you have any questions regarding your right to use this Software,
  31. contact Texas Instruments Incorporated at www.TI.com.
  32. **************************************************************************************************/
  33. /* ------------------------------------------------------------------------------------------------
  34. * Includes
  35. * ------------------------------------------------------------------------------------------------
  36. */
  37. #include "mac_api.h"
  38. /* ------------------------------------------------------------------------------------------------
  39. * Constants
  40. * ------------------------------------------------------------------------------------------------
  41. */
  42. /* maximum number of data frames in transmit queue */
  43. #ifndef MAC_CFG_TX_DATA_MAX
  44. #define MAC_CFG_TX_DATA_MAX 2
  45. #endif
  46. /* maximum number of frames of all types in transmit queue */
  47. #ifndef MAC_CFG_TX_MAX
  48. #define MAC_CFG_TX_MAX 5
  49. #endif
  50. /* maximum number of frames in receive queue */
  51. #ifndef MAC_CFG_RX_MAX
  52. #define MAC_CFG_RX_MAX 2
  53. #endif
  54. /* allocate additional bytes in the data indication for application-defined headers */
  55. #ifndef MAC_CFG_DATA_IND_OFFSET
  56. #define MAC_CFG_DATA_IND_OFFSET 0
  57. #endif
  58. /* determine whether MAC_MLME_POLL_IND will be sent to the application */
  59. #ifndef MAC_CFG_APP_PENDING_QUEUE
  60. #define MAC_CFG_APP_PENDING_QUEUE FALSE
  61. #endif
  62. /* ------------------------------------------------------------------------------------------------
  63. * Global Variables
  64. * ------------------------------------------------------------------------------------------------
  65. */
  66. /* configurable parameters */
  67. const macCfg_t macCfg =
  68. {
  69. MAC_CFG_TX_DATA_MAX,
  70. MAC_CFG_TX_MAX,
  71. MAC_CFG_RX_MAX,
  72. MAC_CFG_DATA_IND_OFFSET,
  73. MAC_CFG_APP_PENDING_QUEUE
  74. };