Merging pull request #63 Improvements to STM32F1 I2C, CAN, RCC, and USB (f107)
Merge remote-tracking branch 'icd/master'
This commit is contained in:
@@ -439,6 +439,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#define CAN_BTR_SJW_3TQ (0x2 << 24)
|
||||
#define CAN_BTR_SJW_4TQ (0x3 << 24)
|
||||
#define CAN_BTR_SJW_MASK (0x3 << 24)
|
||||
#define CAN_BTR_SJW_SHIFT 24
|
||||
|
||||
/* 23 Reserved, forced by hardware to 0 */
|
||||
|
||||
@@ -452,6 +453,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#define CAN_BTR_TS2_7TQ (0x6 << 20)
|
||||
#define CAN_BTR_TS2_8TQ (0x7 << 20)
|
||||
#define CAN_BTR_TS2_MASK (0x7 << 20)
|
||||
#define CAN_BTR_TS2_SHIFT 20
|
||||
|
||||
/* TS1[3:0]: Time segment 1 */
|
||||
#define CAN_BTR_TS1_1TQ (0x0 << 16)
|
||||
@@ -471,6 +473,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#define CAN_BTR_TS1_15TQ (0xE << 16)
|
||||
#define CAN_BTR_TS1_16TQ (0xF << 16)
|
||||
#define CAN_BTR_TS1_MASK (0xF << 16)
|
||||
#define CAN_BTR_TS1_SHIFT 16
|
||||
|
||||
/* 15:10 Reserved, forced by hardware to 0 */
|
||||
|
||||
@@ -641,7 +644,8 @@ BEGIN_DECLS
|
||||
|
||||
void can_reset(u32 canport);
|
||||
int can_init(u32 canport, bool ttcm, bool abom, bool awum, bool nart,
|
||||
bool rflm, bool txfp, u32 sjw, u32 ts1, u32 ts2, u32 brp);
|
||||
bool rflm, bool txfp, u32 sjw, u32 ts1, u32 ts2, u32 brp,
|
||||
bool loopback, bool silent);
|
||||
|
||||
void can_filter_init(u32 canport, u32 nr, bool scale_32bit, bool id_list_mode,
|
||||
u32 fr1, u32 fr2, u32 fifo, bool enable);
|
||||
@@ -662,7 +666,7 @@ void can_receive(u32 canport, u8 fifo, bool release, u32 *id, bool *ext,
|
||||
bool *rtr, u32 *fmi, u8 *length, u8 *data);
|
||||
|
||||
void can_fifo_release(u32 canport, u8 fifo);
|
||||
|
||||
bool can_available_mailbox(u32 canport);
|
||||
END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user