mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
Using existing atmel led routines
There is a config file called led.c in the atmel softpack source code which provides routines for configuring, setting and clearing the LEDs.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "board_lowlevel.h"
|
||||
#include "uart_console.h"
|
||||
#include "iso7816_4.h"
|
||||
#include "led.h"
|
||||
|
||||
/** Highlevel */
|
||||
#include "trace.h"
|
||||
@@ -34,6 +35,13 @@
|
||||
#define LED_RED PIO_PA17
|
||||
#define LED_GREEN PIO_PA18
|
||||
|
||||
#define PIN_LED_RED {LED_RED, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PIN_LED_GREEN {LED_GREEN, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PINS_LEDS PIN_LED_RED, PIN_LED_GREEN
|
||||
|
||||
#define LED_NUM_RED 0
|
||||
#define LED_NUM_GREEN 1
|
||||
|
||||
/** USART0 pin RX */
|
||||
#define PIN_USART0_RXD {PIO_PA9A_URXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
||||
/** USART0 pin TX */
|
||||
|
||||
Reference in New Issue
Block a user