diff options
-rwxr-xr-x | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c | 3 | ||||
-rw-r--r-- | os/hal/ports/SAMA/LLD/PIOv1/hal_pal_lld.h | 13 |
2 files changed, 7 insertions, 9 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c index e06c3471d..75977385c 100755 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c @@ -52,6 +52,9 @@ int main(void) { */
sdStart(&SD0, NULL);
+ /* Redirecting UART0 RX on PB26 and UART0 TX on PB 27. */
+ palSetGroupMode(PIOB, PAL_PORT_BIT(26) | PAL_PORT_BIT(27), 0U,
+ PAL_SAMA_FUNC_PERIPH_C);
/*
* Creates the blinker thread.
*/
diff --git a/os/hal/ports/SAMA/LLD/PIOv1/hal_pal_lld.h b/os/hal/ports/SAMA/LLD/PIOv1/hal_pal_lld.h index c6c5d7cca..920f192d7 100644 --- a/os/hal/ports/SAMA/LLD/PIOv1/hal_pal_lld.h +++ b/os/hal/ports/SAMA/LLD/PIOv1/hal_pal_lld.h @@ -222,7 +222,9 @@ typedef struct { volatile uint32_t IDR;
volatile uint32_t IMR;
volatile uint32_t ISR;
- volatile uint32_t Reserved2[3];
+ volatile uint32_t SIONR;
+ volatile uint32_t SIOSR;
+ volatile uint32_t IOSSR;
volatile uint32_t IOFR;
} sama_pio_t;
#else
@@ -239,9 +241,7 @@ typedef struct { volatile uint32_t IDR;
volatile uint32_t IMR;
volatile uint32_t ISR;
- volatile uint32_t SIONR;
- volatile uint32_t SIOSR;
- volatile uint32_t IOSSR;
+ volatile uint32_t Reserved2[3];
volatile uint32_t IOFR;
} sama_pio_t;
#endif
@@ -490,11 +490,6 @@ typedef uint32_t iopadid_t; */
#define pal_lld_get_line_event(line)
-#if !defined(__DOXYGEN__)
-extern const PALConfig pal_default_config;
-extern palevent_t _pal_events[16];
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
|