Changeset edb1dd83 in rtems


Ignore:
Timestamp:
11/08/11 10:05:50 (11 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
d558bc49
Parents:
467c767
Message:

2011-11-08 Sebastian Huber <sebastian.huber@…>

  • new-exceptions/bspsupport/ppc_exc_async_normal.S: Bugfix for MPC5674F. Use it for all to be safe.
  • mpc55xx/include/emios.h: Fixed eMIOS module count.
  • mpc55xx/include/irq.h: Fixed CAN vector numbers. BSP_INTERRUPT_HANDLER_TABLE_SIZE is now a BSP option.
Location:
c/src/lib/libcpu/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r467c767 redb1dd83  
     12011-11-08      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * new-exceptions/bspsupport/ppc_exc_async_normal.S: Bugfix for
     4        MPC5674F.  Use it for all to be safe.
     5        * mpc55xx/include/emios.h: Fixed eMIOS module count.
     6        * mpc55xx/include/irq.h: Fixed CAN vector numbers.
     7        BSP_INTERRUPT_HANDLER_TABLE_SIZE is now a BSP option.
     8
    192011-10-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • c/src/lib/libcpu/powerpc/mpc55xx/include/emios.h

    r467c767 redb1dd83  
    2828#include <rtems.h>
    2929#include <rtems/chain.h>
     30
     31#include <bspopts.h>
    3032
    3133#ifdef __cplusplus
     
    170172/** @} */
    171173
    172 #define MPC55XX_EMIOS_CHANNEL_NUMBER 24U
     174#if MPC55XX_CHIP_TYPE / 10 == 567
     175  #define MPC55XX_EMIOS_CHANNEL_NUMBER 32U
     176#else
     177  #define MPC55XX_EMIOS_CHANNEL_NUMBER 24U
     178#endif
    173179
    174180#define MPC55XX_EMIOS_VALUE_MAX 0x00ffffffU
  • c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h

    r467c767 redb1dd83  
    220220
    221221/* FlexCAN */
    222 #define MPC55XX_IRQ_CAN_BOFF_TWRN_RWRN(mod) (MPC55XX_IRQ_CAN(mod) + 0U)
    223 #define MPC55XX_IRQ_CAN_ERR(mod) (MPC55XX_IRQ_CAN(mod) + 1U)
    224 #define MPC55XX_IRQ_CAN_BUF_0(mod) (MPC55XX_IRQ_CAN(mod) + 3U)
    225 #define MPC55XX_IRQ_CAN_BUF_1(mod) (MPC55XX_IRQ_CAN(mod) + 4U)
    226 #define MPC55XX_IRQ_CAN_BUF_2(mod) (MPC55XX_IRQ_CAN(mod) + 5U)
    227 #define MPC55XX_IRQ_CAN_BUF_3(mod) (MPC55XX_IRQ_CAN(mod) + 6U)
    228 #define MPC55XX_IRQ_CAN_BUF_4(mod) (MPC55XX_IRQ_CAN(mod) + 7U)
    229 #define MPC55XX_IRQ_CAN_BUF_5(mod) (MPC55XX_IRQ_CAN(mod) + 8U)
    230 #define MPC55XX_IRQ_CAN_BUF_6(mod) (MPC55XX_IRQ_CAN(mod) + 9U)
    231 #define MPC55XX_IRQ_CAN_BUF_7(mod) (MPC55XX_IRQ_CAN(mod) + 10U)
    232 #define MPC55XX_IRQ_CAN_BUF_8(mod) (MPC55XX_IRQ_CAN(mod) + 12U)
    233 #define MPC55XX_IRQ_CAN_BUF_9(mod) (MPC55XX_IRQ_CAN(mod) + 12U)
    234 #define MPC55XX_IRQ_CAN_BUF_10(mod) (MPC55XX_IRQ_CAN(mod) + 13U)
    235 #define MPC55XX_IRQ_CAN_BUF_11(mod) (MPC55XX_IRQ_CAN(mod) + 14U)
    236 #define MPC55XX_IRQ_CAN_BUF_12(mod) (MPC55XX_IRQ_CAN(mod) + 15U)
    237 #define MPC55XX_IRQ_CAN_BUF_13(mod) (MPC55XX_IRQ_CAN(mod) + 16U)
    238 #define MPC55XX_IRQ_CAN_BUF_14(mod) (MPC55XX_IRQ_CAN(mod) + 17U)
    239 #define MPC55XX_IRQ_CAN_BUF_15(mod) (MPC55XX_IRQ_CAN(mod) + 18U)
    240 #define MPC55XX_IRQ_CAN_BUF_16_31(mod) (MPC55XX_IRQ_CAN(mod) + 19U)
    241 #define MPC55XX_IRQ_CAN_BUF_32_63(mod) (MPC55XX_IRQ_CAN(mod) + 20U)
     222#define MPC55XX_IRQ_CAN_BOFF_TWRN_RWRN(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 0U)
     223#define MPC55XX_IRQ_CAN_ERR(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 1U)
     224#define MPC55XX_IRQ_CAN_BUF_0(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 3U)
     225#define MPC55XX_IRQ_CAN_BUF_1(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 4U)
     226#define MPC55XX_IRQ_CAN_BUF_2(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 5U)
     227#define MPC55XX_IRQ_CAN_BUF_3(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 6U)
     228#define MPC55XX_IRQ_CAN_BUF_4(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 7U)
     229#define MPC55XX_IRQ_CAN_BUF_5(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 8U)
     230#define MPC55XX_IRQ_CAN_BUF_6(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 9U)
     231#define MPC55XX_IRQ_CAN_BUF_7(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 10U)
     232#define MPC55XX_IRQ_CAN_BUF_8(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 12U)
     233#define MPC55XX_IRQ_CAN_BUF_9(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 12U)
     234#define MPC55XX_IRQ_CAN_BUF_10(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 13U)
     235#define MPC55XX_IRQ_CAN_BUF_11(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 14U)
     236#define MPC55XX_IRQ_CAN_BUF_12(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 15U)
     237#define MPC55XX_IRQ_CAN_BUF_13(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 16U)
     238#define MPC55XX_IRQ_CAN_BUF_14(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 17U)
     239#define MPC55XX_IRQ_CAN_BUF_15(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 18U)
     240#define MPC55XX_IRQ_CAN_BUF_16_31(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 19U)
     241#define MPC55XX_IRQ_CAN_BUF_32_63(mod) (MPC55XX_IRQ_CAN_BASE(mod) + 20U)
    242242
    243243/* FlexRay */
     
    304304#define BSP_INTERRUPT_VECTOR_MAX MPC55XX_IRQ_MAX
    305305
    306 #define BSP_INTERRUPT_USE_INDEX_TABLE
    307 
    308 #define BSP_INTERRUPT_NO_HEAP_USAGE
    309 
    310 #ifdef BSP_INTERRUPT_USE_INDEX_TABLE
    311   #define BSP_INTERRUPT_HANDLER_TABLE_SIZE 63
    312   typedef uint8_t bsp_interrupt_handler_index_type;
     306#ifdef BSP_INTERRUPT_HANDLER_TABLE_SIZE
     307  #define BSP_INTERRUPT_USE_INDEX_TABLE
     308  #define BSP_INTERRUPT_NO_HEAP_USAGE
    313309#endif
    314310
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S

    r467c767 redb1dd83  
    7474        oris    FRAME_REGISTER, FRAME_REGISTER, MSR_SPE >> 16
    7575        mtmsr   FRAME_REGISTER
     76        isync
    7677#endif
    7778
Note: See TracChangeset for help on using the changeset viewer.