Skip to content

Commit 6bb5916

Browse files
committed
add enum for analog output pin.
1 parent 0f0dd7f commit 6bb5916

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

variants/sipeed_maixduino/pins_arduino.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ static uint8_t maixduino_pin_map[14] = {4, 5, 21, 22, 23, 24, 32, 15, 14, 13, 12
8080

8181
uint8_t pinToFpio(uint8_t pin){ return maixduino_pin_map[pin]; }
8282

83+
typedef enum _analog_output_pin_t{
84+
A0,
85+
A1,
86+
A2,
87+
A3,
88+
A4,
89+
A5,
90+
ANALOG_OUTPUT_PIN_MAX,
91+
}analog_output_pin_t;
92+
8393
#define VARIANT_NUM_GPIOHS (32)
8494
#define VARIANT_NUM_GPIO ( 8)
8595
#define VARIANT_NUM_PWM (12)

0 commit comments

Comments
 (0)