00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00014 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00015 * 00016 * Redistribution and use in source and binary forms, with or without 00017 * modification, are permitted provided that the following conditions are met: 00018 * 00019 * 1. Redistributions of source code must retain the above copyright notice, this 00020 * list of conditions and the following disclaimer. 00021 * 00022 * 2. Redistributions in binary form must reproduce the above copyright notice, 00023 * this list of conditions and the following disclaimer in the documentation 00024 * and/or other materials provided with the distribution. 00025 * 00026 * 3. The name of Atmel may not be used to endorse or promote products derived 00027 * from this software without specific prior written permission. 00028 * 00029 * 4. This software may only be redistributed and used in connection with an Atmel 00030 * AVR product. 00031 * 00032 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00033 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00034 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00035 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00036 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00037 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00038 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00039 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00040 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00041 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00042 * 00043 */ 00044 #include "sinus.h" 00045 00046 U16 sin_table[SINUS_SAMPLES] = { 00047 2222, 00048 2412, 00049 2601, 00050 2785, 00051 2963, 00052 3133, 00053 3293, 00054 3441, 00055 3576, 00056 3696, 00057 3799, 00058 3886, 00059 3954, 00060 4003, 00061 4032, 00062 4042, 00063 4032, 00064 4002, 00065 3952, 00066 3883, 00067 3796, 00068 3692, 00069 3571, 00070 3436, 00071 3287, 00072 3127, 00073 2957, 00074 2778, 00075 2594, 00076 2405, 00077 2215, 00078 2024, 00079 1836, 00080 1652, 00081 1474, 00082 1305, 00083 1145, 00084 997, 00085 863, 00086 744, 00087 641, 00088 555, 00089 488, 00090 439, 00091 410, 00092 401, 00093 413, 00094 444, 00095 494, 00096 563, 00097 651, 00098 756, 00099 877, 00100 1013, 00101 1162, 00102 1323, 00103 1493, 00104 1672, 00105 1856, 00106 2045 00107 }; 00108