//! Sets target MCU type //! //! @param target_type type of target //! //! @return 0 => Success,\n !=0 => Fail //! //! @note A dialog box will open to allow the user to configure the BDM //! The user may be prompted to supply power to target //! OSBDM_API unsigned char _opensourcebdm_set_target_type(TargetType_t _targetType) { if (_targetType == T_RS08) { wxMessageBox(_("RS08 devices are no longer supported by USBDM in this version of Codewarrior\n" "Please update to Codewarrior V10 (Eclipse based)\n"), _("Target not supported"), wxICON_ERROR|wxOK|wxSTAY_ON_TOP); print("_opensourcebdm_set_target_type(): RS08 target not supported\n"); return BDM_RC_ILLEGAL_PARAMS; } targetType = _targetType; return USBDM_OpenTargetWithConfig(_targetType); }
//! Sets target MCU type //! //! @param target_type type of target //! //! @return 0 => Success,\n !=0 => Fail //! //! @note A dialog box will open to allow the user to configure the BDM //! The user may be prompted to supply power to target //! TBDML_API unsigned char _tbdml_set_target_type(TargetType_t targetType) { print("_tbdml_set_target_type()\n"); return USBDM_OpenTargetWithConfig(targetType); }