Mouse code for the MacroRat
mbed-dev/targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /** |
sahilmgandhi | 18:6a4db94011d3 | 2 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 3 | * @file pwm_map.h |
sahilmgandhi | 18:6a4db94011d3 | 4 | * @brief PWM HW register map |
sahilmgandhi | 18:6a4db94011d3 | 5 | * @internal |
sahilmgandhi | 18:6a4db94011d3 | 6 | * @author ON Semiconductor |
sahilmgandhi | 18:6a4db94011d3 | 7 | * $Rev: 3378 $ |
sahilmgandhi | 18:6a4db94011d3 | 8 | * $Date: 2015-04-28 13:38:36 +0530 (Tue, 28 Apr 2015) $ |
sahilmgandhi | 18:6a4db94011d3 | 9 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 10 | * Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor). |
sahilmgandhi | 18:6a4db94011d3 | 11 | * All rights reserved. This software and/or documentation is licensed by ON Semiconductor |
sahilmgandhi | 18:6a4db94011d3 | 12 | * under limited terms and conditions. The terms and conditions pertaining to the software |
sahilmgandhi | 18:6a4db94011d3 | 13 | * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf |
sahilmgandhi | 18:6a4db94011d3 | 14 | * (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and |
sahilmgandhi | 18:6a4db94011d3 | 15 | * if applicable the software license agreement. Do not use this software and/or |
sahilmgandhi | 18:6a4db94011d3 | 16 | * documentation unless you have carefully read and you agree to the limited terms and |
sahilmgandhi | 18:6a4db94011d3 | 17 | * conditions. By using this software and/or documentation, you agree to the limited |
sahilmgandhi | 18:6a4db94011d3 | 18 | * terms and conditions. |
sahilmgandhi | 18:6a4db94011d3 | 19 | * |
sahilmgandhi | 18:6a4db94011d3 | 20 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
sahilmgandhi | 18:6a4db94011d3 | 21 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
sahilmgandhi | 18:6a4db94011d3 | 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
sahilmgandhi | 18:6a4db94011d3 | 23 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, |
sahilmgandhi | 18:6a4db94011d3 | 24 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
sahilmgandhi | 18:6a4db94011d3 | 25 | * @endinternal |
sahilmgandhi | 18:6a4db94011d3 | 26 | * |
sahilmgandhi | 18:6a4db94011d3 | 27 | * @ingroup pwm |
sahilmgandhi | 18:6a4db94011d3 | 28 | * |
sahilmgandhi | 18:6a4db94011d3 | 29 | * @details |
sahilmgandhi | 18:6a4db94011d3 | 30 | * <p> |
sahilmgandhi | 18:6a4db94011d3 | 31 | * PWM HW register map description |
sahilmgandhi | 18:6a4db94011d3 | 32 | * </p> |
sahilmgandhi | 18:6a4db94011d3 | 33 | * |
sahilmgandhi | 18:6a4db94011d3 | 34 | * <h1> Reference document(s) </h1> |
sahilmgandhi | 18:6a4db94011d3 | 35 | * <p> |
sahilmgandhi | 18:6a4db94011d3 | 36 | * <a href="../../../../build/doc/pdf/IPC7205_PWM_APB_DS_v1P1.pdf" target="_blank"> |
sahilmgandhi | 18:6a4db94011d3 | 37 | * IPC7205 APB PWM Design Specification v1.1 </a> |
sahilmgandhi | 18:6a4db94011d3 | 38 | * </p> |
sahilmgandhi | 18:6a4db94011d3 | 39 | */ |
sahilmgandhi | 18:6a4db94011d3 | 40 | |
sahilmgandhi | 18:6a4db94011d3 | 41 | #ifndef PWM_MAP_H_ |
sahilmgandhi | 18:6a4db94011d3 | 42 | #define PWM_MAP_H_ |
sahilmgandhi | 18:6a4db94011d3 | 43 | |
sahilmgandhi | 18:6a4db94011d3 | 44 | #include "architecture.h" |
sahilmgandhi | 18:6a4db94011d3 | 45 | |
sahilmgandhi | 18:6a4db94011d3 | 46 | /** Power management Control HW Structure Overlay */ |
sahilmgandhi | 18:6a4db94011d3 | 47 | typedef struct { |
sahilmgandhi | 18:6a4db94011d3 | 48 | __O uint32_t DUTYCYCLE; |
sahilmgandhi | 18:6a4db94011d3 | 49 | __O uint32_t PWM_ENABLE; |
sahilmgandhi | 18:6a4db94011d3 | 50 | __O uint32_t PWM_DISABLE; |
sahilmgandhi | 18:6a4db94011d3 | 51 | __O uint32_t PRESCALE_ENABLE; |
sahilmgandhi | 18:6a4db94011d3 | 52 | __O uint32_t PRESCALE_DISABLE; |
sahilmgandhi | 18:6a4db94011d3 | 53 | union { |
sahilmgandhi | 18:6a4db94011d3 | 54 | struct { |
sahilmgandhi | 18:6a4db94011d3 | 55 | __I uint32_t CUR_DUTY_CYCLE_VALUE : 8; /** Curent value of duty Cycle */ |
sahilmgandhi | 18:6a4db94011d3 | 56 | __I uint32_t CUR_PRE_SCALER_STATE : 1; /** Current state of the prescaler. 1 the prescaler is enabled. 0 the prescaler is disabled. */ |
sahilmgandhi | 18:6a4db94011d3 | 57 | __I uint32_t CUR_PWM_ENABLE_STATE : 1; /** Current state of the PWM. 1 the PWM is enabled. 0 the PWM is disabled. */ |
sahilmgandhi | 18:6a4db94011d3 | 58 | __I uint32_t CUR_PWM_OUTPUT_STATE : 1; /** Current state of PWM output */ |
sahilmgandhi | 18:6a4db94011d3 | 59 | } BITS; |
sahilmgandhi | 18:6a4db94011d3 | 60 | __I uint32_t WORD; |
sahilmgandhi | 18:6a4db94011d3 | 61 | } READ_CONFIG_STATUS; |
sahilmgandhi | 18:6a4db94011d3 | 62 | } PwmReg_t, *PwmReg_pt; |
sahilmgandhi | 18:6a4db94011d3 | 63 | #endif /* PWM_MAP_H_ */ |