Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed CRC16
Fork of S5info_APP2 by
Diff: main.cpp
- Revision:
- 18:73ae643a6803
- Parent:
- 17:2b4b3f3a0489
- Child:
- 19:e13ac9d940ab
--- a/main.cpp Tue Mar 07 05:12:51 2017 +0000
+++ b/main.cpp Tue Mar 07 05:14:14 2017 +0000
@@ -22,7 +22,7 @@
//Timer 1 (match)
LPC_SC->PCLKSEL0 |= (1 << 4); // pclk = cclk timer1
LPC_SC->PCONP |= (1 << 2); // timer1 power on
- LPC_TIM1->MR0 = 960000; // 100 ms
+ LPC_TIM1->MR0 = 960000; // 10 ms
LPC_TIM1->MCR = 3; // interrupt and reset control
LPC_TIM1->EMR = (3 << 4); // Interrupt & reset timer on match
NVIC_EnableIRQ(TIMER1_IRQn); // enable timer interrupt
