Provided is a control device and a motor device that can effectively suppress influence of vibration of a specific electronic component. A coil that is the specific electronic component is mounted on a circuit board. A connector portion has a base portion extending in a thickness direction of the circuit board and an extended portion extending from the base portion in a direction in which the circuit board extends. The extended portion of the connector portion has an annular portion, a support portion, and a pedestal portion. The pedestal portion serves as a portion to which the coil is bonded and fixed. With an adhesive applied to the pedestal portion, the pedestal portion bonds and fixes the coil thereto.