Contiki-NG
|
Driver for the CC2538 PWM. More...
#include "contiki.h"
#include "dev/ioc.h"
#include "dev/gpio.h"
#include "dev/sys-ctrl.h"
#include "dev/pwm.h"
#include "lpm.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
PWM functions | |
int8_t | pwm_enable (uint32_t freq, uint8_t duty, uint32_t count, uint8_t timer, uint8_t ab) |
Configures the general purpose timer in PWM mode. | |
int8_t | pwm_stop (uint8_t timer, uint8_t ab, uint8_t port, uint8_t pin, uint8_t state) |
Halts the PWM in a given GPT/timer. | |
int8_t | pwm_start (uint8_t timer, uint8_t ab, uint8_t port, uint8_t pin) |
Once configured, starts the PWM. | |
int8_t | pwm_set_direction (uint8_t timer, uint8_t ab, uint8_t dir) |
Sets the PWM duty cycle signal direction (high/low) | |
int8_t | pwm_toggle_direction (uint8_t timer, uint8_t ab) |
Toggle the PWM signal direction (inverts the current duty cycle) | |
int8_t | pwm_disable (uint8_t timer, uint8_t ab, uint8_t port, uint8_t pin) |
Disables a previously PWM configured GPTn. | |
Driver for the CC2538 PWM.
Definition in file pwm.c.