mbed
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c
- Revision:
- 151:5eaa88a5bcc7
- Parent:
- 150:02e0a0aed4ec
- Child:
- 160:d5399cc887bb
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c Tue Nov 08 17:45:16 2016 +0000 +++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c Thu Nov 24 17:03:03 2016 +0000 @@ -101,10 +101,10 @@ /** Trim the oscillators */ if ((TRIMREG->TRIM_32K_EXT & 0xFFFF0000) != 0xFFFF0000) { - CLOCKREG->TRIM_32K_EXT = TRIMREG->TRIM_32K_EXT; + CLOCKREG->TRIM_32K_EXT.WORD = TRIMREG->TRIM_32K_EXT; } if ((TRIMREG->TRIM_32M_EXT & 0xFFFF0000) != 0xFFFF0000) { - CLOCKREG->TRIM_32M_EXT = TRIMREG->TRIM_32M_EXT; + CLOCKREG->TRIM_32M_EXT.WORD = TRIMREG->TRIM_32M_EXT; } /* Enable UART 1 & 2 FIFO */