LPCOpen Platform
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

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.
 

Detailed Description

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

Build procedure: LPCOpen 18xx/43xx build instructions

Submit bug reports for LPCOpen code here.

Macro Definition Documentation

#define M0_IMAGE_ADDR   (IMAGE_BASE_ADDR + M0_IMAGE_OFFSET)

Definition at line 65 of file main.c.

Function Documentation

int main ( void  )

Main for dual core examples.

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 213 of file main.c.

static void main_tasks ( void  )
static

Definition at line 126 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 186 of file main.c.

static void prvSetupHardware ( void  )
static

Definition at line 76 of file main.c.