From: rtel Date: Wed, 15 Oct 2014 21:01:31 +0000 (+0000) Subject: Core kernel code: X-Git-Tag: V8.2.0rc1~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=848e93f82db671b616ba01196c539ebea2df891c;p=freertos Core kernel code: Allow the stats formatting functions to be built in without stdio.h being included inside tasks.c. Kernel port code: - Slight change to the Cortex-A GIC-less port to move all non portable code to the application level. SAMA5D4 demo project: - Update the Atmel provided library to V1.1. - Create a DDR build configuration. - Ensure interrupts are all edge sensitive. - Update the regtest code to use all 32 flop registers. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2313 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/common/core/USBDescriptors.c b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/common/core/USBDescriptors.c index 80cd4e0c0..963103fc7 100644 --- a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/common/core/USBDescriptors.c +++ b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/common/core/USBDescriptors.c @@ -186,8 +186,6 @@ uint8_t *pc1, *pc2; usTemp = ( ( *pc2 ) << 8 ) | *pc1; return usTemp; -#warning The above code replaces the line below to ensure aborts are not received due to unaligned accesses. Alternatively use the --no_unaligned_access compiler option. - //return endpoint->wMaxPacketSize; } /** @@ -208,15 +206,9 @@ uint8_t USBEndpointDescriptor_GetInterval( * \param configuration Pointer to a USBConfigurationDescriptor instance. * \return Total length (in bytes) of the configuration. */ -volatile unsigned long ulCount = 0; uint32_t USBConfigurationDescriptor_GetTotalLength( const USBConfigurationDescriptor *configuration) { -ulCount++; -if( ulCount == 5 ) -{ - __asm volatile( "NOP" ); -} return configuration->wTotalLength; } diff --git a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/device/core/USBDCallbacks.c b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/device/core/USBDCallbacks.c index 3b892b9d4..1796d35e6 100644 --- a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/device/core/USBDCallbacks.c +++ b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/device/core/USBDCallbacks.c @@ -54,7 +54,6 @@ WEAK void USBDCallbacks_Initialized(void) { /* Does nothing */ - __asm volatile( "NOP" ); } /** diff --git a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/FreeRTOS_tick_config.c b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/FreeRTOS_tick_config.c index 51fcba4a8..33ebf0b8e 100644 --- a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/FreeRTOS_tick_config.c +++ b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/FreeRTOS_tick_config.c @@ -114,7 +114,7 @@ void vConfigureTickInterrupt( void ) is shared with other system peripherals, so System_Handler() must be installed in place of FreeRTOS_Tick_Handler() if other system handlers are required. The tick must be given the lowest priority (0 in the SAMA5 AIC) */ - IRQ_ConfigureIT( ID_PIT, 0, FreeRTOS_Tick_Handler ); + IRQ_ConfigureIT( ID_PIT, AIC_SMR_SRCTYPE_EXT_POSITIVE_EDGE, FreeRTOS_Tick_Handler ); /* See commend directly above IRQ_ConfigureIT( ID_PIT, 0, System_Handler ); */ IRQ_EnableIT( ID_PIT ); PIT_EnableIT(); diff --git a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/RTOSDemo.ewp b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/RTOSDemo.ewp index 4a2a07c4b..a83ecc1c5 100644 --- a/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/RTOSDemo.ewp +++ b/FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/RTOSDemo.ewp @@ -214,7 +214,7 @@