From 8e0e4b064425c9c54e109191bba8bcf0775ba9ee Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 5 Nov 2018 20:13:58 +0000 Subject: Fixed memory mapped mode. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12410 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- testhal/STM32/multi/WSPI-MFS/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'testhal') diff --git a/testhal/STM32/multi/WSPI-MFS/main.c b/testhal/STM32/multi/WSPI-MFS/main.c index 18d4a22e2..30c7a9c89 100644 --- a/testhal/STM32/multi/WSPI-MFS/main.c +++ b/testhal/STM32/multi/WSPI-MFS/main.c @@ -83,7 +83,16 @@ int main(void) { /* Initializing and starting snor1 driver.*/ snorObjectInit(&snor1); snorStart(&snor1, &snorcfg1); - +#if 1 + /* Testing memory mapped mode.*/ + { + uint8_t *addr; + + snorMemoryMap(&snor1, &addr); + chThdSleepMilliseconds(50); + snorMemoryUnmap(&snor1); + } +#endif /* Creates the blinker thread.*/ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); -- cgit v1.2.3