Roll back to older STM32 core files (#128)

This commit is contained in:
Ben Lye
2017-12-17 00:44:29 +00:00
committed by GitHub
parent dc9f738f30
commit 68dcc75949
49 changed files with 580 additions and 1838 deletions

View File

@@ -345,12 +345,12 @@ static inline void usb_clear_status_out(uint8 ep) {
/*
* PMA conveniences
*/
/*
void usb_copy_to_pma(const uint8 *buf, uint16 len, uint16 pma_offset);
void usb_copy_from_pma(uint8 *buf, uint16 len, uint16 pma_offset);
*/
static inline uint32 * usb_pma_ptr(uint32 offset) {
return (uint32*)(USB_PMA_BASE + 2 * offset);
static inline void* usb_pma_ptr(uint32 offset) {
return (void*)(USB_PMA_BASE + 2 * offset);
}
/*
@@ -567,7 +567,7 @@ static inline uint16 usb_get_ep_rx_buf0_count(uint8 ep) {
return usb_get_ep_tx_count(ep);
}
//void usb_set_ep_rx_buf0_count(uint8 ep, uint16 count);
void usb_set_ep_rx_buf0_count(uint8 ep, uint16 count);
static inline uint32* usb_ep_rx_buf1_count_ptr(uint8 ep) {
return usb_ep_rx_count_ptr(ep);