File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
libraries/mbed/targets/hal/TARGET_WIZNET/TARGET_W7500x Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ extern "C"{
24
24
void PWM3_Handler (void )
25
25
{
26
26
27
- wiz_rtc_time ++ ;
28
- PWM_CH3_ClearOverflowInt ();
29
-
27
+ wiz_rtc_time ++ ;
28
+ PWM_CH3_ClearOverflowInt ();
29
+
30
30
}
31
31
#ifdef __cplusplus
32
32
}
@@ -35,9 +35,9 @@ void PWM3_Handler(void)
35
35
36
36
37
37
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
+
41
41
/* Timer mode configuration */
42
42
TimerModeStructure .PWM_CHn_PR = 7 ;
43
43
TimerModeStructure .PWM_CHn_MR = 1 ;
@@ -55,7 +55,7 @@ void rtc_init(void) {
55
55
PWM_CHn_Start (PWM_CH3 );
56
56
NVIC_SetVector (PWM3_IRQn , (uint32_t )PWM3_Handler );
57
57
NVIC_EnableIRQ (PWM3_IRQn );
58
- rtc_enabled = 1 ;
58
+ rtc_enabled = 1 ;
59
59
}
60
60
61
61
void rtc_free (void ) {
@@ -73,7 +73,7 @@ time_t rtc_read(void) {
73
73
}
74
74
75
75
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
79
79
}
You can’t perform that action at this time.
0 commit comments