Dave Hylands
39296b40d4
Fix timer overflow code.
...
Teensy doesn't need to worry about overflows since all of
its timers are only 16-bit.
For PWM, the pulse width needs to be able to vary from 0..period+1
(pulse-width == period+1 corresponds to 100% PWM)
I couldn't test the 0xffffffff cases since we can't currently get a
period that big in python. With a prescaler of 0, that corresponds
to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't
set that using freq or period.
I also tested both stmhal and teensy with floats disabled, which
required a few other code changes to compile.
2014-09-27 19:40:37 -07:00
..
2014-09-26 00:57:26 +01:00
2014-08-06 22:33:31 +01:00
2014-07-31 23:44:04 +01:00
2014-09-15 23:49:57 +01:00
2014-09-15 23:49:57 +01:00
2014-03-11 23:55:41 -07:00
2014-05-03 18:26:03 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-09-27 19:40:37 -07:00
2014-05-03 23:27:38 +01:00
2014-05-02 23:03:23 +01:00
2014-06-28 23:32:03 +03:00
2014-05-03 23:27:38 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-09-15 23:49:57 +01:00
2014-05-03 23:27:38 +01:00
2014-08-30 00:35:11 +01:00
2014-08-04 11:09:51 +01:00
2014-07-31 23:44:04 +01:00
2014-07-31 23:44:04 +01:00
2014-08-30 00:35:11 +01:00
2014-07-19 16:39:13 +01:00
2014-05-03 23:27:38 +01:00
2014-05-03 23:27:38 +01:00
2014-05-03 23:27:38 +01:00
2014-07-03 13:25:24 +01:00
2014-05-08 23:04:49 +01:00
2014-03-12 18:15:55 -07:00
2014-08-24 16:28:17 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-06-28 23:32:03 +03:00
2014-05-25 22:27:57 +01:00
2014-09-17 23:27:42 +00:00
2014-08-25 13:24:33 +01:00
2014-08-30 00:35:11 +01:00
2014-06-15 00:41:47 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-07-30 11:46:05 +01:00
2014-05-03 23:27:38 +01:00
2014-09-23 10:59:05 +01:00
2014-04-19 00:32:25 +01:00
2014-09-26 00:57:26 +01:00
2014-09-26 00:57:26 +01:00
2014-08-30 00:35:11 +01:00
2014-08-25 17:38:55 +01:00
2014-09-27 19:40:37 -07:00
2014-06-19 18:54:34 +02:00
2014-04-19 00:32:25 +01:00
2014-08-30 00:35:11 +01:00
2014-09-17 23:27:42 +00:00
2014-09-26 00:57:26 +01:00
2014-09-26 00:57:26 +01:00
2014-08-07 23:15:41 -07:00
2014-06-28 23:32:03 +03:00
2014-05-03 23:27:38 +01:00
2014-08-07 23:15:41 -07:00
2014-06-15 22:48:05 -07:00
2014-09-19 09:26:13 -07:00
2014-09-19 09:26:13 -07:00
2014-09-19 09:26:13 -07:00
2014-09-07 20:42:01 +01:00
2014-07-20 13:57:43 +01:00
2014-04-16 02:41:26 +01:00
2014-09-07 20:40:32 +01:00
2014-08-30 00:35:11 +01:00
2014-07-20 13:57:43 +01:00
2014-08-26 14:13:53 +01:00
2014-05-03 23:27:38 +01:00
2014-09-23 15:31:56 +00:00
2014-05-03 23:27:38 +01:00
2014-09-26 00:57:26 +01:00
2014-08-04 11:09:51 +01:00
2014-08-04 11:09:51 +01:00
2014-06-28 23:32:03 +03:00
2014-05-03 23:27:38 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-09-15 23:49:57 +01:00
2014-09-15 23:49:57 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00
2014-09-26 00:57:26 +01:00
2014-09-26 00:57:26 +01:00
2014-03-11 23:55:41 -07:00
2014-05-03 23:27:38 +01:00
2014-06-28 23:32:03 +03:00
2014-08-25 18:12:44 +01:00
2014-05-03 23:27:38 +01:00
2014-09-23 10:59:05 +01:00
2014-06-28 23:32:03 +03:00
2014-05-03 23:27:38 +01:00
2014-09-13 00:12:41 +01:00
2014-09-25 15:47:53 +01:00
2014-08-25 18:12:44 +01:00
2014-08-25 17:38:55 +01:00
2014-09-27 19:40:37 -07:00
2014-09-21 22:54:02 +01:00
2014-09-07 20:57:18 +01:00
2014-07-20 13:57:43 +01:00
2014-08-30 00:35:11 +01:00
2014-08-04 11:09:51 +01:00
2014-07-31 10:30:42 +01:00
2014-07-31 10:30:42 +01:00
2014-06-02 21:43:02 +02:00
2014-05-03 23:27:38 +01:00
2014-05-03 23:27:38 +01:00
2014-05-03 23:27:38 +01:00
2014-09-15 23:49:57 +01:00
2014-05-03 23:27:38 +01:00
2014-08-30 00:35:11 +01:00
2014-05-03 23:27:38 +01:00