SchedEvents.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: SchedEvents.h
  4. * Description: Definition of the events for the Keil MDK Event logger
  5. *
  6. * $Date: 30 July 2021
  7. * $Revision: V1.10.0
  8. *
  9. * Target Processor: Cortex-M and Cortex-A cores
  10. * -------------------------------------------------------------------- */
  11. /*
  12. * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
  13. *
  14. * SPDX-License-Identifier: Apache-2.0
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the License); you may
  17. * not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  24. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. */
  28. #ifndef _SCHEDEVT_H
  29. #define _SCHEDEVT_H
  30. /*
  31. Definition of Event IDs for Keil MDK EventRecorder
  32. */
  33. #include "EventRecorder.h"
  34. #define EvtNodes 0x00
  35. #define EvtRing_User 0x01
  36. #define EvtRing_Int 0x02
  37. #define EvtRing_All 0x03
  38. /* Node events */
  39. #define Evt_Sink EventID (EventLevelAPI, EvtNodes, 0x00)
  40. #define Evt_SinkVal EventID (EventLevelOp, EvtNodes, 0x01)
  41. #define Evt_Source EventID (EventLevelAPI, EvtNodes, 0x02)
  42. /* User Ring Events */
  43. #define Evt_UsrReserve EventID (EventLevelOp, EvtRing_User, 0x00)
  44. #define Evt_UsrRelease EventID (EventLevelOp, EvtRing_User, 0x01)
  45. #define Evt_UsrWait EventID (EventLevelOp, EvtRing_User, 0x02)
  46. #define Evt_UsrFree EventID (EventLevelOp, EvtRing_User, 0x03)
  47. #define Evt_UsrStatus EventID (EventLevelDetail, EvtRing_User, 0x04)
  48. /* Interrupt Ring Events */
  49. #define Evt_IntReserve EventID (EventLevelOp, EvtRing_Int, 0x00)
  50. #define Evt_IntRelease EventID (EventLevelOp, EvtRing_Int, 0x01)
  51. #define Evt_IntReleaseUser EventID (EventLevelOp, EvtRing_Int, 0x02)
  52. #define Evt_IntStatus EventID (EventLevelDetail, EvtRing_Int, 0x03)
  53. /* Other Ring Events */
  54. #define Evt_Error EventID (EventLevelError, EvtRing_All, 0x00)
  55. #endif