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