We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59112db commit 37ae977Copy full SHA for 37ae977
pic18f26k83/pwm.c
@@ -13,17 +13,17 @@ static w_status_t configure_pps(uint8_t ccp_module, pwm_pin_config_t pin_config)
13
14
// Get TRIS register based on port (macros require compile-time constants, so use switch)
15
switch (pin_config.port) {
16
- case 'A':
17
- tris_reg = &TRISA;
18
- break;
19
- case 'B':
20
- tris_reg = ⧍
21
22
- case 'C':
23
- tris_reg = &TRISC;
24
25
- default:
26
- return W_INVALID_PARAM;
+ case 'A':
+ tris_reg = &TRISA;
+ break;
+ case 'B':
+ tris_reg = ⧍
+ case 'C':
+ tris_reg = &TRISC;
+ default:
+ return W_INVALID_PARAM;
27
}
28
29
// Set the pin as output to drive PWM signal directly using the TRIS register
0 commit comments