Skip to content

Commit cb9d835

Browse files
committed
Correct spaces/tabs and indentation
1 parent 482320f commit cb9d835

File tree

1 file changed

+10
-10
lines changed
  • libraries/mbed/targets/hal/TARGET_WIZNET/TARGET_W7500x

1 file changed

+10
-10
lines changed

libraries/mbed/targets/hal/TARGET_WIZNET/TARGET_W7500x/rtc_api.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ extern "C"{
2424
void PWM3_Handler(void)
2525
{
2626

27-
wiz_rtc_time++;
28-
PWM_CH3_ClearOverflowInt();
29-
27+
wiz_rtc_time++;
28+
PWM_CH3_ClearOverflowInt();
29+
3030
}
3131
#ifdef __cplusplus
3232
}
@@ -35,9 +35,9 @@ void PWM3_Handler(void)
3535

3636

3737
void rtc_init(void) {
38-
PWM_TimerModeInitTypeDef TimerModeStructure;
39-
*(volatile uint32_t *)(0x410010e0) = 0x03;
40-
38+
PWM_TimerModeInitTypeDef TimerModeStructure;
39+
*(volatile uint32_t *)(0x410010e0) = 0x03;
40+
4141
/* Timer mode configuration */
4242
TimerModeStructure.PWM_CHn_PR = 7;
4343
TimerModeStructure.PWM_CHn_MR = 1;
@@ -55,7 +55,7 @@ void rtc_init(void) {
5555
PWM_CHn_Start(PWM_CH3);
5656
NVIC_SetVector(PWM3_IRQn, (uint32_t)PWM3_Handler);
5757
NVIC_EnableIRQ(PWM3_IRQn);
58-
rtc_enabled = 1;
58+
rtc_enabled = 1;
5959
}
6060

6161
void rtc_free(void) {
@@ -73,7 +73,7 @@ time_t rtc_read(void) {
7373
}
7474

7575
void rtc_write(time_t t) {
76-
//*(volatile uint32_t *)(0x41001008) = 0x42; // timer disable, interrupt disable
77-
wiz_rtc_time = t;
78-
//*(volatile uint32_t *)(0x41001008) = 0x72; // timer enable interrupt enable
76+
//*(volatile uint32_t *)(0x41001008) = 0x42; // timer disable, interrupt disable
77+
wiz_rtc_time = t;
78+
//*(volatile uint32_t *)(0x41001008) = 0x72; // timer enable interrupt enable
7979
}

0 commit comments

Comments
 (0)