Working fork to test F0 application
Fork of CANnucleo by
Diff: stm32f1xx_hal_msp.c
- Revision:
- 1:eb04f7f0478d
- Parent:
- 0:e29bc8e0dddd
- Child:
- 5:b53e5ee15315
--- a/stm32f1xx_hal_msp.c Sun Jul 19 09:06:26 2015 +0000 +++ b/stm32f1xx_hal_msp.c Sun Jul 19 14:04:31 2015 +0000 @@ -76,16 +76,15 @@ // 125kbps bit rate (default) #if defined(TARGET_NUCLEO_F103RB) || \ defined(TARGET_NUCLEO_F302R8) || \ + defined(TARGET_NUCLEO_F303RE) || \ defined(TARGET_NUCLEO_F334R8) || \ - defined(TARGET_NUCLEO_F303RE) || \ defined(TARGET_DISCO_F334C8) // APB1 pheripheral clock = 36000000Hz _canHandle.Init.Prescaler = 18; // number of time quanta = 36000000/18/125000 = 16 _canHandle.Init.SJW = CAN_SJW_1TQ; _canHandle.Init.BS1 = CAN_BS1_11TQ; // sample point at (1 + 11) / 16 * 100 = 75% _canHandle.Init.BS2 = CAN_BS2_4TQ; -#elif defined(TARGET_NUCLEO_F070RB) || \ - defined(TARGET_NUCLEO_F072RB) || \ +#elif defined(TARGET_NUCLEO_F072RB) || \ defined(TARGET_NUCLEO_F091RC) // APB1 pheripheral clock = 48000000Hz _canHandle.Init.Prescaler = 24; // number of time quanta = 48000000/24/125000 = 16