File tree Expand file tree Collapse file tree 5 files changed +0
-45
lines changed Expand file tree Collapse file tree 5 files changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -123,16 +123,7 @@ void us_ticker_init(void)
123
123
124
124
void us_ticker_free (void )
125
125
{
126
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
127
-
128
- /* Stop counting */
129
- TIMER_Stop (timer_base );
130
-
131
- /* Wait for timer to stop counting and unset active flag */
132
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
133
-
134
126
/* Disable interrupt */
135
- TIMER_DisableInt (timer_base );
136
127
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
137
128
138
129
/* Disable IP clock
Original file line number Diff line number Diff line change @@ -91,16 +91,7 @@ void us_ticker_init(void)
91
91
92
92
void us_ticker_free (void )
93
93
{
94
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
95
-
96
- /* Stop counting */
97
- TIMER_Stop (timer_base );
98
-
99
- /* Wait for timer to stop counting and unset active flag */
100
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
101
-
102
94
/* Disable interrupt */
103
- TIMER_DisableInt (timer_base );
104
95
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
105
96
106
97
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -91,16 +91,7 @@ void us_ticker_init(void)
91
91
92
92
void us_ticker_free (void )
93
93
{
94
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
95
-
96
- /* Stop counting */
97
- TIMER_Stop (timer_base );
98
-
99
- /* Wait for timer to stop counting and unset active flag */
100
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
101
-
102
94
/* Disable interrupt */
103
- TIMER_DisableInt (timer_base );
104
95
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
105
96
106
97
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -93,16 +93,7 @@ void us_ticker_init(void)
93
93
94
94
void us_ticker_free (void )
95
95
{
96
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
97
-
98
- /* Stop counting */
99
- TIMER_Stop (timer_base );
100
-
101
- /* Wait for timer to stop counting and unset active flag */
102
- while ((timer_base -> CTL & TIMER_CTL_TMR_ACT_Msk ));
103
-
104
96
/* Disable interrupt */
105
- TIMER_DisableInt (timer_base );
106
97
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
107
98
108
99
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -90,16 +90,7 @@ void us_ticker_init(void)
90
90
91
91
void us_ticker_free (void )
92
92
{
93
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
94
-
95
- /* Stop counting */
96
- TIMER_Stop (timer_base );
97
-
98
- /* Wait for timer to stop counting and unset active flag */
99
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
100
-
101
93
/* Disable interrupt */
102
- TIMER_DisableInt (timer_base );
103
94
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
104
95
105
96
/* Disable IP clock */
You can’t perform that action at this time.
0 commit comments