LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LPC43xx startup code for dual-core demos

Detailed Description

Example description
The main tasks for the M0 and M4 cores are processed from here.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC18xx/43xx example quickstart for Keil uVision4
LPC18xx/43xx example quickstart for IAR EWARM
LPC18xx/43xx example quickstart for Code Red Xpresso

Supported boards and board setup:
Hitex 1850 evaluation boards
Hitex 4350 evaluation boards
Keil 1857 evaluation boards
Keil 4357 evaluation boards
NGX 1830 Xplorer boards
NGX 4330 Xplorer boards

Submitting LPCOpen issues:
Community support for LPCOpen

Macros

#define M0_IMAGE_ADDR   (IMAGE_BASE_ADDR + M0_IMAGE_OFFSET)
 

Functions

static void prvSetupHardware (void)
 
static void main_tasks (void)
 
void MSleep (int32_t msecs)
 Millisecond sleep.
 
int main (void)
 Main for dual core examples.
 

Macro Definition Documentation

#define M0_IMAGE_ADDR   (IMAGE_BASE_ADDR + M0_IMAGE_OFFSET)

Definition at line 80 of file main.c.

Function Documentation

int main ( void  )

Main for dual core examples.

Main program body.

Entry point for all the dual core examples. All the dual core example execution starts from this function, it is common for code that runs on core-M4 and core-M0.

Returns
Function should not return.

Definition at line 242 of file main.c.

static void main_tasks ( void  )
static

Definition at line 163 of file main.c.

void MSleep ( int32_t  msecs)

Millisecond sleep.

Calling this function will sleep for msec number of milli seconds by a busy wait loop. This function uses the RITIMER in LPC43XX to calculate the time lapsed.

Parameters
msecs: Number of milli seconds to sleep
Returns
None

Definition at line 215 of file main.c.

static void prvSetupHardware ( void  )
static

Definition at line 99 of file main.c.