Update PIC32 demo application to remove reliance on PLIB functions.

Update the default low power implementation in all the Cortex-M port layers to add a small critical section.
This commit is contained in:
Richard Barry 2013-02-18 16:41:11 +00:00
parent c519ba094d
commit 902f9e1a58
22 changed files with 649 additions and 156 deletions

View file

@ -85,6 +85,9 @@
/* Standard demo includes. */
#include "partest.h"
/* Hardware specific includes. */
#include "ConfigPerformance.h"
/* Core configuratin fuse settings */
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_2
@ -146,12 +149,11 @@ int main( void )
static void prvSetupHardware( void )
{
/* Set the system and peripheral bus speeds and enable the program cache*/
SYSTEMConfigPerformance( configCPU_CLOCK_HZ - 1 );
mOSCSetPBDIV( OSC_PB_DIV_2 );
/* Configure the hardware for maximum performance. */
vHardwareConfigurePerformance();
/* Setup to use the external interrupt controller. */
INTEnableSystemMultiVectoredInt();
vHardwareUseMultiVectoredInterrupts();
portDISABLE_INTERRUPTS();