oad_preamble.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**************************************************************************************************
  2. Filename: preamble.h
  3. Revised: $Date:$
  4. Revision: $Revision:$
  5. Description: This file provides the Customer access point for specification of
  6. image identification including Version, Manufacturer ID and Product ID.
  7. There is an entry for each device: End Device, Router, and Coordinator.
  8. This file is included by an OAD-Compliant Application and results in the
  9. identifying infomation being placed at a known offset in the binary image
  10. that results from the build.
  11. Copyright 2005-2008 Texas Instruments Incorporated. All rights reserved.
  12. IMPORTANT: Your use of this Software is limited to those specific rights
  13. granted under the terms of a software license agreement between the user
  14. who downloaded the software, his/her employer (which must be your employer)
  15. and Texas Instruments Incorporated (the "License"). You may not use this
  16. Software unless you agree to abide by the terms of the License. The License
  17. limits your use, and you acknowledge, that the Software may not be modified,
  18. copied or distributed unless embedded on a Texas Instruments microcontroller
  19. or used solely and exclusively in conjunction with a Texas Instruments radio
  20. frequency transceiver, which is integrated into your product. Other than for
  21. the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  22. works of, modify, distribute, perform, display or sell this Software and/or
  23. its documentation for any purpose.
  24. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  25. PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  26. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  27. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  28. TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  29. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  30. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  31. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  32. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  33. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  34. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  35. Should you have any questions regarding your right to use this Software,
  36. contact Texas Instruments Incorporated at www.TI.com.
  37. **************************************************************************************************/
  38. #ifndef ZOAD_PREAMBLE_H
  39. #define ZOAD_PREAMBLE_H
  40. #include "hal_types.h"
  41. #define PREAMBLE_MAGIC1 0xA5
  42. #define PREAMBLE_MAGIC2 0x5A
  43. #if defined(ZDO_COORDINATOR) // COORDINATOR
  44. #define HAL_OAD_VERS ((uint16) 0xC000)
  45. #define HAL_OAD_MANU ((uint16) 0xF8F8)
  46. #define HAL_OAD_PROD ((uint16) 0x00AD)
  47. #elif defined(RTR_NWK) // ROUTER
  48. #define HAL_OAD_VERS ((uint16) 0x4000)
  49. #define HAL_OAD_MANU ((uint16) 0xF8F8)
  50. #define HAL_OAD_PROD ((uint16) 0x00AD)
  51. #else // END DEVICE
  52. #define HAL_OAD_VERS ((uint16) 0x1000)
  53. #define HAL_OAD_MANU ((uint16) 0xF8F8)
  54. #define HAL_OAD_PROD ((uint16) 0x00AD)
  55. #endif
  56. #endif