4 /* Alternate functions */
20 #define INVERTCLK (1 << 22)
21 #define CLKNOTDATA (1 << 21)
22 #define DOUBLE_EDGE (1 << 20)
23 #define CLK_A (0 << 18)
24 #define CLK_B (1 << 18)
25 #define CLK_C (2 << 18)
26 #define CLK_D (3 << 18)
28 /* User-frendly defines for Pin Direction */
29 /* oe = 0, pu = 0, od = 0 */
31 /* oe = 0, pu = 1, od = 0 */
33 /* oe = 1, pu = 0, od = 0 */
35 /* oe = 1, pu = 0, od = 1 */
36 #define BIDIR (OE | OD)
37 /* oe = 1, pu = 1, od = 1 */
38 #define BIDIR_PU (OE | PU | OD)
43 * Bypass retime with optional delay parameter
47 * R0, R1, R0D, R1D modes
48 * single-edge data non inverted clock, retime data with clk
50 #define SE_NICLK_IO (RT)
52 * RIV0, RIV1, RIV0D, RIV1D modes
53 * single-edge data inverted clock, retime data with clk
55 #define SE_ICLK_IO (RT | INVERTCLK)
57 * R0E, R1E, R0ED, R1ED modes
58 * double-edge data, retime data with clk
60 #define DE_IO (RT | DOUBLE_EDGE)
62 * CIV0, CIV1 modes with inverted clock
63 * Retiming the clk pins will park clock & reduce the noise within the core.
65 #define ICLK (RT | CLKNOTDATA | INVERTCLK)
67 * CLK0, CLK1 modes with non-inverted clock
68 * Retiming the clk pins will park clock & reduce the noise within the core.
70 #define NICLK (RT | CLKNOTDATA)
71 #endif /* _ST_PINCFG_H_ */