mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Updated AVR32 demos and added AVR32 UC3B demo.
This commit is contained in:
parent
45e7e5ac55
commit
94c94d3c0e
164 changed files with 21458 additions and 3994 deletions
|
@ -1,4 +1,4 @@
|
|||
/*This file has been prepared for Doxygen automatic documentation generation.*/
|
||||
/*This file is prepared for Doxygen automatic documentation generation.*/
|
||||
/*! \file *********************************************************************
|
||||
*
|
||||
* \brief FreeRTOS demonstration for AVR32 UC3.
|
||||
|
@ -8,9 +8,9 @@
|
|||
* - AppNote:
|
||||
*
|
||||
* \author Atmel Corporation: http://www.atmel.com \n
|
||||
* Support email: avr32@atmel.com
|
||||
* Support and FAQ: http://support.atmel.no/
|
||||
*
|
||||
*****************************************************************************/
|
||||
******************************************************************************/
|
||||
|
||||
/* Copyright (c) 2007, Atmel Corporation All rights reserved.
|
||||
*
|
||||
|
@ -64,7 +64,7 @@
|
|||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*30 ) )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*25 ) )
|
||||
#define configMAX_TASK_NAME_LEN ( 16 )
|
||||
#define configUSE_TRACE_FACILITY 0
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
|
@ -77,23 +77,29 @@
|
|||
/* Set the following definitions to 1 to include the API function, or zero
|
||||
to exclude the API function. */
|
||||
|
||||
#define INCLUDE_vTaskPrioritySet 1
|
||||
#define INCLUDE_uxTaskPriorityGet 1
|
||||
#define INCLUDE_vTaskDelete 1
|
||||
#define INCLUDE_vTaskCleanUpResources 0
|
||||
#define INCLUDE_vTaskSuspend 1
|
||||
#define INCLUDE_vTaskDelayUntil 1
|
||||
#define INCLUDE_vTaskDelay 1
|
||||
#define INCLUDE_vTaskPrioritySet 1
|
||||
#define INCLUDE_uxTaskPriorityGet 1
|
||||
#define INCLUDE_vTaskDelete 1
|
||||
#define INCLUDE_vTaskCleanUpResources 0
|
||||
#define INCLUDE_vTaskSuspend 1
|
||||
#define INCLUDE_vTaskDelayUntil 1
|
||||
#define INCLUDE_vTaskDelay 1
|
||||
#define INCLUDE_xTaskGetCurrentTaskHandle 0
|
||||
|
||||
/* configTICK_USE_TC is a boolean indicating whether to use a Timer Counter
|
||||
for the tick generation. Timer Counter will generate an accurate Tick;
|
||||
otherwise the CPU will generate a tick but with time drift.
|
||||
configTICK_TC_CHANNEL is the TC channel.*/
|
||||
configTICK_TC_CHANNEL is the TC channel. */
|
||||
#define configTICK_USE_TC 1
|
||||
#define configTICK_TC_CHANNEL 2
|
||||
|
||||
/* configHEAP_INIT is a boolean indicating whether to initialize the heap with
|
||||
0xA5 in order to be able to determine the maximal heap consumption. */
|
||||
#define configHEAP_INIT 0
|
||||
|
||||
/* Debug trace configuration.
|
||||
configDBG is a boolean indicating whether to activate the debug trace. */
|
||||
#if BOARD == EVK1100
|
||||
#define configDBG 1
|
||||
#define configDBG_USART (&AVR32_USART1)
|
||||
#define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_PIN
|
||||
|
@ -101,5 +107,29 @@ to exclude the API function. */
|
|||
#define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_PIN
|
||||
#define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_FUNCTION
|
||||
#define configDBG_USART_BAUDRATE 57600
|
||||
#define serialPORT_USART (&AVR32_USART0)
|
||||
#define serialPORT_USART_RX_PIN AVR32_USART0_RXD_0_PIN
|
||||
#define serialPORT_USART_RX_FUNCTION AVR32_USART0_RXD_0_FUNCTION
|
||||
#define serialPORT_USART_TX_PIN AVR32_USART0_TXD_0_PIN
|
||||
#define serialPORT_USART_TX_FUNCTION AVR32_USART0_TXD_0_FUNCTION
|
||||
#define serialPORT_USART_IRQ AVR32_USART0_IRQ
|
||||
#define serialPORT_USART_BAUDRATE 57600
|
||||
#elif BOARD == EVK1101
|
||||
#define configDBG 1
|
||||
#define configDBG_USART (&AVR32_USART1)
|
||||
#define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
|
||||
#define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
|
||||
#define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
|
||||
#define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
|
||||
#define configDBG_USART_BAUDRATE 57600
|
||||
#define serialPORT_USART (&AVR32_USART1)
|
||||
#define serialPORT_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
|
||||
#define serialPORT_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
|
||||
#define serialPORT_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
|
||||
#define serialPORT_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
|
||||
#define serialPORT_USART_IRQ AVR32_USART1_IRQ
|
||||
#define serialPORT_USART_BAUDRATE 57600
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* FREERTOS_CONFIG_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue