hal_access_map.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _HAL_ACCESS_MAP_H_
  13. #define _HAL_ACCESS_MAP_H_
  14. #include <stdint.h>
  15. #include <stdbool.h>
  16. #include <stddef.h>
  17. #include "hal_config.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. typedef enum
  22. {
  23. HAL_MAP_ID_00,
  24. HAL_MAP_ID_PAL,
  25. HAL_MAP_ID_SPAL,
  26. HAL_MAP_ID_SPP,
  27. HAL_MAP_ID_SPC,
  28. HAL_MAP_ID_05,
  29. HAL_MAP_ID_06,
  30. HAL_MAP_ID_07,
  31. HAL_MAP_ID_MEMD,
  32. HAL_MAP_ID_09,
  33. HAL_MAP_ID_STACK,
  34. HAL_MAP_ID_0B,
  35. HAL_MAP_ID_0C,
  36. HAL_MAP_ID_0D,
  37. HAL_MAP_ID_0E,
  38. HAL_MAP_ID_0F,
  39. HAL_MAP_ID_10,
  40. HAL_MAP_ID_11,
  41. HAL_MAP_ID_CALIB,
  42. HAL_MAP_ID_13,
  43. HAL_MAP_ID_FLASH_PROG,
  44. HAL_MAP_ID_15,
  45. HAL_MAP_ID_16,
  46. HAL_MAP_ID_17,
  47. HAL_MAP_ID_18,
  48. HAL_MAP_ID_19,
  49. HAL_MAP_ID_NB_CALIB,
  50. HAL_MAP_ID_COUNT
  51. } halMapId_t;
  52. typedef struct
  53. {
  54. uint32_t revision;
  55. uint32_t number;
  56. uint32_t date;
  57. char *string;
  58. } halMapVersion_t;
  59. void halMapEngineInit(void);
  60. void halMapEngineRegister(halMapId_t id, const halMapVersion_t *version, const void *access);
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif