Posted on January 31, 2015 at 13:42
#define __HAL_DMA_GET_IT_SOURCE ( __HANDLE__, __INTERRUPT__ ) ((((__HANDLE__)->Instance->CCR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
The documentation has such a definition for this macro:
...
Posted on January 30, 2015 at 05:05
Attached is the project files, CubeMX file is also in the package.
I just added some simple code in these 2 places. everything else is generated by CubeMX.
main.c, int main(void)
/* USER COD...
Posted on January 25, 2015 at 16:42
I have 5 stm32 boards, 3 with F103RBT6 , 2 with F103C8T6.
I build an USB HID firmware by using USB FS Device Library 4.0, the code is just modified from the custom HID demo in the ST USB device library...
Posted on February 02, 2015 at 16:34
DMATC is a global var declared in main.c,
/* USER CODE BEGIN PV */
__IO uint8_t DMATC;
in stm32f1xx_it.c, it is referenced :
extern __IO uint8_t DMATC;
now I'm using HAL_...
Posted on February 01, 2015 at 11:32
I tried not using while(1) to wait the ADC DMA completes, instead, I used a 1Kh timer to start the ADC:
/**
* @brief This function handles TIM1 update interrupt.
*/
void TIM1_UP_IRQHandler(void)
{
/* U...
Posted on January 27, 2015 at 06:55
well, I have the buffer defined like this
/* tx buffer base address */
#define ENDP1_TXADDR (0x100)
//rx buffer base address
#define ENDP1_RXADDR (0x140)
the Endpoint is configured in usb_prop.c
...