Change in osmo-ccid-firmware[master]: boost uart priority

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Nov 28 15:23:47 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16287 )

Change subject: boost uart priority
......................................................................

boost uart priority

Change-Id: I10ea17ca8b120c09b8926da010c9e358b219f7ed
---
M sysmoOCTSIM/main.c
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 806a9f6..c73b715 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -474,6 +474,12 @@
 	board_init();
 	command_init("sysmoOCTSIM> ");
 
+	/* boost uart priority by setting all other irqs to uartprio+1 */
+	for(int i = 0; i < PERIPH_COUNT_IRQn; i++)
+		NVIC_SetPriority(i, 2);
+	for(int i = SERCOM0_0_IRQn; i <= SERCOM7_3_IRQn; i++)
+		NVIC_SetPriority(i, 1);
+
 	printf("\r\n\r\n"
 		"=============================================================================\n\r"
 		"sysmoOCTSIM firmware " GIT_VERSION "\n\r"

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16287
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I10ea17ca8b120c09b8926da010c9e358b219f7ed
Gerrit-Change-Number: 16287
Gerrit-PatchSet: 4
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191128/f2fc29c9/attachment.htm>


More information about the gerrit-log mailing list