Skip to content

Commit

Permalink
feat: change xCAN01 to xCAN
Browse files Browse the repository at this point in the history
  • Loading branch information
ConvertDevice committed Dec 11, 2022
1 parent dfdcb38 commit 537c086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ endfunction()
########## generate list of targets.
# the "_fw" part is appended automatically
set(TGTF042_LIST "cantact" "canalyze" "canable" "usb2can" "cannette")
set(TGTF072_LIST "candleLight" "CANable_MKS" "CONVERTDEVICE_xCAN01")
set(TGTF072_LIST "candleLight" "CANable_MKS" "CONVERTDEVICE_xCAN")
set(TGTF407_LIST "STM32F4_DevBoard")
set(TGTG0B1_LIST "budgetcan")

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is firmware for certain STM32F042x/STM32F072xB-based USB-CAN adapters, nota
- VulCAN Gen1: https://shop.copperforge.cc/products/ac41 (STM32F042x6)
- Entreé: https://github.com/tuna-f1sh/entree (STM32F042x6)
- CANable-MKS: https://github.com/makerbase-mks/CANable-MKS (STM32F072xB)
- ConvertDevice-xCAN01: https://github.com/ConvertDevice/xCAN01 (STM32F072xB)
- ConvertDevice-xCAN: https://github.com/ConvertDevice/xCAN (STM32F072xB)

Of important note is that the common STM32F103 will NOT work with this firmware because its hardware cannot use both USB and CAN simultaneously.
Beware also the smaller packages in the F042 series which map a USB and CAN_TX signal on the same pin and are therefore unusable !
Expand Down
6 changes: 3 additions & 3 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ THE SOFTWARE.
#define LEDTX_Mode GPIO_MODE_OUTPUT_OD
#define LEDTX_Active_High 0

#elif defined(BOARD_CONVERTDEVICE_xCAN01)
#define USBD_PRODUCT_STRING_FS (uint8_t*) "ConvertDevice xCAN01"
#elif defined(BOARD_CONVERTDEVICE_xCAN)
#define USBD_PRODUCT_STRING_FS (uint8_t*) "ConvertDevice xCAN"
#define USBD_MANUFACTURER_STRING (uint8_t*) "ConvertDevice"
#define DFU_INTERFACE_STRING_FS (uint8_t*) "ConvertDevice xCAN01 firmware upgrade interface"
#define DFU_INTERFACE_STRING_FS (uint8_t*) "ConvertDevice xCAN firmware upgrade interface"

#define CAN_INTERFACE CAN
#define CAN_CLOCK_SPEED 48000000
Expand Down

0 comments on commit 537c086

Please sign in to comment.