Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
3257d354
Commit
3257d354
authored
Jan 23, 2014
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm: Remove unnecessary #includes; small other changes.
parent
82fd302f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
4 deletions
+17
-4
stm/Makefile
stm/Makefile
+1
-1
stm/led.c
stm/led.c
+0
-1
stm/main.c
stm/main.c
+1
-0
stm/rtc.c
stm/rtc.c
+0
-1
stm/usb.c
stm/usb.c
+14
-0
stm/usb.h
stm/usb.h
+1
-0
stm/usrsw.c
stm/usrsw.c
+0
-1
No files found.
stm/Makefile
View file @
3257d354
...
...
@@ -13,7 +13,7 @@ ECHO = @echo
CMSIS
=
cmsis
STMSRC
=
lib
#STMOTGSRC=
lib-otg
#STMOTGSRC=
usbhost
FATFSSRC
=
fatfs
CC3KSRC
=
cc3k
DFU
=
../tools/dfu.py
...
...
stm/led.c
View file @
3257d354
...
...
@@ -4,7 +4,6 @@
#include "misc.h"
#include "mpconfig.h"
#include "mpconfigport.h"
#include "qstr.h"
#include "obj.h"
#include "led.h"
...
...
stm/main.c
View file @
3257d354
...
...
@@ -876,6 +876,7 @@ soft_reset:
//pyb_usbh_init();
//rt_store_name(qstr_from_str("u_p"), rt_make_function_n(0, pyb_usbh_process));
//rt_store_name(qstr_from_str("u_c"), rt_make_function_n(0, pyb_usbh_connect));
//rt_store_name(qstr_from_str("u_i"), rt_make_function_n(0, pyb_usbh_info));
if
(
first_soft_reset
)
{
#if MICROPY_HW_HAS_MMA7660
...
...
stm/rtc.c
View file @
3257d354
...
...
@@ -3,7 +3,6 @@
#include "misc.h"
#include "mpconfig.h"
#include "mpconfigport.h"
#include "qstr.h"
#include "obj.h"
#include "rtc.h"
...
...
stm/usb.c
View file @
3257d354
...
...
@@ -153,4 +153,18 @@ mp_obj_t pyb_usbh_connect(void) {
return
mp_const_none
;
}
mp_obj_t
pyb_usbh_info
(
void
)
{
printf
(
"GOTGCTL:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GOTGCTL
);
printf
(
"GOTGINT:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GOTGINT
);
printf
(
"GAHBCFG:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GAHBCFG
);
printf
(
"GUSBCFG:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GUSBCFG
);
printf
(
"GRSTCTL:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GRSTCTL
);
printf
(
"GINTSTS:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GINTSTS
);
printf
(
"GINTMSK:%08x
\n
"
,
(
unsigned
int
)
USB_OTG_dev
.
regs
.
GREGS
->
GINTMSK
);
//printf("GRXSTSR:%08x\n", (unsigned int)USB_OTG_dev.regs.GREGS->GRXSTSR);
//printf("GRXSTSP:%08x\n", (unsigned int)USB_OTG_dev.regs.GREGS->GRXSTSP);
//printf("GRXFSIZ:%08x\n", (unsigned int)USB_OTG_dev.regs.GREGS->GRXFSIZ);
return
mp_const_none
;
}
#endif // USE_HOST_MODE
stm/usb.h
View file @
3257d354
...
...
@@ -10,3 +10,4 @@ void usb_hid_send_report(uint8_t *buf); // 4 bytes for mouse: ?, x, y, ?
void
pyb_usbh_init
(
void
);
mp_obj_t
pyb_usbh_process
(
void
);
mp_obj_t
pyb_usbh_connect
(
void
);
mp_obj_t
pyb_usbh_info
(
void
);
stm/usrsw.c
View file @
3257d354
...
...
@@ -6,7 +6,6 @@
#include "misc.h"
#include "mpconfig.h"
#include "mpconfigport.h"
#include "qstr.h"
#include "obj.h"
#include "usrsw.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment