Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
pwm_extra.h
00001 /***************************************************************************//** 00002 * @file pwm_extra.h 00003 * @brief: Header containing extra types required for Mbed PWM interface 00004 ******************************************************************************** 00005 * Copyright (c) 2021 Analog Devices, Inc. 00006 * 00007 * All rights reserved. 00008 * 00009 * This software is proprietary to Analog Devices, Inc. and its licensors. 00010 * By using this software you agree to the terms of the associated 00011 * Analog Devices Software License Agreement. 00012 *******************************************************************************/ 00013 00014 #ifndef PWM_EXTRA_H 00015 #define PWM_EXTRA_H 00016 00017 // Platform support needs to be C-compatible to work with other drivers 00018 #ifdef __cplusplus 00019 extern "C" 00020 { 00021 #endif 00022 00023 /******************************************************************************/ 00024 /***************************** Include Files **********************************/ 00025 /******************************************************************************/ 00026 00027 #include <stdio.h> 00028 00029 /******************************************************************************/ 00030 /********************** Macros and Constants Definitions **********************/ 00031 /******************************************************************************/ 00032 00033 /******************************************************************************/ 00034 /********************** Variables and User defined data types *****************/ 00035 /******************************************************************************/ 00036 00037 typedef struct { 00038 uint16_t pwm_pin; // PWM pin number 00039 } mbed_pwm_init_param; 00040 00041 struct mbed_pwm_desc { 00042 void *pwm_obj; /* Mbed PWM instance/object */ 00043 }; 00044 00045 /******************************************************************************/ 00046 /************************ Public Declarations *********************************/ 00047 /******************************************************************************/ 00048 00049 #ifdef __cplusplus // Closing extern c 00050 } 00051 #endif 00052 00053 #endif /* PWM_EXTRA_H */
Generated on Fri Jul 15 2022 08:04:32 by
