Coding standards
This commit is contained in:
@ -72,7 +72,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
|
||||
}
|
||||
|
||||
void HAL_timer_enable_interrupt(const uint8_t timer_num) {
|
||||
switch(timer_num) {
|
||||
switch (timer_num) {
|
||||
case 0: NVIC_ENABLE_IRQ(IRQ_FTM0); break;
|
||||
case 1: NVIC_ENABLE_IRQ(IRQ_FTM1); break;
|
||||
}
|
||||
@ -99,7 +99,7 @@ bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
|
||||
}
|
||||
|
||||
void HAL_timer_isr_prologue(const uint8_t timer_num) {
|
||||
switch(timer_num) {
|
||||
switch (timer_num) {
|
||||
case 0:
|
||||
FTM0_CNT = 0x0000;
|
||||
FTM0_SC &= ~FTM_SC_TOF; // Clear FTM Overflow flag
|
||||
|
@ -76,7 +76,7 @@ void HAL_analog_pin_state(char buffer[], int8_t pin) {
|
||||
*/
|
||||
bool HAL_pwm_status(int8_t pin) {
|
||||
char buffer[20]; // for the sprintf statements
|
||||
switch(pin) {
|
||||
switch (pin) {
|
||||
FTM_CASE(0,0);
|
||||
FTM_CASE(0,1);
|
||||
FTM_CASE(0,2);
|
||||
|
Reference in New Issue
Block a user