mbed library sources
Dependents: Freedman_v2 Nucleo_i2c_OLED_BME280_copy
Fork of mbed-src by
targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.h@580:3c14cb9b87c5, 2015-07-02 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Jul 02 16:15:09 2015 +0100
- Revision:
- 580:3c14cb9b87c5
Synchronized with git revision 213caf296f26963a7bea129b8ec4f33bbd1e6588
Full URL: https://github.com/mbedmicro/mbed/commit/213caf296f26963a7bea129b8ec4f33bbd1e6588/
commit of mps2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 580:3c14cb9b87c5 | 1 | /* mbed Microcontroller Library |
mbed_official | 580:3c14cb9b87c5 | 2 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 580:3c14cb9b87c5 | 3 | * |
mbed_official | 580:3c14cb9b87c5 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 580:3c14cb9b87c5 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 580:3c14cb9b87c5 | 6 | * You may obtain a copy of the License at |
mbed_official | 580:3c14cb9b87c5 | 7 | * |
mbed_official | 580:3c14cb9b87c5 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 580:3c14cb9b87c5 | 9 | * |
mbed_official | 580:3c14cb9b87c5 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 580:3c14cb9b87c5 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 580:3c14cb9b87c5 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 580:3c14cb9b87c5 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 580:3c14cb9b87c5 | 14 | * limitations under the License. |
mbed_official | 580:3c14cb9b87c5 | 15 | */ |
mbed_official | 580:3c14cb9b87c5 | 16 | |
mbed_official | 580:3c14cb9b87c5 | 17 | /* |
mbed_official | 580:3c14cb9b87c5 | 18 | * Code implementation file for the fpga functions. |
mbed_official | 580:3c14cb9b87c5 | 19 | */ |
mbed_official | 580:3c14cb9b87c5 | 20 | |
mbed_official | 580:3c14cb9b87c5 | 21 | #include "SMM_MPS2.h" // MPS2 common header |
mbed_official | 580:3c14cb9b87c5 | 22 | |
mbed_official | 580:3c14cb9b87c5 | 23 | // Function to delay n*ticks (25MHz = 40nS per tick) |
mbed_official | 580:3c14cb9b87c5 | 24 | // Used for I2C drivers |
mbed_official | 580:3c14cb9b87c5 | 25 | void i2c_delay(unsigned int tick); |
mbed_official | 580:3c14cb9b87c5 | 26 | |
mbed_official | 580:3c14cb9b87c5 | 27 | /* Sleep function to delay n*mS |
mbed_official | 580:3c14cb9b87c5 | 28 | * Uses FPGA counter. |
mbed_official | 580:3c14cb9b87c5 | 29 | */ |
mbed_official | 580:3c14cb9b87c5 | 30 | void Sleepms(unsigned int msec); |
mbed_official | 580:3c14cb9b87c5 | 31 | |
mbed_official | 580:3c14cb9b87c5 | 32 | /* Sleep function to delay n*uS |
mbed_official | 580:3c14cb9b87c5 | 33 | */ |
mbed_official | 580:3c14cb9b87c5 | 34 | void Sleepus(unsigned int usec); |