File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ void board_early_init_hook(void)
97
97
CLOCK_EnableClock (kCLOCK_GateADC0 );
98
98
#endif
99
99
100
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpcmp0 ))
101
+ CLOCK_AttachClk (kFRO12M_to_CMP0 );
102
+ CLOCK_SetClockDiv (kCLOCK_DivCMP0_FUNC , 1U );
103
+ SPC_EnableActiveModeAnalogModules (SPC0 , (kSPC_controlCmp0 | kSPC_controlCmp0Dac ));
104
+ #endif
105
+
100
106
#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpuart0 ))
101
107
CLOCK_SetClockDiv (kCLOCK_DivLPUART0 , 1u );
102
108
CLOCK_AttachClk (kFRO12M_to_LPUART0 );
Original file line number Diff line number Diff line change 25
25
};
26
26
};
27
27
28
+ pinmux_lpcmp0: pinmux_lpcmp0 {
29
+ group0 {
30
+ pinmux = <CMP0_IN0_P2_2>;
31
+ drive-strength = "low";
32
+ slew-rate = "fast";
33
+ bias-pull-up;
34
+ };
35
+ };
36
+
28
37
pinmux_lpuart0: pinmux_lpuart0 {
29
38
group0 {
30
39
pinmux = <LPUART0_RXD_P0_2>,
Original file line number Diff line number Diff line change 122
122
pinctrl-names = "default";
123
123
};
124
124
125
+ &lpcmp0 {
126
+ status = "okay";
127
+ pinctrl-0 = <&pinmux_lpcmp0>;
128
+ pinctrl-names = "default";
129
+ };
130
+
125
131
&lpuart0 {
126
132
status = "okay";
127
133
current-speed = <115200>;
You can’t perform that action at this time.
0 commit comments