added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/pinmap.c@147:ba84b7dc41a7, 2016-09-10 (annotated)
- Committer:
- JojoS
- Date:
- Sat Sep 10 15:32:04 2016 +0000
- Revision:
- 147:ba84b7dc41a7
- Parent:
- 80:bdf1132a57cf
added prescaler for 16 bit timers (solution as in LPC11xx), default prescaler 31 for max 28 ms period time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 80:bdf1132a57cf | 1 | /* mbed Microcontroller Library |
mbed_official | 80:bdf1132a57cf | 2 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 80:bdf1132a57cf | 3 | * |
mbed_official | 80:bdf1132a57cf | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 80:bdf1132a57cf | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 80:bdf1132a57cf | 6 | * You may obtain a copy of the License at |
mbed_official | 80:bdf1132a57cf | 7 | * |
mbed_official | 80:bdf1132a57cf | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 80:bdf1132a57cf | 9 | * |
mbed_official | 80:bdf1132a57cf | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 80:bdf1132a57cf | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 80:bdf1132a57cf | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 80:bdf1132a57cf | 13 | * See the License for the specific language governing permissions and |
mbed_official | 80:bdf1132a57cf | 14 | * limitations under the License. |
mbed_official | 80:bdf1132a57cf | 15 | */ |
mbed_official | 80:bdf1132a57cf | 16 | #include "mbed_assert.h" |
mbed_official | 80:bdf1132a57cf | 17 | #include "pinmap.h" |
mbed_official | 80:bdf1132a57cf | 18 | #include "mbed_error.h" |
mbed_official | 80:bdf1132a57cf | 19 | |
mbed_official | 80:bdf1132a57cf | 20 | |
mbed_official | 80:bdf1132a57cf | 21 | void pin_function(PinName pin, int function) { |
mbed_official | 80:bdf1132a57cf | 22 | MBED_ASSERT(pin != (PinName)NC); |
mbed_official | 80:bdf1132a57cf | 23 | |
mbed_official | 80:bdf1132a57cf | 24 | } |
mbed_official | 80:bdf1132a57cf | 25 | |
mbed_official | 80:bdf1132a57cf | 26 | void pin_mode(PinName pin, PinMode mode) { |
mbed_official | 80:bdf1132a57cf | 27 | MBED_ASSERT(pin != (PinName)NC); |
mbed_official | 80:bdf1132a57cf | 28 | } |