diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-06-11 13:43:27 +0200 |
---|---|---|
committer | King Kévin <kingkevin@cuvoodoo.info> | 2018-07-04 14:28:19 +0200 |
commit | 4091d78c4bb8f1e90c59a6fafc38286b20a1c777 (patch) | |
tree | 98b076de8c3443b711c8da9f606e8aabe25f892b /firmware/libboard/common/include/board_common.h | |
parent | ee62a9da56ed7af62c48fbf0e08c880cd74f7d9f (diff) |
board: comment USART definitions and add corresponding IRQ numbers
Change-Id: I3c38e7d75bc7b511827c33af69e335e50d0b35d2
Diffstat (limited to 'firmware/libboard/common/include/board_common.h')
-rw-r--r-- | firmware/libboard/common/include/board_common.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/libboard/common/include/board_common.h b/firmware/libboard/common/include/board_common.h index 8349698..27f7409 100644 --- a/firmware/libboard/common/include/board_common.h +++ b/firmware/libboard/common/include/board_common.h @@ -81,10 +81,19 @@ #define BOARD_ISO7816_BASE_USART USART0 #define BOARD_ISO7816_ID_USART ID_USART0 +/* USART peripherals for a phone and SIM card setup */ +/* USART peripheral connected to the SIM card */ #define USART_SIM USART0 +/* ID of USART peripheral connected to the SIM card */ #define ID_USART_SIM ID_USART0 -#define USART_PHONE USART1 -#define ID_USART_PHONE ID_USART1 +/* Interrupt request ID of USART peripheral connected to the SIM card */ +#define IRQ_USART_SIM USART0_IRQn +/* USART peripheral connected to the phone */ +#define USART_PHONE USART1 +/* ID of USART peripheral connected to the phone */ +#define ID_USART_PHONE ID_USART1 +/* Interrupt request ID of USART peripheral connected to the phone */ +#define IRQ_USART_PHONE USART1_IRQn #define SIM_PWEN PIO_PA5 #define VCC_FWD PIO_PA26 |