+#define LED_ON() PIOA_SODR = LED_PIN;
+#define LED_OFF() PIOA_CODR = LED_PIN;
+
+#define LED_INIT() \
+ do { \
+ PIOA_PER = LED_PIN; \
+ /* Disable pullups */ \
+ PIOA_PUDR = LED_PIN; \
+ /* Set PIO stepper power supply as output */ \
+ PIOA_OER = LED_PIN; \
+ /* Disable multidrive on all pins */ \
+ PIOA_MDDR = LED_PIN; \
+ } while(0)