1
- /************************************************************************************
1
+ /****************************************************************************
2
2
* arch/renesas/include/sh1/irq.h
3
3
*
4
4
* Licensed to the Apache Software Foundation (ASF) under one or more
16
16
* License for the specific language governing permissions and limitations
17
17
* under the License.
18
18
*
19
- ************************************************************************************ /
19
+ ****************************************************************************/
20
20
21
21
/* This file should never be included directly but, rather,
22
22
* only indirectly through nuttx/irq.h
25
25
#ifndef __ARCH_RENESAS_INCLUDE_SH1_IRQ_H
26
26
#define __ARCH_RENESAS_INCLUDE_SH1_IRQ_H
27
27
28
- /************************************************************************************
28
+ /****************************************************************************
29
29
* Included Files
30
- ************************************************************************************ /
30
+ ****************************************************************************/
31
31
32
32
#include <nuttx/config.h>
33
33
#include <stdint.h>
34
34
35
- /************************************************************************************
35
+ /****************************************************************************
36
36
* Pre-processor Definitions
37
- ************************************************************************************ /
37
+ ****************************************************************************/
38
38
39
39
/* IRQ channels */
40
40
241
241
#define SH1_SYSTIMER_IRQ SH1_IMIA0_IRQ
242
242
#endif
243
243
244
- /* Vector table offsets ************************************************************* /
244
+ /* Vector table offsets *****************************************************/
245
245
246
- /* The following provides the vector numbers for each IRQ. The IRQ numbers (above)
247
- * form the densely packet number space used by the system to identify IRQs. The
248
- * following are the (relatively) loosely spaced offsets that identify the location
249
- * of the corresponding vector in the vector table.
246
+ /* The following provides the vector numbers for each IRQ.
247
+ * The IRQ numbers (above) form the densely packet number space used by the
248
+ * system to identify IRQs. The following are the (relatively) loosely
249
+ * spaced offsets that identify the location of the corresponding vector
250
+ * in the vector table.
250
251
*
251
- * These offsets are specified as a vector number (suitably for indexing an array
252
- * of uint32_t) but would have to by multiplied by 4 to get an addressable, byte
253
- * offset.
252
+ * These offsets are specified as a vector number (suitably for indexing
253
+ * an array of uint32_t) but would have to by multiplied by 4 to get
254
+ * an addressable, byte offset.
254
255
*/
255
256
256
257
/* Resets */
439
440
#define XCPTCONTEXT_REGS (22)
440
441
#define XCPTCONTEXT_SIZE (4 * XCPTCONTEXT_REGS)
441
442
442
- /************************************************************************************
443
+ /****************************************************************************
443
444
* Public Types
444
- ************************************************************************************ /
445
+ ****************************************************************************/
445
446
446
447
/* This struct defines the way the registers are stored. We need to save: */
447
448
@@ -471,9 +472,9 @@ struct xcptcontext
471
472
};
472
473
#endif
473
474
474
- /************************************************************************************
475
+ /****************************************************************************
475
476
* Public Data
476
- ************************************************************************************ /
477
+ ****************************************************************************/
477
478
478
479
#ifndef __ASSEMBLY__
479
480
#ifdef __cplusplus
@@ -484,9 +485,9 @@ extern "C"
484
485
#define EXTERN extern
485
486
#endif
486
487
487
- /************************************************************************************
488
+ /****************************************************************************
488
489
* Inline Functions
489
- ************************************************************************************ /
490
+ ****************************************************************************/
490
491
491
492
#ifndef __ASSEMBLY__
492
493
@@ -563,9 +564,9 @@ static inline void up_irq_restore(irqstate_t flags)
563
564
}
564
565
#endif
565
566
566
- /************************************************************************************
567
+ /****************************************************************************
567
568
* Public Functions Prototypes
568
- ************************************************************************************ /
569
+ ****************************************************************************/
569
570
570
571
#undef EXTERN
571
572
#ifdef __cplusplus
0 commit comments