Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Code cleanup

  • Loading branch information...
commit c071c3c62bb271c2043cd7fed2473976f07177f5 1 parent 43d31b9
@naves-thiago authored
View
2  src/platform/str9/conf.lua
@@ -2,7 +2,7 @@
local cpumode = ( builder:get_option( 'cpumode' ) or 'arm' ):lower()
-specific_files = "startup912.s startup_generic.s platform.c 91x_scu.c 91x_fmi.c 91x_gpio.c 91x_uart.c 91x_tim.c 91x_vic.c interrupt.c str9_pio.c 91x_i2c.c 91x_wiu.c 91x_adc.c platform_int.c 91x_ssp.c"
+specific_files = "startup912.s startup_generic.s platform.c 91x_scu.c 91x_fmi.c 91x_gpio.c 91x_uart.c 91x_tim.c 91x_vic.c interrupt.c str9_pio.c 91x_i2c.c 91x_wiu.c 91x_adc.c platform_int.c 91x_ssp.c 91x_rtc.c str9_rtc.c"
local ldscript = "str912fw44.lds"
View
3  src/platform/str9/interrupt.c
@@ -240,9 +240,10 @@ void LVD_IRQHandler(void)
* Function Name : RTC_IRQHandler
* Description : This function handles the RTC interrupt request
*******************************************************************************/
-void RTC_IRQHandler(void)
+/*void RTC_IRQHandler(void)
{
}
+*/
/*******************************************************************************
* Function Name : WIU_IRQHandler
* Description : This function handles the WIU interrupt request
View
4 src/platform/str9/platform_int.c
@@ -262,7 +262,7 @@ static int int_tmr_match_get_flag( elua_int_resnum resnum, int clear )
// ****************************************************************************
// RTC Interrupt
-void ELUA_RTC_IRQHandler()
+void RTC_IRQHandler()
{
RTC_ClearFlag(RTC_FLAG_Alarm);
// Add an elua interrupt
@@ -326,7 +326,7 @@ void platform_int_init()
// RTC Alarm interrupt config
RTC_ITConfig(RTC_IT_Alarm, ENABLE); // Enable RTC alarm interrupt
- VIC1->VAiR[4] = (unsigned int)ELUA_RTC_IRQHandler; // Setup RTC IRQ handler addr
+ VIC1->VAiR[4] = (unsigned int)RTC_IRQHandler; // Setup RTC IRQ handler addr
VIC1->VCiR[4] = 0x20 | 8; // Enable RTC interrupt on vector slot p++
// VIC1->INTER |= (1<<8); // Enable RTC Interrupt ( VIC1.8 )
Please sign in to comment.
Something went wrong with that request. Please try again.