mbed library sources. Supersedes mbed-src.

Dependents:   Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Parent:
targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad.h@147:30b64687e01f
Child:
150:02e0a0aed4ec
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 #ifdef REVD
<> 144:ef7eb2e8f9f7 2 /**
<> 144:ef7eb2e8f9f7 3 ******************************************************************************
<> 144:ef7eb2e8f9f7 4 * @file pad.h
<> 144:ef7eb2e8f9f7 5 * @brief PAD Power management support code
<> 144:ef7eb2e8f9f7 6 * @internal
<> 144:ef7eb2e8f9f7 7 * @author ON Semiconductor
<> 144:ef7eb2e8f9f7 8 * $Rev: 2848 $
<> 144:ef7eb2e8f9f7 9 * $Date: 2014-04-01 22:48:18 +0530 (Tue, 01 Apr 2014) $
<> 144:ef7eb2e8f9f7 10 ******************************************************************************
<> 147:30b64687e01f 11 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
<> 147:30b64687e01f 12 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
<> 147:30b64687e01f 13 * under limited terms and conditions. The terms and conditions pertaining to the software
<> 147:30b64687e01f 14 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
<> 147:30b64687e01f 15 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
<> 147:30b64687e01f 16 * if applicable the software license agreement. Do not use this software and/or
<> 147:30b64687e01f 17 * documentation unless you have carefully read and you agree to the limited terms and
<> 147:30b64687e01f 18 * conditions. By using this software and/or documentation, you agree to the limited
<> 147:30b64687e01f 19 * terms and conditions.
<> 144:ef7eb2e8f9f7 20 *
<> 144:ef7eb2e8f9f7 21 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 22 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 23 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 24 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 25 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 26 * @endinternal
<> 144:ef7eb2e8f9f7 27 *
<> 144:ef7eb2e8f9f7 28 * @ingroup pad
<> 144:ef7eb2e8f9f7 29 *
<> 144:ef7eb2e8f9f7 30 * @details
<> 144:ef7eb2e8f9f7 31 */
<> 144:ef7eb2e8f9f7 32
<> 144:ef7eb2e8f9f7 33 #ifndef _PAD_H_
<> 144:ef7eb2e8f9f7 34 #define _PAD_H_
<> 144:ef7eb2e8f9f7 35
<> 144:ef7eb2e8f9f7 36 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 37 * *
<> 144:ef7eb2e8f9f7 38 * Header files *
<> 144:ef7eb2e8f9f7 39 * *
<> 144:ef7eb2e8f9f7 40 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 41
<> 144:ef7eb2e8f9f7 42 #include "types.h"
<> 144:ef7eb2e8f9f7 43 #include "memory_map.h"
<> 144:ef7eb2e8f9f7 44 #include "gpio_map.h"
<> 144:ef7eb2e8f9f7 45 #include "pad_map.h"
<> 144:ef7eb2e8f9f7 46 #include "crossbar.h"
<> 144:ef7eb2e8f9f7 47 #include "clock.h"
<> 144:ef7eb2e8f9f7 48
<> 144:ef7eb2e8f9f7 49 /**************************************************************************************************
<> 144:ef7eb2e8f9f7 50 * *
<> 144:ef7eb2e8f9f7 51 * Type definitions *
<> 144:ef7eb2e8f9f7 52 * *
<> 144:ef7eb2e8f9f7 53 **************************************************************************************************/
<> 144:ef7eb2e8f9f7 54
<> 144:ef7eb2e8f9f7 55
<> 144:ef7eb2e8f9f7 56
<> 144:ef7eb2e8f9f7 57 #define CROSS_REG_ADRS_BYTE_SIZE 4
<> 144:ef7eb2e8f9f7 58
<> 144:ef7eb2e8f9f7 59 #define PAD_REG_ADRS_BYTE_SIZE 4
<> 144:ef7eb2e8f9f7 60
<> 144:ef7eb2e8f9f7 61
<> 144:ef7eb2e8f9f7 62 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 63 * *
<> 144:ef7eb2e8f9f7 64 * Functions *
<> 144:ef7eb2e8f9f7 65 * *
<> 144:ef7eb2e8f9f7 66 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 67
<> 144:ef7eb2e8f9f7 68 /**
<> 144:ef7eb2e8f9f7 69 * @brief
<> 144:ef7eb2e8f9f7 70 * Configures the PAD IO for desired behavior
<> 144:ef7eb2e8f9f7 71 */
<> 144:ef7eb2e8f9f7 72 extern void fPadInit();
<> 144:ef7eb2e8f9f7 73
<> 144:ef7eb2e8f9f7 74 /**
<> 144:ef7eb2e8f9f7 75 * @brief
<> 144:ef7eb2e8f9f7 76 * Set ouptput drive strength, output drive type & pull type for PAD IO
<> 144:ef7eb2e8f9f7 77 *
<> 144:ef7eb2e8f9f7 78 * @param PadNum Pad number
<> 144:ef7eb2e8f9f7 79 * @param OutputDriveStrength Ouput drive strength. Ref Table: O/p drive strength
<> 144:ef7eb2e8f9f7 80 * @param OutputDriveType Push/pull: 0; opern dran: 1
<> 144:ef7eb2e8f9f7 81 * @param PullType Pull down active: 0; no pull active:1 or 2; pull up active: 3
<> 144:ef7eb2e8f9f7 82 *
<> 144:ef7eb2e8f9f7 83 * @return true for success; false for invalid parameters
<> 144:ef7eb2e8f9f7 84 */
<> 144:ef7eb2e8f9f7 85 extern boolean fPadIOCtrl(uint8_t, uint8_t, uint8_t, uint8_t);
<> 144:ef7eb2e8f9f7 86
<> 144:ef7eb2e8f9f7 87 #endif //_PAD_H_
<> 144:ef7eb2e8f9f7 88 #endif /* REVD */