]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Cleanup of MCU driver for Cortex R4.
authormaek <devnull@localhost>
Wed, 1 Dec 2010 10:34:44 +0000 (11:34 +0100)
committermaek <devnull@localhost>
Wed, 1 Dec 2010 10:34:44 +0000 (11:34 +0100)
arch/arm/arm_cr4/drivers/Mcu.c

index f953cda26cfe1da3c1524fa8be41169c4053781f..0b39c8f60a8320c8bb7ef749edc59cd5da5ba599 100644 (file)
@@ -172,15 +172,6 @@ core_info_t core_info_list[] = {
     },\r
 };\r
 \r
-\r
-\r
-static core_info_t *Mcu_IdentifyCore(uint32 pvr)\r
-{\r
-\r
-\r
-  return NULL;\r
-}\r
-\r
 /**\r
  * Identify the core, just to check that we have support for it.\r
  *\r
@@ -193,14 +184,6 @@ static uint32 Mcu_CheckCpu( void ) {
 }\r
 \r
 \r
-/**\r
-  * Set bus clocks. SysClk,AHBClk,APB1Clk,APB2Clk\r
-  */\r
-static void SetClocks(Mcu_ClockSettingConfigType *clockSettingsPtr)\r
-{\r
-\r
-}\r
-\r
 /**\r
   * Initialize Peripherals clocks\r
   */\r
@@ -496,13 +479,14 @@ uint32_t McuE_GetSystemClock(void)
 \r
 imask_t McuE_EnterCriticalSection()\r
 {\r
-       McuE_DisableInterrupts();\r
-       return 0;\r
+       imask_t state;\r
+       Irq_Save(state);\r
+       return state;\r
 }\r
 \r
 void McuE_ExitCriticalSection(uint32_t old_state)\r
 {\r
-       McuE_EnableInterrupts();\r
+       Irq_Restore(old_state);\r
 }\r
 \r
 /**\r
@@ -526,12 +510,3 @@ void Mcu_ConfigureFlash(void)
 \r
 }\r
 \r
-void McuE_EnableInterrupts(void)\r
-{\r
-  Irq_Enable();\r
-}\r
-\r
-void McuE_DisableInterrupts(void)\r
-{\r
-  Irq_Disable();\r
-}\r