summaryrefslogtreecommitdiff
path: root/bsp/rx/RPDL/r_pdl_pfc.h
blob: 302a94988e775fefda5be8952f456640be5a1430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*""FILE COMMENT""*******************************************************
* System Name	: PFC API
* File Name		: r_pdl_pfc.h
* Version		: 1.02
* Contents		: PFC API header
* Customer		: 
* Model			: 
* Order			: 
* CPU			: RX
* Compiler		: RXC
* OS			:
* Programmer	: 
* Note			: 
************************************************************************
* Copyright, 2011. Renesas Electronics Corporation
* and Renesas Solutions Corporation
************************************************************************
* History		: 2011.04.08
*				: Ver 1.02
*				: CS-5 release.
*""FILE COMMENT END""**************************************************/

#ifndef R_PDL_PFC_H
#define R_PDL_PFC_H

#include "r_pdl_common_defs_RX62Nxx.h"

/* Function prototypes */
bool R_PFC_Read(
	uint8_t,
	uint8_t *
);
bool R_PFC_Write(
	uint8_t,
	uint8_t
);
bool R_PFC_Modify(
	uint8_t,
	uint8_t,
	uint8_t
);

/* PFC register definitions */
#define PDL_PFC_PF0CSE	0x00u
#define PDL_PFC_PF1CSS	0x01u
#define PDL_PFC_PF2CSS	0x02u
#define PDL_PFC_PF3BUS	0x03u
#define PDL_PFC_PF4BUS	0x04u
#define PDL_PFC_PF5BUS	0x05u
#define PDL_PFC_PF6BUS	0x06u
#define PDL_PFC_PF7DMA	0x07u
#define PDL_PFC_PF8IRQ	0x08u
#define PDL_PFC_PF9IRQ	0x09u
#define PDL_PFC_PFAADC	0x0Au
#define PDL_PFC_PFBTMR	0x0Bu
#define PDL_PFC_PFCMTU	0x0Cu
#define PDL_PFC_PFDMTU	0x0Du
#define PDL_PFC_PFENET	0x0Eu
#define PDL_PFC_PFFSCI	0x0Fu
#define PDL_PFC_PFGSPI	0x10u
#define PDL_PFC_PFHSPI	0x11u
#define PDL_PFC_PFJCAN	0x13u
#define PDL_PFC_PFKUSB	0x14u
#define PDL_PFC_PFLUSB	0x15u
#define PDL_PFC_PFMPOE	0x16u
#define PDL_PFC_PFNPOE	0x17u

/* Logical operations */
#define PDL_PFC_AND	0x01u
#define PDL_PFC_OR	0x02u
#define PDL_PFC_XOR	0x04u

#endif
/* End of file */