소스 검색

removed unwanted static keyword

Dmitry 9 년 전
부모
커밋
f4925f5e8a
2개의 변경된 파일4개의 추가작업 그리고 12개의 파일을 삭제
  1. 2 6
      src/usb_32v0.c
  2. 2 6
      src/usb_32v1.c

+ 2 - 6
src/usb_32v0.c

@@ -232,7 +232,7 @@ bool ep_config(uint8_t ep, uint8_t eptype, uint16_t epsize) {
     return true;
 }
 
-static void ep_deconfig(uint8_t ep) {
+void ep_deconfig(uint8_t ep) {
     pma_table *ept = EPT(ep);
     *EPR(ep) &= ~USB_EPREG_MASK;
     ept->rxadr = 0;
@@ -417,7 +417,7 @@ static uint32_t fnv1a32_turn (uint32_t fnv, uint32_t data ) {
     return fnv;
 }
 
-static uint16_t get_serialno_desc(void *buffer) {
+uint16_t get_serialno_desc(void *buffer) {
     struct  usb_string_descriptor *dsc = buffer;
     uint16_t *str = dsc->wString;
     uint32_t fnv = 2166136261;
@@ -434,10 +434,6 @@ static uint16_t get_serialno_desc(void *buffer) {
     return 18;
 }
 
-
-
-
-
 const struct usbd_driver usb_stmv0 = {
     enable,
     reset,

+ 2 - 6
src/usb_32v1.c

@@ -249,7 +249,7 @@ bool ep_config(uint8_t ep, uint8_t eptype, uint16_t epsize) {
     return true;
 }
 
-static void ep_deconfig(uint8_t ep) {
+void ep_deconfig(uint8_t ep) {
     pma_table *ept = EPT(ep);
     *EPR(ep) &= ~USB_EPREG_MASK;
     ept->rxadr = 0;
@@ -435,7 +435,7 @@ static uint32_t fnv1a32_turn (uint32_t fnv, uint32_t data ) {
     return fnv;
 }
 
-static uint16_t get_serialno_desc(void *buffer) {
+uint16_t get_serialno_desc(void *buffer) {
     struct  usb_string_descriptor *dsc = buffer;
     uint16_t *str = dsc->wString;
     uint32_t fnv = 2166136261;
@@ -452,10 +452,6 @@ static uint16_t get_serialno_desc(void *buffer) {
     return 18;
 }
 
-
-
-
-
 const struct usbd_driver usb_stmv1 = {
     enable,
     reset,