Skip to content

Commit 4203ec2

Browse files
committed
commented on soc startup delay
1 parent 4898450 commit 4203ec2

File tree

1 file changed

+12
-1
lines changed
  • soc/ti/mspm0/mspm0g1x0x_g3x0x

1 file changed

+12
-1
lines changed

soc/ti/mspm0/mspm0g1x0x_g3x0x/soc.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,18 @@ extern "C" {
1919

2020
/* clang-format off */
2121

22-
#define POWER_STARTUP_DELAY (16)
22+
/*
23+
* Per TRM Section 2.2.7 Peripheral Power Enable Control:
24+
*
25+
* After setting the ENABLE | KEY bits in the PWREN Register to enable a
26+
* peripheral, wait at least 4 ULPCLK clock cycles before accessing the rest of
27+
* the peripheral's memory-mapped registers. The 4 cycles allow for the bus
28+
* isolation signals at the peripheral's bus interface to update.
29+
*
30+
* ULPCLK will either be equivalent or half of the main MCLK and CPUCLK,
31+
* yielding the delay time of 8 cycles
32+
*/
33+
#define POWER_STARTUP_DELAY (8)
2334

2435
/* clang-format on */
2536

0 commit comments

Comments
 (0)