|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
// Led L2 is connected to PORTD:7 (active high)
|
|
// Led L2 is connected to PORTD:7 (active high)
|
|
|
|
|
|
-void setup (void) {
|
|
|
|
|
|
+void setup (USER_MODE) {
|
|
// Configure PTD7 as digital port (input or output)
|
|
// Configure PTD7 as digital port (input or output)
|
|
PORTD_PCR (7) = PORT_PCR_MUX (1) ;
|
|
PORTD_PCR (7) = PORT_PCR_MUX (1) ;
|
|
|
|
|
|
@@ -13,7 +13,7 @@ void setup (void) {
|
|
startSystick();
|
|
startSystick();
|
|
}
|
|
}
|
|
|
|
|
|
-void loop (void) {
|
|
|
|
|
|
+void loop (USER_MODE) {
|
|
// Drive PTD7 high --> led is on
|
|
// Drive PTD7 high --> led is on
|
|
GPIOD_PSOR = 1 << 7 ;
|
|
GPIOD_PSOR = 1 << 7 ;
|
|
|
|
|