added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.h@80:bdf1132a57cf, 2016-03-02 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Mar 02 14:30:11 2016 +0000
- Revision:
- 80:bdf1132a57cf
Synchronized with git revision de3b14ec9234d586b155fd24badc22775489a3dc
Full URL: https://github.com/mbedmicro/mbed/commit/de3b14ec9234d586b155fd24badc22775489a3dc/
latest changes to add arduino support, plus fixes for IOTSS BEID
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 | |
mbed_official | 80:bdf1132a57cf | 17 | /* |
mbed_official | 80:bdf1132a57cf | 18 | * Code implementation file for the fpga functions. |
mbed_official | 80:bdf1132a57cf | 19 | */ |
mbed_official | 80:bdf1132a57cf | 20 | |
mbed_official | 80:bdf1132a57cf | 21 | #include "SMM_MPS2.h" // MPS2 common header |
mbed_official | 80:bdf1132a57cf | 22 | |
mbed_official | 80:bdf1132a57cf | 23 | // Function to delay n*ticks (25MHz = 40nS per tick) |
mbed_official | 80:bdf1132a57cf | 24 | // Used for I2C drivers |
mbed_official | 80:bdf1132a57cf | 25 | void i2c_delay(unsigned int tick); |
mbed_official | 80:bdf1132a57cf | 26 | |
mbed_official | 80:bdf1132a57cf | 27 | /* Sleep function to delay n*mS |
mbed_official | 80:bdf1132a57cf | 28 | * Uses FPGA counter. |
mbed_official | 80:bdf1132a57cf | 29 | */ |
mbed_official | 80:bdf1132a57cf | 30 | void Sleepms(unsigned int msec); |
mbed_official | 80:bdf1132a57cf | 31 | |
mbed_official | 80:bdf1132a57cf | 32 | /* Sleep function to delay n*uS |
mbed_official | 80:bdf1132a57cf | 33 | */ |
mbed_official | 80:bdf1132a57cf | 34 | void Sleepus(unsigned int usec); |