diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-31 16:28:23 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-31 16:28:23 -0400 |
commit | 01c38f5567bf624413d901c2b287e63cdccd03a6 (patch) | |
tree | 184c1cbe4599ac16120070fcf8ba6b528f69fb36 /wirish/pwm.c | |
parent | 695f0dc4baa1bf682eec0226dc5632a9200174f1 (diff) | |
download | librambutan-01c38f5567bf624413d901c2b287e63cdccd03a6.tar.gz librambutan-01c38f5567bf624413d901c2b287e63cdccd03a6.zip |
Partial progress on wirish portability
This version throws "defined but unused" warnings which could probably
be squashed with #pragma
Diffstat (limited to 'wirish/pwm.c')
-rw-r--r-- | wirish/pwm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wirish/pwm.c b/wirish/pwm.c index 40715b5..995e2c7 100644 --- a/wirish/pwm.c +++ b/wirish/pwm.c @@ -31,12 +31,10 @@ #include "io.h" #include "pwm.h" -extern const PinMapping PIN_MAP[NR_MAPLE_PINS]; - void pwmWrite(uint8 pin, uint16 duty_cycle) { TimerCCR ccr; - if (pin >= NR_MAPLE_PINS) { + if (pin >= NR_GPIO_PINS) { return; } |