You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

75 line
2.6 KiB

  1. /**************************************************************************//**
  2. * @file cmsis_xcc.h
  3. * @brief CMSIS DSP Core Peripheral Access Layer Header File
  4. * @version V1.0
  5. * @date 20. January 2019
  6. ******************************************************************************/
  7. /*
  8. * Copyright (c) 2009-2019 ARM Limited. All rights reserved.
  9. *
  10. * SPDX-License-Identifier: Apache-2.0
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the License); you may
  13. * not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  20. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. #ifndef __CORE_DSP_H_GENERIC
  25. #define __CORE_DSP_H_GENERIC
  26. #include <stdint.h>
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /* IO definitions (access restrictions to peripheral registers) */
  31. /**
  32. \defgroup CMSIS_glob_defs CMSIS Global Defines
  33. <strong>IO Type Qualifiers</strong> are used
  34. \li to specify the access to peripheral variables.
  35. \li for automatic generation of peripheral register debug information.
  36. */
  37. #ifdef __cplusplus
  38. #define __I volatile /*!< Defines 'read only' permissions */
  39. #else
  40. #define __I volatile const /*!< Defines 'read only' permissions */
  41. #endif
  42. #define __O volatile /*!< Defines 'write only' permissions */
  43. #define __IO volatile /*!< Defines 'read / write' permissions */
  44. /* following defines should be used for structure members */
  45. #define __IM volatile const /*! Defines 'read only' structure member permissions */
  46. #define __OM volatile /*! Defines 'write only' structure member permissions */
  47. #define __IOM volatile /*! Defines 'read / write' structure member permissions */
  48. #define __STATIC_INLINE static inline
  49. #define __BKPT(value) do {} while(0)
  50. #define __NOP() do {} while(0)
  51. #define NVIC_SetPriorityGrouping(value) do {} while(0)
  52. #define NVIC_GetPriorityGrouping() do {} while(0)
  53. #define NVIC_EnableIRQ(value) do {} while(0)
  54. #define NVIC_GetEnableIRQ(value) do {} while(0)
  55. #define NVIC_DisableIRQ(value) do {} while(0)
  56. #define NVIC_GetPendingIRQ(value) do {} while(0)
  57. #define NVIC_SetPendingIRQ(value) do {} while(0)
  58. #define NVIC_ClearPendingIRQ(value) do {} while(0)
  59. #define NVIC_GetActive(value) do {} while(0)
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* __CORE_DSP_H_GENERIC */