Add local changes
|
|
@ -15,26 +15,11 @@
|
|||
|
||||
#include "usb.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i = 0;
|
||||
// const char* line;
|
||||
|
||||
// Clock Setup
|
||||
int main(void) {
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
|
||||
// Initialize USB
|
||||
usb_serial_init();
|
||||
|
||||
while (1) {
|
||||
/*
|
||||
if( i % 100000 == 0 ) {
|
||||
// Read ADC
|
||||
printf("Fnord 42 :: %d %d\r\n", _adc_samples[0], _adc_samples[1]);
|
||||
}
|
||||
*/
|
||||
|
||||
i++;
|
||||
while (42) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ static const struct usb_endpoint_descriptor comm_endp[] = {{
|
|||
.bDescriptorType = USB_DT_ENDPOINT,
|
||||
.bEndpointAddress = 0x83,
|
||||
.bmAttributes = USB_ENDPOINT_ATTR_INTERRUPT,
|
||||
.wMaxPacketSize = 16,
|
||||
.bInterval = 255,
|
||||
.wMaxPacketSize = 64,
|
||||
.bInterval = 1,
|
||||
}};
|
||||
|
||||
static const struct usb_endpoint_descriptor data_endp[] = {{
|
||||
|
|
@ -74,13 +74,6 @@ static const struct usb_endpoint_descriptor data_endp[] = {{
|
|||
.bmAttributes = USB_ENDPOINT_ATTR_BULK,
|
||||
.wMaxPacketSize = 64,
|
||||
.bInterval = 1,
|
||||
}, {
|
||||
.bLength = USB_DT_ENDPOINT_SIZE,
|
||||
.bDescriptorType = USB_DT_ENDPOINT,
|
||||
.bEndpointAddress = 0x82,
|
||||
.bmAttributes = USB_ENDPOINT_ATTR_BULK,
|
||||
.wMaxPacketSize = 64,
|
||||
.bInterval = 1,
|
||||
}};
|
||||
|
||||
static const struct usb_interface_descriptor comm_iface[] = {{
|
||||
|
|
@ -105,7 +98,7 @@ static const struct usb_interface_descriptor data_iface[] = {{
|
|||
.bDescriptorType = USB_DT_INTERFACE,
|
||||
.bInterfaceNumber = 1,
|
||||
.bAlternateSetting = 0,
|
||||
.bNumEndpoints = 2,
|
||||
.bNumEndpoints = 1,
|
||||
.bInterfaceClass = USB_CLASS_DATA,
|
||||
.bInterfaceSubClass = 0,
|
||||
.bInterfaceProtocol = 0,
|
||||
|
|
@ -139,7 +132,7 @@ static const struct usb_config_descriptor config = {
|
|||
static const char *usb_strings[] = {
|
||||
"Chaos Computer Club Berlin e.V.",
|
||||
"bluefnorf",
|
||||
"bf1",
|
||||
"bf2",
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3659,7 +3659,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.5"
|
||||
"version": "3.6.8"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
eps=0.01;
|
||||
|
||||
nut_dia = 5.3;
|
||||
nut_dia = 5.4;
|
||||
nut_depth=5.5;
|
||||
|
||||
bx=71.12;
|
||||
by=35.56;
|
||||
|
||||
w=8;
|
||||
w=10;
|
||||
h=5;
|
||||
s=30;
|
||||
d=w;
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |