File tree Expand file tree Collapse file tree 5 files changed +0
-80
lines changed Expand file tree Collapse file tree 5 files changed +0
-80
lines changed Original file line number Diff line number Diff line change @@ -160,23 +160,7 @@ void lp_ticker_init(void)
160
160
161
161
void lp_ticker_free (void )
162
162
{
163
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
164
-
165
- /* Stop counting */
166
- TIMER_Stop (timer_base );
167
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
168
-
169
- /* Wait for timer to stop counting and unset active flag */
170
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
171
-
172
- /* Disable wakeup */
173
- TIMER_DisableWakeup (timer_base );
174
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
175
-
176
163
/* Disable interrupt */
177
- TIMER_DisableInt (timer_base );
178
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
179
-
180
164
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
181
165
182
166
/* Disable IP clock
Original file line number Diff line number Diff line change @@ -126,23 +126,7 @@ void lp_ticker_init(void)
126
126
127
127
void lp_ticker_free (void )
128
128
{
129
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
130
-
131
- /* Stop counting */
132
- TIMER_Stop (timer_base );
133
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
134
-
135
- /* Wait for timer to stop counting and unset active flag */
136
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
137
-
138
- /* Disable wakeup */
139
- TIMER_DisableWakeup (timer_base );
140
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
141
-
142
129
/* Disable interrupt */
143
- TIMER_DisableInt (timer_base );
144
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
145
-
146
130
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
147
131
148
132
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -126,23 +126,7 @@ void lp_ticker_init(void)
126
126
127
127
void lp_ticker_free (void )
128
128
{
129
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
130
-
131
- /* Stop counting */
132
- TIMER_Stop (timer_base );
133
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
134
-
135
- /* Wait for timer to stop counting and unset active flag */
136
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
137
-
138
- /* Disable wakeup */
139
- TIMER_DisableWakeup (timer_base );
140
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
141
-
142
129
/* Disable interrupt */
143
- TIMER_DisableInt (timer_base );
144
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
145
-
146
130
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
147
131
148
132
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -130,23 +130,7 @@ void lp_ticker_init(void)
130
130
131
131
void lp_ticker_free (void )
132
132
{
133
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
134
-
135
- /* Stop counting */
136
- TIMER_Stop (timer_base );
137
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
138
-
139
- /* Wait for timer to stop counting and unset active flag */
140
- while ((timer_base -> CTL & TIMER_CTL_TMR_ACT_Msk ));
141
-
142
- /* Disable wakeup */
143
- TIMER_DisableWakeup (timer_base );
144
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
145
-
146
133
/* Disable interrupt */
147
- TIMER_DisableInt (timer_base );
148
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
149
-
150
134
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
151
135
152
136
/* Disable IP clock */
Original file line number Diff line number Diff line change @@ -125,23 +125,7 @@ void lp_ticker_init(void)
125
125
126
126
void lp_ticker_free (void )
127
127
{
128
- TIMER_T * timer_base = (TIMER_T * ) NU_MODBASE (TIMER_MODINIT .modname );
129
-
130
- /* Stop counting */
131
- TIMER_Stop (timer_base );
132
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
133
-
134
- /* Wait for timer to stop counting and unset active flag */
135
- while ((timer_base -> CTL & TIMER_CTL_ACTSTS_Msk ));
136
-
137
- /* Disable wakeup */
138
- TIMER_DisableWakeup (timer_base );
139
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
140
-
141
128
/* Disable interrupt */
142
- TIMER_DisableInt (timer_base );
143
- wait_us ((NU_US_PER_SEC / NU_TMRCLK_PER_SEC ) * 3 );
144
-
145
129
NVIC_DisableIRQ (TIMER_MODINIT .irq_n );
146
130
147
131
/* Disable IP clock */
You can’t perform that action at this time.
0 commit comments