efm32_system.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /***************************************************************************//**
  2. * @file
  3. * @brief System API for EFM32
  4. * @author Energy Micro AS
  5. * @version 2.0.0
  6. *******************************************************************************
  7. * @section License
  8. * <b>(C) Copyright 2010 Energy Micro AS, http://www.energymicro.com</b>
  9. *******************************************************************************
  10. *
  11. * This source code is the property of Energy Micro AS. The source and compiled
  12. * code may only be used on Energy Micro "EFM32" microcontrollers.
  13. *
  14. * This copyright notice may not be removed from the source code nor changed.
  15. *
  16. * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no
  17. * obligation to support this Software. Energy Micro AS is providing the
  18. * Software "AS IS", with no express or implied warranties of any kind,
  19. * including, but not limited to, any implied warranties of merchantability
  20. * or fitness for any particular purpose or warranties against infringement
  21. * of any proprietary rights of a third party.
  22. *
  23. * Energy Micro AS will not be liable for any consequential, incidental, or
  24. * special damages, or any other relief, or for any claim by any third party,
  25. * arising from your use of this Software.
  26. *
  27. ******************************************************************************/
  28. #ifndef __EFM32_SYSTEM_H
  29. #define __EFM32_SYSTEM_H
  30. #include <stdbool.h>
  31. #include "efm32.h"
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. /***************************************************************************//**
  36. * @addtogroup EFM32_Library
  37. * @{
  38. ******************************************************************************/
  39. /***************************************************************************//**
  40. * @addtogroup SYSTEM
  41. * @{
  42. ******************************************************************************/
  43. /*******************************************************************************
  44. ******************************* STRUCTS ***********************************
  45. ******************************************************************************/
  46. /** Chip revision details */
  47. typedef struct
  48. {
  49. uint8_t major; /**< Major revision number */
  50. uint8_t minor; /**< Minor revision number */
  51. } SYSTEM_ChipRevision_TypeDef;
  52. /*******************************************************************************
  53. ***************************** PROTOTYPES **********************************
  54. ******************************************************************************/
  55. void SYSTEM_ChipRevisionGet(SYSTEM_ChipRevision_TypeDef *rev);
  56. uint32_t SYSTEM_GetCalibrationValue(volatile uint32_t *regAddress);
  57. /** @} (end addtogroup SYSTEM) */
  58. /** @} (end addtogroup EFM32_Library) */
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif /* __EFM32_SYSTEM_H */