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. More...
 
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. More...
 
int8_t pwm_start (uint8_t timer, uint8_t ab, uint8_t port, uint8_t pin)
 Once configured, starts the PWM. More...
 
int8_t pwm_set_direction (uint8_t timer, uint8_t ab, uint8_t dir)
 Sets the PWM duty cycle signal direction (high/low) More...
 
int8_t pwm_toggle_direction (uint8_t timer, uint8_t ab)
 Toggle the PWM signal direction (inverts the current duty cycle) More...
 
int8_t pwm_disable (uint8_t timer, uint8_t ab, uint8_t port, uint8_t pin)
 Disables a previously PWM configured GPTn. More...
 

Detailed Description

Driver for the CC2538 PWM.

Author
Javier Sanchez jsanc.nosp@m.hez@.nosp@m.zoler.nosp@m.tia..nosp@m.com Antonio Lignan alina.nosp@m.n@zo.nosp@m.lerti.nosp@m.a.co.nosp@m.m

Definition in file pwm.c.