mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
RM48 simply blinky demo working.
This commit is contained in:
parent
57fab18305
commit
ecdca1311b
11 changed files with 1373 additions and 291 deletions
|
@ -34,37 +34,6 @@ void systemInit(void)
|
|||
| (3U << 8U)
|
||||
| (1U << 4U)
|
||||
| 1U;
|
||||
#if 0
|
||||
/** - Setup flash bank power modes */
|
||||
flashWREG->FBFALLBACK = 0x05050000
|
||||
| (SYS_ACTIVE << 14U)
|
||||
| (SYS_SLEEP << 12U)
|
||||
| (SYS_SLEEP << 10U)
|
||||
| (SYS_SLEEP << 8U)
|
||||
| (SYS_SLEEP << 6U)
|
||||
| (SYS_SLEEP << 4U)
|
||||
| (SYS_ACTIVE << 2U)
|
||||
| SYS_ACTIVE;
|
||||
|
||||
/** @b Initialize @b Lpo: */
|
||||
|
||||
{
|
||||
unsigned trim = *(volatile unsigned short *)0xF00801B4;
|
||||
|
||||
if (trim != 0xFFFF)
|
||||
{
|
||||
systemREG1->LPOMONCTL = (1U << 24U)
|
||||
| (0U << 16U)
|
||||
| trim;
|
||||
}
|
||||
else
|
||||
{
|
||||
systemREG1->LPOMONCTL = (1U << 24U)
|
||||
| (0U << 16U)
|
||||
| (systemREG1->LPOMONCTL & 0xFFFF);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/** @b Initialize @b Pll: */
|
||||
|
||||
/** - Setup pll control register 1:
|
||||
|
|
|
@ -166,7 +166,7 @@ typedef volatile struct systemBase1
|
|||
unsigned BMMCR1; /* 0x00C4 */
|
||||
unsigned BMMCR2; /* 0x00C8 */
|
||||
unsigned MMUGCR; /* 0x00CC */
|
||||
#ifdef _little_endian__
|
||||
#ifdef __little_endian__
|
||||
unsigned : 8U; /* 0x00D0 */
|
||||
unsigned PENA : 1U; /* 0x00D0 */
|
||||
unsigned : 7U; /* 0x00D0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue