modified ne10_init function
authoryang <yang.zhang@arm.com>
Wed, 10 Oct 2012 06:48:18 +0000 (14:48 +0800)
committeryang <yang.zhang@arm.com>
Wed, 10 Oct 2012 06:48:18 +0000 (14:48 +0800)
modules/NE10_init.c

index f4a3038..7272b13 100644 (file)
  *  limitations under the License.
  */
 
-#include "NE10.h"
-
 #include <stdio.h>
 #include <string.h>
 
+#include "NE10.h"
+
 #define CPUINFO_BUFFER_SIZE  (1024*4)
 
 // This local variable indicates whether or not the running platform supports ARM NEON
@@ -64,8 +64,8 @@ ne10_result_t ne10_init()
     }
 #endif
 
-#if defined (NE10_ENABLE_MATH)
-    ne10_init_dsp (is_NEON_available);
+#if defined (NE10_ENABLE_DSP)
+    status = ne10_init_dsp (is_NEON_available);
     if (status != NE10_OK)
     {
         fprintf(stderr, "ERROR: init dsp failed\n");