+++ /dev/null
-/*\r
- FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd.\r
-\r
- This file is part of the FreeRTOS distribution.\r
-\r
- FreeRTOS is free software; you can redistribute it and/or modify it under \r
- the terms of the GNU General Public License (version 2) as published by the \r
- Free Software Foundation and modified by the FreeRTOS exception.\r
- **NOTE** The exception to the GPL is included to allow you to distribute a\r
- combined work that includes FreeRTOS without being obliged to provide the \r
- source code for proprietary components outside of the FreeRTOS kernel. \r
- Alternative commercial license and support terms are also available upon \r
- request. See the licensing section of http://www.FreeRTOS.org for full \r
- license details.\r
-\r
- FreeRTOS is distributed in the hope that it will be useful, but WITHOUT\r
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
- more details.\r
-\r
- You should have received a copy of the GNU General Public License along\r
- with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59\r
- Temple Place, Suite 330, Boston, MA 02111-1307 USA.\r
-\r
-\r
- ***************************************************************************\r
- * *\r
- * Looking for a quick start? Then check out the FreeRTOS eBook! *\r
- * See http://www.FreeRTOS.org/Documentation for details *\r
- * *\r
- ***************************************************************************\r
-\r
- 1 tab == 4 spaces!\r
-\r
- Please ensure to read the configuration and relevant port sections of the\r
- online documentation.\r
-\r
- http://www.FreeRTOS.org - Documentation, latest information, license and\r
- contact details.\r
-\r
- http://www.SafeRTOS.com - A version that is certified for use in safety\r
- critical systems.\r
-\r
- http://www.OpenRTOS.com - Commercial support, development, porting,\r
- licensing and training services.\r
-*/\r
-\r
-#ifndef FREERTOS_CONFIG_H\r
-#define FREERTOS_CONFIG_H\r
-\r
-/*-----------------------------------------------------------\r
- * Application specific definitions.\r
- *\r
- * These definitions should be adjusted for your particular hardware and\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
- *\r
- * See http://www.freertos.org/a00110.html.\r
- *----------------------------------------------------------*/\r
-\r
-#define configUSE_PREEMPTION 1\r
-#define configUSE_IDLE_HOOK 0\r
-#define configUSE_TICK_HOOK 1\r
-#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 62500000 )\r
-#define configTICK_RATE_HZ ( ( portTickType ) 1000 )\r
-#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )\r
-#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 )\r
-#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 30 * 1024 ) )\r
-#define configMAX_TASK_NAME_LEN ( 16 )\r
-#define configUSE_TRACE_FACILITY 1\r
-#define configUSE_16_BIT_TICKS 0\r
-#define configIDLE_SHOULD_YIELD 1\r
-\r
-/* Co-routine definitions. */\r
-#define configUSE_CO_ROUTINES 0\r
-#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
-\r
-#define configUSE_MUTEXES 1\r
-#define configUSE_COUNTING_SEMAPHORES 0\r
-#define configUSE_ALTERNATIVE_API 0\r
-#define configCHECK_FOR_STACK_OVERFLOW 2\r
-#define configUSE_RECURSIVE_MUTEXES 1\r
-#define configQUEUE_REGISTRY_SIZE 0\r
-#define configGENERATE_RUN_TIME_STATS 1\r
-\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
-\r
-/* This is the raw value as per the Cortex-M3 NVIC. Values can be 255\r
-(lowest) to 0 (1?) (highest). */\r
-#define configKERNEL_INTERRUPT_PRIORITY 255\r
-#define configMAX_SYSCALL_INTERRUPT_PRIORITY 191 /* equivalent to 0xb0, or priority 11. */\r
-\r
-\r
-/* This is the value being used as per the ST library which permits 16\r
-priority values, 0 to 15. This must correspond to the\r
-configKERNEL_INTERRUPT_PRIORITY setting. Here 15 corresponds to the lowest\r
-NVIC value of 255. */\r
-#define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15\r
-\r
-/*-----------------------------------------------------------\r
- * Ethernet configuration.\r
- *-----------------------------------------------------------*/\r
-\r
-/* MAC address configuration. */\r
-#define configMAC_ADDR0 0x00\r
-#define configMAC_ADDR1 0x12\r
-#define configMAC_ADDR2 0x13\r
-#define configMAC_ADDR3 0x10\r
-#define configMAC_ADDR4 0x15\r
-#define configMAC_ADDR5 0x11\r
-\r
-/* IP address configuration. */\r
-#define configIP_ADDR0 172\r
-#define configIP_ADDR1 25\r
-#define configIP_ADDR2 218\r
-#define configIP_ADDR3 202\r
-\r
-/* Netmask configuration. */\r
-#define configNET_MASK0 255\r
-#define configNET_MASK1 255\r
-#define configNET_MASK2 255\r
-#define configNET_MASK3 0\r
-\r
-\r
-/*-----------------------------------------------------------\r
- * Macros required to setup the timer for the run time stats.\r
- *-----------------------------------------------------------*/\r
-/* The run time stats time base just uses the existing high frequency timer\r
-test clock. All these macros do is clear and return the high frquency\r
-interrupt count respectively. */\r
-extern unsigned long ulRunTimeStatsClock;\r
-#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ulRunTimeStatsClock = 0\r
-#define portGET_RUN_TIME_COUNTER_VALUE() ulRunTimeStatsClock\r
-\r
-\r
-#endif /* FREERTOS_CONFIG_H */\r
-\r
<ClCompile Include="Run-time-stats-utils.c" />\r
</ItemGroup>\r
<ItemGroup>\r
+ <ClInclude Include="..\..\Source\include\event_groups.h" />\r
<ClInclude Include="..\..\Source\include\timers.h" />\r
- <ClInclude Include="..\..\Source\include\timer_test.h" />\r
<ClInclude Include="..\..\Source\portable\MSVC-MingW\portmacro.h" />\r
<ClInclude Include="FreeRTOSConfig.h" />\r
<ClInclude Include="..\..\Source\include\croutine.h" />\r
<ClInclude Include="..\..\Source\include\timers.h">\r
<Filter>FreeRTOS Source\Include</Filter>\r
</ClInclude>\r
- <ClInclude Include="..\..\Source\include\timer_test.h">\r
- <Filter>FreeRTOS Source\Include</Filter>\r
- </ClInclude>\r
<ClInclude Include="Trace_Recorder_Configuration\trcHardwarePort.h">\r
<Filter>Configuration Files</Filter>\r
</ClInclude>\r
<ClInclude Include="Trace_Recorder_Configuration\trcConfig.h">\r
<Filter>Configuration Files</Filter>\r
</ClInclude>\r
+ <ClInclude Include="..\..\Source\include\event_groups.h">\r
+ <Filter>FreeRTOS Source\Include</Filter>\r
+ </ClInclude>\r
</ItemGroup>\r
</Project>
\ No newline at end of file
direct use from application code, hence their prototypes are not in queue.h. */\r
extern void vQueueSetQueueNumber( xQueueHandle pxQueue, unsigned portBASE_TYPE uxQueueNumber );\r
extern unsigned portBASE_TYPE uxQueueGetQueueNumber( xQueueHandle pxQueue );\r
-extern unsigned char ucQueueGetQueueType( xQueueHandle pxQueue );\r
+extern uint8_t ucQueueGetQueueType( xQueueHandle pxQueue );\r
extern void vTaskSetTaskNumber( xTaskHandle xTask, unsigned portBASE_TYPE uxHandle );\r
extern unsigned portBASE_TYPE uxTaskGetTaskNumber( xTaskHandle xTask );\r
\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_US_SetIrdaFilter (\r
AT91PS_USART pUSART,\r
- uint8_t value\r
+ unsigned char value\r
)\r
{\r
pUSART->US_IF = value;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_SetAddress (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t address) // \arg new UDP address\r
+ unsigned char address) // \arg new UDP address\r
{\r
pUDP->UDP_FADDR = (AT91C_UDP_FEN | address);\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EnableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_DisableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] &= ~AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpStall(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_FORCESTALL;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpWrite(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
- uint8_t value) // \arg value to be written in the DPR\r
+ unsigned char endpoint, // \arg endpoint number\r
+ unsigned char value) // \arg value to be written in the DPR\r
{\r
pUDP->UDP_FDR[endpoint] = value;\r
}\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpRead(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_FDR[endpoint];\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpEndOfWr(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_TXPKTRDY;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpClear(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] &= ~(flag);\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpSet(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] |= flag;\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpStatus(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_CSR[endpoint];\r
}\r
__inline void AT91F_CAN_CfgMessageIDReg (\r
AT91PS_CAN_MB CAN_Mailbox, // pointer to a CAN Mailbox\r
unsigned int id,\r
- uint8_t version)\r
+ unsigned char version)\r
{\r
if(version==0) // IDvA Standard Format\r
CAN_Mailbox->CAN_MB_MID = id<<18;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetCryptoKey (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_InputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_AES_GetOutputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pAES->AES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetInitializationVector (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey1 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey2 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey3 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_InputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_TDES_GetOutputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pTDES->TDES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetInitializationVector (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_US_SetIrdaFilter (\r
AT91PS_USART pUSART,\r
- uint8_t value\r
+ unsigned char value\r
)\r
{\r
pUSART->US_IF = value;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_SetAddress (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t address) // \arg new UDP address\r
+ unsigned char address) // \arg new UDP address\r
{\r
pUDP->UDP_FADDR = (AT91C_UDP_FEN | address);\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpStall(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_FORCESTALL;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpWrite(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
- uint8_t value) // \arg value to be written in the DPR\r
+ unsigned char endpoint, // \arg endpoint number\r
+ unsigned char value) // \arg value to be written in the DPR\r
{\r
pUDP->UDP_FDR[endpoint] = value;\r
}\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpRead(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_FDR[endpoint];\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpEndOfWr(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_TXPKTRDY;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpClear(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] &= ~(flag);\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpSet(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] |= flag;\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpStatus(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_CSR[endpoint];\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_US_SetIrdaFilter (\r
AT91PS_USART pUSART,\r
- uint8_t value\r
+ unsigned char value\r
)\r
{\r
pUSART->US_IF = value;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_SetAddress (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t address) // \arg new UDP address\r
+ unsigned char address) // \arg new UDP address\r
{\r
pUDP->UDP_FADDR = (AT91C_UDP_FEN | address);\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EnableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_DisableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] &= ~AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpStall(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_FORCESTALL;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpWrite(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
- uint8_t value) // \arg value to be written in the DPR\r
+ unsigned char endpoint, // \arg endpoint number\r
+ unsigned char value) // \arg value to be written in the DPR\r
{\r
pUDP->UDP_FDR[endpoint] = value;\r
}\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpRead(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_FDR[endpoint];\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpEndOfWr(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_TXPKTRDY;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpClear(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] &= ~(flag);\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpSet(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] |= flag;\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpStatus(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_CSR[endpoint];\r
}\r
__inline void AT91F_CAN_CfgMessageIDReg (\r
AT91PS_CAN_MB CAN_Mailbox, // pointer to a CAN Mailbox\r
unsigned int id,\r
- uint8_t version)\r
+ unsigned char version)\r
{\r
if(version==0) // IDvA Standard Format\r
CAN_Mailbox->CAN_MB_MID = id<<18;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetCryptoKey (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_InputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_AES_GetOutputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pAES->AES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetInitializationVector (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey1 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey2 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey3 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_InputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_TDES_GetOutputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pTDES->TDES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetInitializationVector (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_US_SetIrdaFilter (\r
AT91PS_USART pUSART,\r
- uint8_t value\r
+ unsigned char value\r
)\r
{\r
pUSART->US_IF = value;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_SetAddress (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t address) // \arg new UDP address\r
+ unsigned char address) // \arg new UDP address\r
{\r
pUDP->UDP_FADDR = (AT91C_UDP_FEN | address);\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EnableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_DisableEp (\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] &= ~AT91C_UDP_EPEDS;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpStall(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_FORCESTALL;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpWrite(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
- uint8_t value) // \arg value to be written in the DPR\r
+ unsigned char endpoint, // \arg endpoint number\r
+ unsigned char value) // \arg value to be written in the DPR\r
{\r
pUDP->UDP_FDR[endpoint] = value;\r
}\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpRead(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_FDR[endpoint];\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpEndOfWr(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
pUDP->UDP_CSR[endpoint] |= AT91C_UDP_TXPKTRDY;\r
}\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpClear(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] &= ~(flag);\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_UDP_EpSet(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint, // \arg endpoint number\r
+ unsigned char endpoint, // \arg endpoint number\r
unsigned int flag) // \arg flag to be cleared\r
{\r
pUDP->UDP_CSR[endpoint] |= flag;\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_UDP_EpStatus(\r
AT91PS_UDP pUDP, // \arg pointer to a UDP controller\r
- uint8_t endpoint) // \arg endpoint number\r
+ unsigned char endpoint) // \arg endpoint number\r
{\r
return pUDP->UDP_CSR[endpoint];\r
}\r
__inline void AT91F_CAN_CfgMessageIDReg (\r
AT91PS_CAN_MB CAN_Mailbox, // pointer to a CAN Mailbox\r
unsigned int id,\r
- uint8_t version)\r
+ unsigned char version)\r
{\r
if(version==0) // IDvA Standard Format\r
CAN_Mailbox->CAN_MB_MID = id<<18;\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetCryptoKey (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_InputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_AES_GetOutputData (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pAES->AES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_AES_SetInitializationVector (\r
AT91PS_AES pAES, // pointer to a AES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey1 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey2 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetCryptoKey3 (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int keyword\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_InputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int indata\r
)\r
{\r
//*----------------------------------------------------------------------------\r
__inline unsigned int AT91F_TDES_GetOutputData (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index\r
+ unsigned char index\r
)\r
{\r
return pTDES->TDES_ODATAxR[index]; \r
//*----------------------------------------------------------------------------\r
__inline void AT91F_TDES_SetInitializationVector (\r
AT91PS_TDES pTDES, // pointer to a TDES controller\r
- uint8_t index,\r
+ unsigned char index,\r
unsigned int initvector\r
)\r
{\r