diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-11-05 20:13:58 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-11-05 20:13:58 +0000 |
commit | 8e0e4b064425c9c54e109191bba8bcf0775ba9ee (patch) | |
tree | 3933b00193372643b9a396d431f3e22bb49239fc /testhal/STM32 | |
parent | cd153877bab2e0d03feb571f4ad702e199f2cf52 (diff) | |
download | ChibiOS-8e0e4b064425c9c54e109191bba8bcf0775ba9ee.tar.gz ChibiOS-8e0e4b064425c9c54e109191bba8bcf0775ba9ee.tar.bz2 ChibiOS-8e0e4b064425c9c54e109191bba8bcf0775ba9ee.zip |
Fixed memory mapped mode.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12410 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/multi/WSPI-MFS/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
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);
|