##############################################################################
#                                                                            #
# IAR ARM ANSI C/C++ Compiler V4.11A/W32               20/Jul/2004  18:58:48 #
# Copyright 1999-2004 IAR Systems. All rights reserved.                      #
#                                                                            #
#    Cpu mode        =  arm                                                  #
#    Endian          =  little                                               #
#    Stack alignment =  4                                                    #
#    Source file     =  C:\medusa\olimex.c                                   #
#    Command line    =  -I "C:\Program Files\IAR Systems\Embedded Workbench  #
#                       4.0\ARM\INC\" -lc C:\medusa\Debug\List\ -la          #
#                       C:\medusa\Debug\List\ -o C:\medusa\Debug\Obj\ -s2    #
#                       --no_cse --no_unroll --no_inline --no_code_motion    #
#                       --no_tbaa --no_clustering --no_scheduling --debug    #
#                       --cpu_mode arm --endian little --cpu ARM7TDMI-S      #
#                       --stack_align 4 -e --fpu None                        #
#                       "-D_DLIB_CONFIG_FILE=C:\Program Files\IAR            #
#                       Systems\Embedded Workbench                           #
#                       4.0\ARM\LIB\dl4tpannl8n.h" C:\medusa\olimex.c        #
#    List file       =  C:\medusa\Debug\List\olimex.lst                      #
#    Object file     =  C:\medusa\Debug\Obj\olimex.r79                       #
#                                                                            #
#                                                                            #
##############################################################################

C:\medusa\olimex.c
      1          #include "archinc.h"
      2          #include "olimex.h"
      3          
      4          #ifdef CONFIG_BOARD_OLIMEX
      5          
      6          /* Olimex LPC-P1 board */
      7          
      8          static boolean ledState = false;
      9          
     10          int olimexInit(void)
     11          {
     12            PINSEL0 = (lpc210x_reg)0x80001555;
     13            PINSEL1 = (lpc210x_reg)0x55400000;
     14          
     15            IODIR   = (lpc210x_reg)0x00000280;
     16            IOSET   = (lpc210x_reg)0x00000280;
     17            IOCLR   = (lpc210x_reg)0x00000000;
     18          
     19            ledState = false;
     20            return 0;
     21          }
     22          
     23          void olimexLedOn(void)
     24          {
     25            ledState = true;
     26            IOCLR = (lpc210x_reg)0x00000080;
     27          }
     28          
     29          void olimexLedOff(void)
     30          {
     31            ledState = false;
     32            IOSET = (lpc210x_reg)0x00000080;
     33          }
     34          
     35          void olimexLedToggle(void)
     36          {
     37            if (ledState == true)
     38              olimexLedOff();
     39            else
     40              olimexLedOn();
     41          }
     42          
     43          #endif /* CONFIG_BOARD_OLIMEX */
     44          


   Segment part sizes:

     Function/Label Bytes
     -------------- -----

 
 
 0 bytes of memory

Errors: none
Warnings: none
