view src/cs/drivers/drv_app/r2d/r2d_lcds.c @ 268:f2e52cab0a73

abb_inth.c: check all interrupt causes, not just one The original code used if - else if - else if etc constructs, thus the first detected interrupt was the only one handled. However, Iota ITSTATREG is a clear-on-read register, thus if we only handle the first detected interrupt and skip checking the others, then the other interrupts will be lost, if more than one interrupt happened to occur in one ABB interrupt handling cycle - a form of rare race condition. Change the code to check all interrupts that were read in this cycle.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 13 Jun 2021 18:17:53 +0000
parents c905daaff834
children
line wrap: on
line source

/**
                                                                          
	@file:	r2d_lcds.c
	
	@author Christophe Favergeon                              
                                                                          
    @version	0.5	

    Purpose:	Include LCDs dependent definitions (the LCD APIs)
	
*/

/*
																			
 	Date       	Modification												
  ------------------------------------									
    06/02/2001	Create		
	10/18/2001  Version 0.5 for first integration with Riviera database
																											    
																			
 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
*/

#include "rv/general.h"
#include "rvf/rvf_api.h"
#include "r2d/r2d_config.h"
#include "r2d/r2d.h"
#include "r2d/r2d_i.h"
#include "r2d/r2d_independance_layer.h"
#if (R2D_DEBUG == R2D_ON)
#include <stdio.h>
#endif

#ifdef _WINDOWS
#include "Windows.h"
#endif

#ifndef _WINDOWS
	#include "config/board.cfg"
#endif

//////////////////////////////////
//
// Include LCD dependent C code
//
#if (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD)
  #include "lcds/Simple/R2D_simple_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD)
  #include "lcds/ColorPC/R2D_pc_color_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE)
  #include "lcds/PC_CSAMPLE/R2D_pc_csample_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE)
  #include "lcds/PC_DSAMPLE/R2D_pc_dsample_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD)
  #include "lcds/Simple/R2D_simple_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD)
  #include "lcds/Customer/R2D_customer_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD)
  #include "lcds/Horizontal/R2D_horizontal_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD)
  #include "lcds/ColorBoard/R2D_board_color_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE)
  #include "lcds/D_Sample/R2D_board_dsample_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE)
  #include "lcds/BW_D_Sample/R2D_board_bw_dsample_lcd_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_FB_96x64_BW)
  #include "lcds/BW_D_Sample/R2D_board_bw_dsample_lcd_i.c"
#endif