4545
Fork of mbed-dev by
targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad.h@144:ef7eb2e8f9f7, 2016-09-02 (annotated)
- Committer:
- <>
- Date:
- Fri Sep 02 15:07:44 2016 +0100
- Revision:
- 144:ef7eb2e8f9f7
- Child:
- 147:30b64687e01f
This updates the lib to the mbed lib v125
Who changed what in which revision?
User | Revision | Line number | New 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 | ****************************************************************************** |
<> | 144:ef7eb2e8f9f7 | 11 | * @copyright (c) 2012 ON Semiconductor. All rights reserved. |
<> | 144:ef7eb2e8f9f7 | 12 | * ON Semiconductor is supplying this software for use with ON Semiconductor |
<> | 144:ef7eb2e8f9f7 | 13 | * processor based microcontrollers only. |
<> | 144:ef7eb2e8f9f7 | 14 | * |
<> | 144:ef7eb2e8f9f7 | 15 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
<> | 144:ef7eb2e8f9f7 | 16 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
<> | 144:ef7eb2e8f9f7 | 17 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
<> | 144:ef7eb2e8f9f7 | 18 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, |
<> | 144:ef7eb2e8f9f7 | 19 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
<> | 144:ef7eb2e8f9f7 | 20 | * @endinternal |
<> | 144:ef7eb2e8f9f7 | 21 | * |
<> | 144:ef7eb2e8f9f7 | 22 | * @ingroup pad |
<> | 144:ef7eb2e8f9f7 | 23 | * |
<> | 144:ef7eb2e8f9f7 | 24 | * @details |
<> | 144:ef7eb2e8f9f7 | 25 | */ |
<> | 144:ef7eb2e8f9f7 | 26 | |
<> | 144:ef7eb2e8f9f7 | 27 | #ifndef _PAD_H_ |
<> | 144:ef7eb2e8f9f7 | 28 | #define _PAD_H_ |
<> | 144:ef7eb2e8f9f7 | 29 | |
<> | 144:ef7eb2e8f9f7 | 30 | /************************************************************************************************* |
<> | 144:ef7eb2e8f9f7 | 31 | * * |
<> | 144:ef7eb2e8f9f7 | 32 | * Header files * |
<> | 144:ef7eb2e8f9f7 | 33 | * * |
<> | 144:ef7eb2e8f9f7 | 34 | *************************************************************************************************/ |
<> | 144:ef7eb2e8f9f7 | 35 | |
<> | 144:ef7eb2e8f9f7 | 36 | #include "types.h" |
<> | 144:ef7eb2e8f9f7 | 37 | #include "memory_map.h" |
<> | 144:ef7eb2e8f9f7 | 38 | #include "gpio_map.h" |
<> | 144:ef7eb2e8f9f7 | 39 | #include "pad_map.h" |
<> | 144:ef7eb2e8f9f7 | 40 | #include "crossbar.h" |
<> | 144:ef7eb2e8f9f7 | 41 | #include "clock.h" |
<> | 144:ef7eb2e8f9f7 | 42 | |
<> | 144:ef7eb2e8f9f7 | 43 | /************************************************************************************************** |
<> | 144:ef7eb2e8f9f7 | 44 | * * |
<> | 144:ef7eb2e8f9f7 | 45 | * Type definitions * |
<> | 144:ef7eb2e8f9f7 | 46 | * * |
<> | 144:ef7eb2e8f9f7 | 47 | **************************************************************************************************/ |
<> | 144:ef7eb2e8f9f7 | 48 | |
<> | 144:ef7eb2e8f9f7 | 49 | |
<> | 144:ef7eb2e8f9f7 | 50 | |
<> | 144:ef7eb2e8f9f7 | 51 | #define CROSS_REG_ADRS_BYTE_SIZE 4 |
<> | 144:ef7eb2e8f9f7 | 52 | |
<> | 144:ef7eb2e8f9f7 | 53 | #define PAD_REG_ADRS_BYTE_SIZE 4 |
<> | 144:ef7eb2e8f9f7 | 54 | |
<> | 144:ef7eb2e8f9f7 | 55 | |
<> | 144:ef7eb2e8f9f7 | 56 | /************************************************************************************************* |
<> | 144:ef7eb2e8f9f7 | 57 | * * |
<> | 144:ef7eb2e8f9f7 | 58 | * Functions * |
<> | 144:ef7eb2e8f9f7 | 59 | * * |
<> | 144:ef7eb2e8f9f7 | 60 | *************************************************************************************************/ |
<> | 144:ef7eb2e8f9f7 | 61 | |
<> | 144:ef7eb2e8f9f7 | 62 | /** |
<> | 144:ef7eb2e8f9f7 | 63 | * @brief |
<> | 144:ef7eb2e8f9f7 | 64 | * Configures the PAD IO for desired behavior |
<> | 144:ef7eb2e8f9f7 | 65 | */ |
<> | 144:ef7eb2e8f9f7 | 66 | extern void fPadInit(); |
<> | 144:ef7eb2e8f9f7 | 67 | |
<> | 144:ef7eb2e8f9f7 | 68 | /** |
<> | 144:ef7eb2e8f9f7 | 69 | * @brief |
<> | 144:ef7eb2e8f9f7 | 70 | * Set ouptput drive strength, output drive type & pull type for PAD IO |
<> | 144:ef7eb2e8f9f7 | 71 | * |
<> | 144:ef7eb2e8f9f7 | 72 | * @param PadNum Pad number |
<> | 144:ef7eb2e8f9f7 | 73 | * @param OutputDriveStrength Ouput drive strength. Ref Table: O/p drive strength |
<> | 144:ef7eb2e8f9f7 | 74 | * @param OutputDriveType Push/pull: 0; opern dran: 1 |
<> | 144:ef7eb2e8f9f7 | 75 | * @param PullType Pull down active: 0; no pull active:1 or 2; pull up active: 3 |
<> | 144:ef7eb2e8f9f7 | 76 | * |
<> | 144:ef7eb2e8f9f7 | 77 | * @return true for success; false for invalid parameters |
<> | 144:ef7eb2e8f9f7 | 78 | */ |
<> | 144:ef7eb2e8f9f7 | 79 | extern boolean fPadIOCtrl(uint8_t, uint8_t, uint8_t, uint8_t); |
<> | 144:ef7eb2e8f9f7 | 80 | |
<> | 144:ef7eb2e8f9f7 | 81 | #endif //_PAD_H_ |
<> | 144:ef7eb2e8f9f7 | 82 | #endif /* REVD */ |