ESP32 CAN
来自Jack's Lab
(版本间的差异)
(以“== Overview == <br><br> == Hacking == <br><br><br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>”为内容创建页面) |
(→Hacking) |
||
第4行: | 第4行: | ||
== Hacking == | == Hacking == | ||
+ | |||
+ | <pre> | ||
+ | #define DPORT_PRO_CAN_INT_MAP_REG (DR_REG_DPORT_BASE + 0x1B8) | ||
+ | /* DPORT_PRO_CAN_INT_MAP : R/W ;bitpos:[4:0] ;default: 5'd16 ; */ | ||
+ | /*description: */ | ||
+ | #define DPORT_PRO_CAN_INT_MAP 0x0000001F | ||
+ | #define DPORT_PRO_CAN_INT_MAP_M ((DPORT_PRO_CAN_INT_MAP_V)<<(DPORT_PRO_CAN_INT_MAP_S)) | ||
+ | #define DPORT_PRO_CAN_INT_MAP_V 0x1F | ||
+ | #define DPORT_PRO_CAN_INT_MAP_S 0 | ||
+ | |||
+ | #define DPORT_APP_CAN_INT_MAP_REG (DR_REG_DPORT_BASE + 0x2CC) | ||
+ | /* DPORT_APP_CAN_INT_MAP : R/W ;bitpos:[4:0] ;default: 5'd16 ; */ | ||
+ | /*description: */ | ||
+ | #define DPORT_APP_CAN_INT_MAP 0x0000001F | ||
+ | #define DPORT_APP_CAN_INT_MAP_M ((DPORT_APP_CAN_INT_MAP_V)<<(DPORT_APP_CAN_INT_MAP_S)) | ||
+ | #define DPORT_APP_CAN_INT_MAP_V 0x1F | ||
+ | #define DPORT_APP_CAN_INT_MAP_S 0 | ||
+ | |||
+ | #define DPORT_AHBLITE_MPU_TABLE_CAN_REG (DR_REG_DPORT_BASE + 0x3C0) | ||
+ | /* DPORT_CAN_ACCESS_GRANT_CONFIG : R/W ;bitpos:[5:0] ;default: 6'b0 ; */ | ||
+ | /*description: */ | ||
+ | #define DPORT_CAN_ACCESS_GRANT_CONFIG 0x0000003F | ||
+ | #define DPORT_CAN_ACCESS_GRANT_CONFIG_M ((DPORT_CAN_ACCESS_GRANT_CONFIG_V)<<(DPORT_CAN_ACCESS_GRANT_CONFIG_S)) | ||
+ | #define DPORT_CAN_ACCESS_GRANT_CONFIG_V 0x3F | ||
+ | #define DPORT_CAN_ACCESS_GRANT_CONFIG_S 0 | ||
+ | </pre> | ||
+ | |||
<br><br><br><br> | <br><br><br><br> |
2016年11月23日 (三) 22:30的版本
1 Overview
2 Hacking
#define DPORT_PRO_CAN_INT_MAP_REG (DR_REG_DPORT_BASE + 0x1B8) /* DPORT_PRO_CAN_INT_MAP : R/W ;bitpos:[4:0] ;default: 5'd16 ; */ /*description: */ #define DPORT_PRO_CAN_INT_MAP 0x0000001F #define DPORT_PRO_CAN_INT_MAP_M ((DPORT_PRO_CAN_INT_MAP_V)<<(DPORT_PRO_CAN_INT_MAP_S)) #define DPORT_PRO_CAN_INT_MAP_V 0x1F #define DPORT_PRO_CAN_INT_MAP_S 0 #define DPORT_APP_CAN_INT_MAP_REG (DR_REG_DPORT_BASE + 0x2CC) /* DPORT_APP_CAN_INT_MAP : R/W ;bitpos:[4:0] ;default: 5'd16 ; */ /*description: */ #define DPORT_APP_CAN_INT_MAP 0x0000001F #define DPORT_APP_CAN_INT_MAP_M ((DPORT_APP_CAN_INT_MAP_V)<<(DPORT_APP_CAN_INT_MAP_S)) #define DPORT_APP_CAN_INT_MAP_V 0x1F #define DPORT_APP_CAN_INT_MAP_S 0 #define DPORT_AHBLITE_MPU_TABLE_CAN_REG (DR_REG_DPORT_BASE + 0x3C0) /* DPORT_CAN_ACCESS_GRANT_CONFIG : R/W ;bitpos:[5:0] ;default: 6'b0 ; */ /*description: */ #define DPORT_CAN_ACCESS_GRANT_CONFIG 0x0000003F #define DPORT_CAN_ACCESS_GRANT_CONFIG_M ((DPORT_CAN_ACCESS_GRANT_CONFIG_V)<<(DPORT_CAN_ACCESS_GRANT_CONFIG_S)) #define DPORT_CAN_ACCESS_GRANT_CONFIG_V 0x3F #define DPORT_CAN_ACCESS_GRANT_CONFIG_S 0