Loading...
Searching...
No Matches
arduino_board_pwm.h File Reference

Mapping of Arduino digital pin numbers to PWM settings. More...

Detailed Description

Mapping of Arduino digital pin numbers to PWM settings.

Note
The contents of this file are mostly generated using the python snippets documented. Do not edit these parts by hand, but rather adjust the python snippets and regenerate.
Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file arduino_board_pwm.h.

#include "arduino_iomap.h"
#include "periph/pwm.h"
+ Include dependency graph for arduino_board_pwm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define ARDUINO_PWM_FREQU   /* implementation defined */
 PWM frequency.
 
static const arduino_pwm_t arduino_pwm_list []
 List of PWM GPIO mappings.
 

Macro Definition Documentation

◆ ARDUINO_PWM_FREQU

#define ARDUINO_PWM_FREQU   /* implementation defined */

PWM frequency.

Definition at line 37 of file arduino_board_pwm.h.

Variable Documentation

◆ arduino_pwm_list

const arduino_pwm_t arduino_pwm_list[]
static

List of PWM GPIO mappings.

Generate using

format = """#ifdef ARDUINO_PIN_{0:}_PWM_DEV
{{ .dev = ARDUINO_PIN_{0:}_PWM_DEV, .chan = ARDUINO_PIN_{0:}_PWM_CHAN, .pin = {0:} }},
#endif"""
for i in range(32):
print(format.format(i))
void print(const char *s, size_t n)
Print string to stdout.

We assume D0..D31 are the only candidates for PWM pins as a wild guess. Once this no longer holds, the list needs to be extended.

Definition at line 60 of file arduino_board_pwm.h.