Start clock on F0 and F0, and handle USB interrupts.

This commit is contained in:
Nathan Conrad
2019-09-09 19:20:26 -04:00
parent d1976a30b3
commit f7b0aeec52
4 changed files with 44 additions and 3 deletions

View File

@@ -125,14 +125,18 @@
* Checks, structs, defines, function definitions, etc.
*/
#if (MAX_EP_COUNT > 8)
#if ((MAX_EP_COUNT) > 8)
# error Only 8 endpoints supported on the hardware
#endif
#if ((DCD_STM32_BTABLE_BASE + DCD_STM32_BTABLE_LENGTH)>PMA_LENGTH)
#if (((DCD_STM32_BTABLE_BASE) + (DCD_STM32_BTABLE_LENGTH))>(PMA_LENGTH))
# error BTABLE does not fit in PMA RAM
#endif
#if (((DCD_STM32_BTABLE_BASE) % 8) != 0)
// per STM32F3 reference manual
#error BTABLE must be aligned to 8 bytes
#endif
// Max size of a USB FS packet is 64...
#define MAX_PACKET_SIZE 64