Changeset 47adf3f in rtems


Ignore:
Timestamp:
Apr 30, 2010, 1:49:15 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10, 4.11, 5, master
Children:
522348c8
Parents:
5895c00
Message:

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • include/irq-config.h: Removed file.
  • Makefile.am, preinstall.am: Reflect change above.
  • irq/irq.c: Removed superfluous parameter checks.
Location:
c/src/lib/libbsp/arm
Files:
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/ChangeLog

    r5895c00 r47adf3f  
     12010-04-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * include/irq-config.h: Removed file.
     4        * Makefile.am, preinstall.am: Reflect change above.
     5        * irq/irq.c: Removed superfluous parameter checks.
     6
    172010-04-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    r5895c00 r47adf3f  
    3737include_bsp_HEADERS += ../shared/include/start.h
    3838include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
    39 include_bsp_HEADERS += include/irq-config.h
    4039include_bsp_HEADERS += include/irq.h
    4140include_bsp_HEADERS += include/lpc24xx.h
  • c/src/lib/libbsp/arm/lpc24xx/irq/irq.c

    r5895c00 r47adf3f  
    6969rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
    7070{
    71   if (lpc24xx_irq_is_valid(vector)) {
    72     VICIntEnable = 1U << vector;
    73   }
     71  VICIntEnable = 1U << vector;
    7472
    7573  return RTEMS_SUCCESSFUL;
     
    7876rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
    7977{
    80   if (lpc24xx_irq_is_valid(vector)) {
    81     VICIntEnClear = 1U << vector;
    82   }
     78  VICIntEnClear = 1U << vector;
    8379
    8480  return RTEMS_SUCCESSFUL;
  • c/src/lib/libbsp/arm/lpc24xx/preinstall.am

    r5895c00 r47adf3f  
    9191PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/lpc-timer.h
    9292
    93 $(PROJECT_INCLUDE)/bsp/irq-config.h: include/irq-config.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    94         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-config.h
    95 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-config.h
    96 
    9793$(PROJECT_INCLUDE)/bsp/irq.h: include/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    9894        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
  • c/src/lib/libbsp/arm/lpc32xx/ChangeLog

    r5895c00 r47adf3f  
     12010-04-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * include/irq-config.h: Removed file.
     4        * Makefile.am, preinstall.am: Reflect change above.
     5        * irq/irq.c: Removed superfluous parameter checks.
     6
    172010-04-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • c/src/lib/libbsp/arm/lpc32xx/Makefile.am

    r5895c00 r47adf3f  
    3939include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
    4040include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
    41 include_bsp_HEADERS += include/irq-config.h
    4241include_bsp_HEADERS += include/irq.h
    4342include_bsp_HEADERS += include/mmu.h
  • c/src/lib/libbsp/arm/lpc32xx/irq/irq.c

    r5895c00 r47adf3f  
    281281rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
    282282{
    283   if (lpc32xx_irq_is_valid(vector)) {
    284     rtems_interrupt_level level;
    285 
    286     rtems_interrupt_disable(level);
    287     lpc32xx_irq_set_bit_in_register(vector, LPC32XX_IRQ_OFFSET_ER);
    288     lpc32xx_irq_set_bit_in_field(vector, &lpc32xx_irq_enable);
    289     rtems_interrupt_enable(level);
    290   }
     283  rtems_interrupt_level level;
     284
     285  rtems_interrupt_disable(level);
     286  lpc32xx_irq_set_bit_in_register(vector, LPC32XX_IRQ_OFFSET_ER);
     287  lpc32xx_irq_set_bit_in_field(vector, &lpc32xx_irq_enable);
     288  rtems_interrupt_enable(level);
    291289
    292290  return RTEMS_SUCCESSFUL;
     
    295293rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
    296294{
    297   if (lpc32xx_irq_is_valid(vector)) {
    298     rtems_interrupt_level level;
    299 
    300     rtems_interrupt_disable(level);
    301     lpc32xx_irq_clear_bit_in_field(vector, &lpc32xx_irq_enable);
    302     lpc32xx_irq_clear_bit_in_register(vector, LPC32XX_IRQ_OFFSET_ER);
    303     rtems_interrupt_enable(level);
    304   }
     295  rtems_interrupt_level level;
     296
     297  rtems_interrupt_disable(level);
     298  lpc32xx_irq_clear_bit_in_field(vector, &lpc32xx_irq_enable);
     299  lpc32xx_irq_clear_bit_in_register(vector, LPC32XX_IRQ_OFFSET_ER);
     300  rtems_interrupt_enable(level);
    305301
    306302  return RTEMS_SUCCESSFUL;
  • c/src/lib/libbsp/arm/lpc32xx/preinstall.am

    r5895c00 r47adf3f  
    9999PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/lpc-dma.h
    100100
    101 $(PROJECT_INCLUDE)/bsp/irq-config.h: include/irq-config.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    102         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-config.h
    103 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-config.h
    104 
    105101$(PROJECT_INCLUDE)/bsp/irq.h: include/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    106102        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
Note: See TracChangeset for help on using the changeset viewer.