Remove CPU build flags from driver

Using a cpu without proper interrupt handling is not really usefull in
this context, so remove that option.

Change-Id: Ie94fd9025c918eef72272e14ad5b0a95ea7dc4a4
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4589ef..b364716 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,26 +36,6 @@
 # Global settings
 #
 
-if(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m0")
-    add_compile_definitions(CPU_CORTEX_M0)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m1")
-    add_compile_definitions(CPU_CORTEX_M1)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m23")
-    add_compile_definitions(CPU_CORTEX_M23)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m3")
-    add_compile_definitions(CPU_CORTEX_M3)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m33")
-    add_compile_definitions(CPU_CORTEX_M33)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m4")
-    add_compile_definitions(CPU_CORTEX_M4)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m55")
-    add_compile_definitions(CPU_CORTEX_M55)
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m7")
-    add_compile_definitions(CPU_CORTEX_M7)
-else()
-    message(FATAL_ERROR "Unsupported compiler ${CMAKE_SYSTEM_PROCESSOR}.")
-endif()
-
 # Check that ETHOSU_LOG_SEVERITY has one of the supported levels
 list(FIND LOG_NAMES ${ETHOSU_LOG_SEVERITY} LOG_SEVERITY)
 if (${LOG_SEVERITY} EQUAL -1)
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index 3b6ebcf..4d396cf 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -155,8 +155,6 @@
 
 // IRQ
 static volatile bool irq_triggered = false;
-#if defined(CPU_CORTEX_M3) || defined(CPU_CORTEX_M4) || defined(CPU_CORTEX_M7) || defined(CPU_CORTEX_M33) ||           \
-    defined(CPU_CORTEX_M55)
 void ethosu_irq_handler(void)
 {
     uint8_t irq_raised = 0;
@@ -200,25 +198,6 @@
         __enable_irq();
     }
 }
-#else
-// Just polling the status register
-static inline void wait_for_irq(struct ethosu_driver *drv)
-{
-    uint8_t irq_raised = 0;
-
-    for (int i = 0; i < 5000; ++i)
-    {
-        (void)ethosu_is_irq_raised(&drv->dev, &irq_raised);
-        if (1 == irq_raised)
-        {
-            break;
-        }
-    }
-    ASSERT(1 == irq_raised);
-
-    irq_triggered = true;
-}
-#endif
 
 static int handle_optimizer_config(struct ethosu_driver *drv, struct opt_cfg_s *opt_cfg_p);
 static int handle_command_stream(struct ethosu_driver *drv,