internals.md: Add doc to explain pwm internally is all in us
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 27 Aug 2015 16:03:39 +0000 (17:03 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 27 Aug 2015 16:03:39 +0000 (17:03 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
docs/internals.md

index db42c1b..a825375 100644 (file)
@@ -114,6 +114,11 @@ set the pinmapper correctly for uart to work on some platforms.
 
 ### pwm ###
 
+Internally everything with PWM in mraa is in microseconds because that's what
+the linux kernel uses and is probably all the granularity we'll ever
+need/achieve with the kind of hardware we're targetting. Board configuration
+pwm max/min values are always set in microseconds.
+
 ### aio ###
 
 AIO pins are numbered after GPIO pins. This means that on Arduino style boards