1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

sam: Added digitalPinHasPWM(..) method

Fixes #1342
This commit is contained in:
Cristian Maglie 2013-12-31 20:58:10 +01:00
parent 90ab663146
commit e2d373ed61

View File

@ -66,6 +66,7 @@ extern "C"{
#define portOutputRegister(port) ( &(port->PIO_ODSR) )
#define portInputRegister(port) ( &(port->PIO_PDSR) )
//#define portModeRegister(P) ( )
#define digitalPinHasPWM(P) ( g_APinDescription[P].ulPWMChannel != NOT_ON_PWM || g_APinDescription[P].ulTCChannel != NOT_ON_TIMER )
// Interrupts
#define digitalPinToInterrupt(p) ((p) < NUM_DIGITAL_PINS ? (p) : -1)