1
0

drv_lpccan.h 844 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * File : drv_lpccan.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2015, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2015-06-30 aubrcool@qq.com first version
  13. */
  14. #ifndef DRV_LPCCAN_H_
  15. #define DRV_LPCCAN_H_
  16. #include <rthw.h>
  17. #include <rtdevice.h>
  18. #define LPC_CAN_AF_STD_INIT(id) \
  19. RT_CAN_FILTER_ITEM_INIT(id,0,0,0,0xFFFFFFFF)
  20. #define LPC_CAN_AF_EXT_INIT(id) \
  21. RT_CAN_FILTER_ITEM_INIT(id,1,0,0,0xFFFFFFFF)
  22. #define LPC_CAN_AF_STD_GRP_INIT(id1,id2) \
  23. RT_CAN_FILTER_ITEM_INIT(id1,0,0,1,id2)
  24. #define LPC_CAN_AF_EXT_GRP_INIT(id1,id2) \
  25. RT_CAN_FILTER_ITEM_INIT(id1,1,0,1,id2)
  26. #endif /*DRV_LPCCAN_H_*/