mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
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:
parent
c519ba094d
commit
902f9e1a58
22 changed files with 649 additions and 156 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue