-/*This file has been prepared for Doxygen automatic documentation generation.*/\r
+/*This file is prepared for Doxygen automatic documentation generation.*/\r
/*! \file *********************************************************************\r
*\r
* \brief FreeRTOS demonstration for AVR32 UC3.\r
* - AppNote:\r
*\r
* \author Atmel Corporation: http://www.atmel.com \n\r
- * Support email: avr32@atmel.com\r
+ * Support and FAQ: http://support.atmel.no/\r
*\r
- *****************************************************************************/\r
+ ******************************************************************************/\r
\r
/* Copyright (c) 2007, Atmel Corporation All rights reserved.\r
*\r
* application requirements.\r
*\r
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
- * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.\r
+ * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. \r
+ *\r
+ * See http://www.freertos.org/a00110.html.\r
*----------------------------------------------------------*/\r
\r
#define configUSE_PREEMPTION 1\r
#define configPBA_CLOCK_HZ ( FOSC0 )\r
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )\r
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 )\r
-#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 )\r
-#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*30 ) )\r
+#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )\r
+/* configTOTAL_HEAP_SIZE is not used when heap_3.c is used. */\r
+#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*25 ) )\r
#define configMAX_TASK_NAME_LEN ( 16 )\r
#define configUSE_TRACE_FACILITY 0\r
#define configUSE_16_BIT_TICKS 0\r
/* Set the following definitions to 1 to include the API function, or zero\r
to exclude the API function. */\r
\r
-#define INCLUDE_vTaskPrioritySet 1\r
-#define INCLUDE_uxTaskPriorityGet 1\r
-#define INCLUDE_vTaskDelete 1\r
-#define INCLUDE_vTaskCleanUpResources 0\r
-#define INCLUDE_vTaskSuspend 1\r
-#define INCLUDE_vTaskDelayUntil 1\r
-#define INCLUDE_vTaskDelay 1\r
+#define INCLUDE_vTaskPrioritySet 1\r
+#define INCLUDE_uxTaskPriorityGet 1\r
+#define INCLUDE_vTaskDelete 1\r
+#define INCLUDE_vTaskCleanUpResources 0\r
+#define INCLUDE_vTaskSuspend 1\r
+#define INCLUDE_vTaskDelayUntil 1\r
+#define INCLUDE_vTaskDelay 1\r
+#define INCLUDE_xTaskGetCurrentTaskHandle 0\r
+#define INCLUDE_xTaskGetSchedulerState 1\r
\r
/* configTICK_USE_TC is a boolean indicating whether to use a Timer Counter\r
for the tick generation. Timer Counter will generate an accurate Tick;\r
otherwise the CPU will generate a tick but with time drift.\r
- configTICK_TC_CHANNEL is the TC channel.*/\r
+ configTICK_TC_CHANNEL is the TC channel. */\r
#define configTICK_USE_TC 1\r
#define configTICK_TC_CHANNEL 2\r
\r
+/* configHEAP_INIT is a boolean indicating whether to initialize the heap with\r
+ 0xA5 in order to be able to determine the maximal heap consumption. */\r
+#define configHEAP_INIT 0\r
+\r
/* Debug trace configuration.\r
configDBG is a boolean indicating whether to activate the debug trace. */\r
+#if BOARD == EVK1100\r
#define configDBG 1\r
#define configDBG_USART (&AVR32_USART1)\r
#define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_PIN\r
#define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_PIN\r
#define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_FUNCTION\r
#define configDBG_USART_BAUDRATE 57600\r
+#define serialPORT_USART (&AVR32_USART0)\r
+#define serialPORT_USART_RX_PIN AVR32_USART0_RXD_0_PIN\r
+#define serialPORT_USART_RX_FUNCTION AVR32_USART0_RXD_0_FUNCTION\r
+#define serialPORT_USART_TX_PIN AVR32_USART0_TXD_0_PIN\r
+#define serialPORT_USART_TX_FUNCTION AVR32_USART0_TXD_0_FUNCTION\r
+#define serialPORT_USART_IRQ AVR32_USART0_IRQ\r
+#define serialPORT_USART_BAUDRATE 57600\r
+#elif BOARD == EVK1101\r
+#define configDBG 1\r
+#define configDBG_USART (&AVR32_USART1)\r
+#define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN\r
+#define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION\r
+#define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN\r
+#define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION\r
+#define configDBG_USART_BAUDRATE 57600\r
+#define serialPORT_USART (&AVR32_USART1)\r
+#define serialPORT_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN\r
+#define serialPORT_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION\r
+#define serialPORT_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN\r
+#define serialPORT_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION\r
+#define serialPORT_USART_IRQ AVR32_USART1_IRQ\r
+#define serialPORT_USART_BAUDRATE 57600\r
+#endif\r
+\r
\r
#endif /* FREERTOS_CONFIG_H */\r