First Publish. Works fine.

Dependents:   unzen_sample_LPC4088_quickstart

Revision:
3:707608830793
Parent:
2:6613e62da521
Child:
14:bdf11487a94b
--- a/unzen_hal.cpp	Tue May 03 01:10:32 2016 +0000
+++ b/unzen_hal.cpp	Tue May 03 07:44:49 2016 +0000
@@ -146,9 +146,11 @@
     unsigned int hal_get_i2s_irq_priority_level(void)
     {
            // LPC4300 has 3 bits priority field. So, heighest is 0, lowest is 7.
-           // setting 1 as i2s irq priority allows, some other interrupts are higher 
+           // But CMSIS NVIC_SetPriority() inverse the priority of the interupt ( F**k! )
+           // So, 7 is heighest, 0 is lowerest in CMSIS.
+           // setting 6 as i2s irq priority allows, some other interrupts are higher 
            // and some others are lower than i2s irq priority.
-        return 1;
+        return 6;
     }
 
 
@@ -156,9 +158,11 @@
     unsigned int hal_get_process_irq_priority_level(void)
     {
            // LPC4300 has 3 bits priority field. So, heighest is 0, lowest is 7.
-           // setting 7 as process priority allows, some other interrupts are higher 
+           // But CMSIS NVIC_SetPriority() inverse the priority of the interupt ( S**t! )
+           // So, 7 is heighest, 0 is lowerest in CMSIS.
+           // setting 1 as process priority allows, some other interrupts are higher 
            // and some other interrupts are lower then process priority.
-        return 6;   
+        return 1;   
     }
  
         // LPC4337 transferes 2 workd ( left and right ) for each interrupt.