Skip to content

Commit

Permalink
Update to v1.3 Now supporting mbed boards
Browse files Browse the repository at this point in the history
  • Loading branch information
kosme committed Dec 5, 2017
1 parent bb07a0f commit 7ace806
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.project
/sync.ffs_db
*.*bak
16 changes: 16 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ Windowing KEYWORD2
Exponent KEYWORD2
Revision KEYWORD2
MajorPeak KEYWORD2

#######################################
# Constants (LITERAL1)
#######################################

twoPi LITERAL1
fourPi LITERAL1
FFT_FORWARD LITERAL1
FFT_REVERSE LITERAL1
FFT_WIN_TYP_RECTANGLE LITERAL1
FFT_WIN_TYP_HAMMING LITERAL1
FFT_WIN_TYP_HANN LITERAL1
FFT_WIN_TYP_TRIANGLE LITERAL1
FFT_WIN_TYP_BLACKMAN LITERAL1
FFT_WIN_TYP_FLT_TOP LITERAL1
FFT_WIN_TYP_WELCH LITERAL1
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name=arduinoFFT
version=1.2.3
version=1.3
author=kosme <enrique@shapeoko.com>
maintainer=Enrique Condes <enrique@shapeoko.com>
sentence=A library for implementing Fast Fourier Transform on Arduino.
sentence=A library for implementing floating point Fast Fourier Transform calculations on Arduino.
paragraph=With this library you can calculate the frequency of a sampled signal.
category=Data Processing
url=https://github.com/kosme/arduinoFFT
Expand Down
4 changes: 3 additions & 1 deletion src/arduinoFFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
#else
#include <stdlib.h>
#include <stdio.h>
#include <avr/io.h>
#ifdef __AVR__
#include <avr/io.h>
#endif
#include <math.h>
#include "defs.h"
#include "types.h"
Expand Down
26 changes: 15 additions & 11 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@ typedef signed long s32;
typedef unsigned long long u64;
typedef signed long long s64;

/* use inttypes.h instead
// C99 standard integer type definitions
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned long uint32_t;
typedef signed long int32_t;
typedef unsigned long uint64_t;
typedef signed long int64_t;
*/
// #ifndef __AVR__
#ifdef __MBED__
// use inttypes.h instead
// C99 standard integer type definitions
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
/*typedef unsigned long uint32_t;
typedef signed long int32_t;
typedef unsigned long uint64_t;
typedef signed long int64_t;
*/
#endif

// maximum value that can be held
// by unsigned data types (8,16,32bits)
#define MAX_U08 255
Expand Down

0 comments on commit 7ace806

Please sign in to comment.