no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mbed_pwm.h
Go to the documentation of this file.
1/***************************************************************************/
31
32#ifndef MBED_PWM_H
33#define MBED_PWM_H
34
35// Platform support needs to be C-compatible to work with other drivers
36#ifdef __cplusplus
37extern "C"
38{
39#endif
40
41#include <stdio.h>
42
44 uint16_t pwm_pin; // PWM pin number
45};
46
48 void *pwm_obj; // Mbed PWM instance/object
49};
50
54extern const struct no_os_pwm_platform_ops mbed_pwm_ops;
55
56#ifdef __cplusplus // Closing extern c
57}
58#endif
59
60#endif /* MBED_PWM_H */
const struct no_os_pwm_platform_ops mbed_pwm_ops
Mbed specific PWM platform ops structure.
Definition mbed_pwm.h:47
void * pwm_obj
Definition mbed_pwm.h:48
Definition mbed_pwm.h:43
uint16_t pwm_pin
Definition mbed_pwm.h:44
Structure holding PWM function pointers that point to the platform specific function.
Definition no_os_pwm.h:115