Skip to content

Commit

Permalink
Removed keyword (see #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Jan 5, 2022
1 parent 5cc393f commit 2ab4ab0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/ESP32-USBSoftHost.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define __USB_SOFT_HOST_HPP_

#ifndef BLINK_GPIO
//#define BLINK_GPIO 2
#if CONFIG_IDF_TARGET_ESP32C3 || defined ESP32C3
#define BLINK_GPIO 18
#else
Expand Down
14 changes: 7 additions & 7 deletions src/usb_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ int TM_OUT = 64; //receive time out no activity on bus
#define TOUT (TM_OUT)
#endif

static inline uint32_t _getCycleCount32()
static uint32_t _getCycleCount32()
{
uint32_t ccount = cpu_hal_get_cycle_count();
return ccount;
}
static inline uint8_t _getCycleCount8d8(void)
static uint8_t _getCycleCount8d8(void)
{
uint32_t ccount = cpu_hal_get_cycle_count();
return ccount>>3;
Expand Down Expand Up @@ -376,7 +376,7 @@ uint32_t sndA[4] = {0,0,0,0};



inline void restart()
void restart()
{
transmit_NRZI_buffer_cnt = 0;
}
Expand All @@ -390,7 +390,7 @@ void decoded_receive_buffer_clear()



inline void decoded_receive_buffer_put(uint8_t val)
void decoded_receive_buffer_put(uint8_t val)
{
decoded_receive_buffer[decoded_receive_buffer_head] = val;
decoded_receive_buffer_head++;
Expand Down Expand Up @@ -454,14 +454,14 @@ uint32_t cal16()



inline void seB(int bit)
void seB(int bit)
{
transmit_bits_buffer_store[transmit_bits_buffer_store_cnt++] = bit;
}



inline void pu_MSB(uint16_t msg,int N)
void pu_MSB(uint16_t msg,int N)
{
for(int k=0;k<N;k++) {
seB(msg&(1<<(N-1-k))?1:0);
Expand All @@ -470,7 +470,7 @@ inline void pu_MSB(uint16_t msg,int N)



inline void pu_LSB(uint16_t msg,int N)
void pu_LSB(uint16_t msg,int N)
{
for(int k=0;k<N;k++) {
seB(msg&(1<<(k))?1:0);
Expand Down
2 changes: 2 additions & 0 deletions src/usb_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ void set_onled_blink_cb( onledblinkcb_t cb );

void initStates( int DP0,int DM0,int DP1,int DM1,int DP2,int DM2,int DP3,int DM3);
void setDelay(uint8_t ticks);
uint8_t usbGetFlags(int _usb_num);
void usbSetFlags(int _usb_num,uint8_t flags);


typedef struct
Expand Down

0 comments on commit 2ab4ab0

Please sign in to comment.