]> git.gag.com Git - fw/sdcc/commitdiff
* support/regression/ports/pic16/support.c: use gpsim usart module from
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Jun 2006 07:03:31 +0000 (07:03 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Jun 2006 07:03:31 +0000 (07:03 +0000)
  libgpsim_modules library

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4245 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/ports/pic16/support.c

index 9c3cb686cbc869d6b4ee128cd37b4b8c050e680a..7a6a747260905e75c16e3f43ba3dfebc5e76fa5b 100644 (file)
@@ -40,14 +40,14 @@ _putchar(char c)
 void
 _initEmu(void)
 {
-  /* load and configure the libgpsim_usart_con module */
+  /* load and configure the libgpsim_modules module */
   _asm
     ;; Set frequency to 20MHz
     .direct "e", ".frequency=20e6"
     
     ;; Load the USART library and module
-    .direct "e", "module library libgpsim_usart_con"
-    .direct "e", "module load usart_con U1"
+    .direct "e", "module library libgpsim_modules"
+    .direct "e", "module load usart U1"
 
     ;; Define a node
     .direct "e", "node PIC_tx"
@@ -57,6 +57,9 @@ _initEmu(void)
 
     ;; Set the USART module's Baud Rate
     .direct "e", "U1.rxbaud = 9600"
+
+    ;; Display the received character on terminal
+    .direct "e", "U1.console = true"
   _endasm;
 
   /* USART initialization */