OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [HCS12_CodeWarrior_small/] [CODE/] [ButtonInterrupt.C] - Blame information for rev 615

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 588 jeremybenn
/** ###################################################################
2
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3
**     Filename  : ButtonInterrupt.C
4
**     Project   : RTOSDemo
5
**     Processor : MC9S12C32CFU
6
**     Beantype  : ExtInt
7
**     Version   : Bean 02.025, Driver 01.06, CPU db: 2.87.276
8
**     Compiler  : Metrowerks HC12 C Compiler
9
**     Date/Time : 19/05/2005, 19:02
10
**     Abstract  :
11
**         This bean "ExtInt" implements an external
12
**         interrupt, its control methods and interrupt/event
13
**         handling procedure.
14
**         The bean uses one pin which generates interrupt on
15
**         selected edge.
16
**     Settings  :
17
**         Interrupt name              : INT_PortP
18
**         User handling procedure     : ButtonInterrupt_OnInterrupt
19
**
20
**         Used pin                    :
21
**             ----------------------------------------------------
22
**                Number (on package)  |    Name
23
**             ----------------------------------------------------
24
**                       4             |  PP0_PWM0_KWP0
25
**             ----------------------------------------------------
26
**
27
**         Port name                   : P
28
**
29
**         Bit number (in port)        : 0
30
**         Bit mask of the port        : 1
31
**
32
**         Signal edge/level           : falling
33
**         Priority                    : 1
34
**         Pull option                 : up
35
**         Initial state               : Disabled
36
**
37
**         Edge register               : PPSP      [605]
38
**         Priority register           : HPRIO     [31]
39
**         Enable register             : PIEP      [606]
40
**         Request register            : PIFP      [607]
41
**
42
**         Port data register          : PTP       [600]
43
**         Port control register       : DDRP      [602]
44
**     Contents  :
45
**         Enable - void ButtonInterrupt_Enable(void);
46
**
47
**     (c) Copyright UNIS, spol. s r.o. 1997-2002
48
**     UNIS, spol. s r.o.
49
**     Jundrovska 33
50
**     624 00 Brno
51
**     Czech Republic
52
**     http      : www.processorexpert.com
53
**     mail      : info@processorexpert.com
54
** ###################################################################*/
55
 
56
 
57
/* MODULE ButtonInterrupt. */
58
 
59
#include "ButtonInterrupt.h"
60
/*Including shared modules, which are used for all project*/
61
#include "PE_Types.h"
62
#include "PE_Error.h"
63
#include "PE_Const.h"
64
#include "IO_Map.h"
65
#include "PE_Timer.h"
66
#include "Events.h"
67
#include "Cpu.h"
68
 
69
/* Definition of DATA and CODE segments for this bean. User can specify where
70
   these segments will be located on "Build options" tab of the selected CPU bean. */
71
#pragma DATA_SEG ButtonInterrupt_DATA  /* Data section for this module. */
72
#pragma CODE_SEG ButtonInterrupt_CODE  /* Code section for this module. */
73
 
74
/*
75
** ===================================================================
76
**     Method      :  ButtonInterrupt_Enable (bean ExtInt)
77
**
78
**     Description :
79
**         Enable the bean - the external events are accepted.
80
**     Parameters  : None
81
**     Returns     : Nothing
82
** ===================================================================
83
*/
84
void ButtonInterrupt_Enable(void)
85
{
86
  PIFP = 1;                             /* Clear flag */
87
  PIEP_PIEP0 = 1;                       /* Enable interrupt */
88
}
89
 
90
/*
91
** ===================================================================
92
**     Method      :  ButtonInterrupt_Interrupt (bean ExtInt)
93
**
94
**     Description :
95
**         This method is internal. It is used by Processor Expert
96
**         only.
97
** ===================================================================
98
*/
99
#pragma CODE_SEG __NEAR_SEG NON_BANKED /* Interrupt section for this module. Placement will be in NON_BANKED area. */
100
__interrupt void ButtonInterrupt_Interrupt(void)
101
{
102
  PIFP = 1;                             /* Clear flag */
103
  ButtonInterrupt_OnInterrupt();
104
}
105
 
106
#pragma CODE_SEG ButtonInterrupt_CODE  /* Code section for this module. */
107
 
108
/* END ButtonInterrupt. */
109
 
110
/*
111
** ###################################################################
112
**
113
**     This file was created by UNIS Processor Expert 03.33 for
114
**     the Motorola HCS12 series of microcontrollers.
115
**
116
** ###################################################################
117
*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.