File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ extern uint32_t SystemCoreClock;
48
48
* DELTA = TOLERANCE_FACTOR / SystemCoreClock * US_FACTOR
49
49
*
50
50
* e.g.
51
- * For K64F DELTA = (40000 / 120000000) * 1000000 = 333 [us]
52
- * For NUCLEO_F070RB DELTA = (40000 / 48000000) * 1000000 = 833 [us]
53
- * For NRF51_DK DELTA = (40000 / 16000000) * 1000000 = 2500 [us]
51
+ * For K64F DELTA = (80000 / 120000000) * 1000000 = 666 [us]
52
+ * For NUCLEO_F070RB DELTA = (80000 / 48000000) * 1000000 = 1666 [us]
53
+ * For NRF51_DK DELTA = (80000 / 16000000) * 1000000 = 5000 [us]
54
54
*/
55
55
#define US_PER_SEC 1000000
56
56
#define US_PER_MSEC 1000
57
- #define TOLERANCE_FACTOR 40000 .0f
57
+ #define TOLERANCE_FACTOR 80000 .0f
58
58
#define US_FACTOR 1000000 .0f
59
59
60
60
static const int delta_sys_clk_us = ((int ) (TOLERANCE_FACTOR / (float ) SystemCoreClock * US_FACTOR));
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ extern uint32_t SystemCoreClock;
39
39
* DELTA = TOLERANCE_FACTOR / SystemCoreClock * US_FACTOR
40
40
*
41
41
* e.g.
42
- * For K64F DELTA = (15000 / 120000000) * 1000000 = 125 [us]
43
- * For NUCLEO_F070RB DELTA = (15000 / 48000000) * 1000000 = 312 [us]
44
- * For NRF51_DK DELTA = (15000 / 16000000) * 1000000 = 937 [us]
42
+ * For K64F DELTA = (30000 / 120000000) * 1000000 = 250 [us]
43
+ * For NUCLEO_F070RB DELTA = (30000 / 48000000) * 1000000 = 625 [us]
44
+ * For NRF51_DK DELTA = (30000 / 16000000) * 1000000 = 1875 [us]
45
45
*/
46
46
#define US_PER_SEC 1000000
47
47
#define US_PER_MSEC 1000
48
- #define TOLERANCE_FACTOR 15000 .0f
48
+ #define TOLERANCE_FACTOR 30000 .0f
49
49
#define US_FACTOR 1000000 .0f
50
50
51
51
static const int delta_sys_clk_us = ((int ) (TOLERANCE_FACTOR / (float )SystemCoreClock * US_FACTOR));
You can’t perform that action at this time.
0 commit comments