Open
Conversation
I think this is some GPIO/clock config weirdness. Need to investigate.
jamesadevine
commented
May 30, 2019
| this->timer_instance = timer; | ||
| this->irqN = irqn; | ||
| memset(&TimHandle, 0, sizeof(TIM_HandleTypeDef)); | ||
| disableIRQ(); |
jamesadevine
commented
May 30, 2019
| // USB_HP_CAN1_TX_IRQn | ||
| // USB_LP_CAN1_RX_IRQn | ||
|
|
||
| NVIC_SetPriority(USB_LP_CAN1_RX0_IRQn, 5); |
jamesadevine
commented
May 30, 2019
|
|
||
| static int enable_clock(uint32_t instance) | ||
| { | ||
| DMESG("CLK EN"); |
jamesadevine
commented
May 31, 2019
| return HAL_RCC_GetPCLK1Freq(); | ||
| case USART3_BASE: | ||
| __HAL_RCC_USART3_CLK_ENABLE(); | ||
| DMESG("PCLK1 %d", HAL_RCC_GetPCLK1Freq()); |
jamesadevine
commented
May 31, 2019
| pin_mode(pin, PullNone); | ||
| // pin_mode(pin, PullNone); | ||
| pin_function(pin, pinmap_function(pin, PinMap_UART_TX)); | ||
| pin_mode(pin,PullUp); |
Contributor
Author
There was a problem hiding this comment.
check this pin mode business
jamesadevine
commented
May 31, 2019
| this->bufLen = len; | ||
|
|
||
| int res = HAL_UART_Transmit_DMA(&uart, data, len); | ||
| DMESG("TXDMA RES %d ",res); |
jamesadevine
commented
May 31, 2019
| #ifndef USB | ||
| USBx_DEVICE->DIEPEMPMSK &= ~0x1U << ep; | ||
|
|
||
| while (!(USB_ReadDevInEPInterrupt(pcd.Instance, ep) & USB_OTG_DIEPINT_XFRC)) |
Contributor
Author
There was a problem hiding this comment.
check usb works overall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
commits that enable jacdac-v0 on stm32f1