diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-17 21:14:55 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-17 21:14:55 +0000 |
commit | 5d68a9bbf0ede82f82e099e2cb9c782cb523a49d (patch) | |
tree | 8aa61dddfdc0b28fb4e675027e0e3d78fbd36c55 | |
parent | 908373b487072d551d98059af63ce362dcc652fa (diff) | |
download | ChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.tar.gz ChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.tar.bz2 ChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.zip |
Minor fix on default demo and PAL driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10631 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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
|