|
1 | | -/*This file has been prepared for Doxygen automatic documentation generation.*/ |
2 | | -/*! \file ********************************************************************* |
3 | | - * |
4 | | - * \brief FreeRTOS port source for AVR32 UC3. |
5 | | - * |
6 | | - * - Compiler: GNU GCC for AVR32 |
7 | | - * - Supported devices: All AVR32 devices can be used. |
8 | | - * - AppNote: |
9 | | - * |
10 | | - * \author Atmel Corporation (Now Microchip): |
11 | | - * https://www.microchip.com \n |
12 | | - * Support and FAQ: https://www.microchip.com/support/ |
13 | | - * |
14 | | - *****************************************************************************/ |
15 | | - |
16 | 1 | /* |
17 | 2 | * FreeRTOS Kernel <DEVELOPMENT BRANCH> |
18 | 3 | * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
19 | 4 | * |
| 5 | + * SPDX-License-Identifier: MIT AND BSD-3-Clause |
| 6 | + * |
20 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of |
21 | 8 | * this software and associated documentation files (the "Software"), to deal in |
22 | 9 | * the Software without restriction, including without limitation the rights to |
|
39 | 26 | * |
40 | 27 | */ |
41 | 28 |
|
| 29 | +/*This file has been prepared for Doxygen automatic documentation generation.*/ |
| 30 | +/*! \file ********************************************************************* |
| 31 | + * |
| 32 | + * \brief FreeRTOS port source for AVR32 UC3. |
| 33 | + * |
| 34 | + * - Compiler: GNU GCC for AVR32 |
| 35 | + * - Supported devices: All AVR32 devices can be used. |
| 36 | + * - AppNote: |
| 37 | + * |
| 38 | + * \author Atmel Corporation (Now Microchip): |
| 39 | + * https://www.microchip.com \n |
| 40 | + * Support and FAQ: https://www.microchip.com/support/ |
| 41 | + * |
| 42 | + *****************************************************************************/ |
| 43 | + |
| 44 | +/* |
| 45 | + * Copyright (c) 2007, Atmel Corporation All rights reserved. |
| 46 | + * |
| 47 | + * Redistribution and use in source and binary forms, with or without |
| 48 | + * modification, are permitted provided that the following conditions are met: |
| 49 | + * |
| 50 | + * 1. Redistributions of source code must retain the above copyright notice, |
| 51 | + * this list of conditions and the following disclaimer. |
| 52 | + * |
| 53 | + * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 54 | + * this list of conditions and the following disclaimer in the documentation |
| 55 | + * and/or other materials provided with the distribution. |
| 56 | + * |
| 57 | + * 3. The name of ATMEL may not be used to endorse or promote products derived |
| 58 | + * from this software without specific prior written permission. |
| 59 | + * |
| 60 | + * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 61 | + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 62 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND |
| 63 | + * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, |
| 64 | + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 65 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 66 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 67 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 68 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 69 | + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 70 | + */ |
42 | 71 |
|
43 | 72 | /* Standard includes. */ |
44 | 73 | #include <sys/cpu.h> |
@@ -327,7 +356,7 @@ clock cycles from now. */ |
327 | 356 | } |
328 | 357 | Set_system_register(AVR32_COMPARE, lCycles); |
329 | 358 | } |
330 | | - |
| 359 | + |
331 | 360 | __attribute__((__noinline__)) static void prvScheduleNextTick(void) |
332 | 361 | { |
333 | 362 | uint32_t lCycles, lCount; |
|
0 commit comments