Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Nucleo_spi by
Revision 3:cc301e19f4d1, committed 2015-08-08
- Comitter:
- kikoaac
- Date:
- Sat Aug 08 02:11:59 2015 +0000
- Parent:
- 2:1194c29429bf
- Commit message:
- PWM???????????????
Changed in this revision
| Registar.h | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Registar.h Tue Jul 21 08:13:33 2015 +0000 +++ b/Registar.h Sat Aug 08 02:11:59 2015 +0000 @@ -14,8 +14,8 @@ #define MotorMode 0x04 #define MotorState 0x0e #define Who_am_I 0x2 -#define MotorPWM 0x10 -#define MotorPWM2 0xf +#define MotorPWM 0xf +#define MotorPWM2 0x10 #define MoterRevolutionL 0x11 #define MoterRevolutionH 0x12 #define MoterPulseL 0x13 @@ -42,3 +42,4 @@ +
--- a/main.cpp Tue Jul 21 08:13:33 2015 +0000
+++ b/main.cpp Sat Aug 08 02:11:59 2015 +0000
@@ -281,7 +281,8 @@
{
Motor_mode();
Rotate();
- //printf("Tic\n");
+
+ //printf("Tic %d\n");
}
//void timer(){
extern "C" void execute_spi_slave_hw( void )
@@ -458,3 +459,4 @@
+
