Changeset 224


Ignore:
Timestamp:
08/24/2007 06:39:20 PM (4 years ago)
Author:
agr
Message:

TimeScope added for measuring sections of code

Location:
nano-RK
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • nano-RK/projects/basic_tasks/main.c

    r162 r224  
    6464  while(1) { 
    6565        nrk_led_toggle(ORANGE_LED); 
     66        nrk_gpio_toggle(NRK_DEBUG_0); 
    6667        printf( "Task1 cnt=%d\r\n",cnt ); 
    6768        nrk_wait_until_next_period(); 
     
    7980  while(1) { 
    8081        nrk_led_toggle(BLUE_LED); 
     82        nrk_gpio_toggle(NRK_DEBUG_1); 
    8183        printf( "Task2 cnt=%d\r\n",cnt ); 
    8284        nrk_wait_until_next_period(); 
     
    9395  while(1) { 
    9496        nrk_led_toggle(GREEN_LED); 
     97        nrk_gpio_toggle(NRK_DEBUG_2); 
    9598        printf( "Task3 cnt=%d\r\n",cnt ); 
    9699        nrk_wait_until_next_period(); 
     
    107110  while(1) { 
    108111        nrk_led_toggle(RED_LED); 
     112        nrk_gpio_toggle(NRK_DEBUG_3); 
    109113        printf( "Task4 cnt=%d\r\n",cnt ); 
    110114        nrk_wait_until_next_period(); 
  • nano-RK/projects/basic_tasks/makefile

    r222 r224  
    11# Platform name  cc2420DK, firefly, micaZ, firefly2_1, firefly2_2 
    2 PLATFORM = micaZ 
     2PLATFORM = firefly2_2 
    33 
    44 
     
    77 
    88# Set the Port that you programmer is connected to  
    9 PROGRAMMING_PORT = /dev/ttyUSB0 # programmer connected to serial device 
     9PROGRAMMING_PORT = /dev/ttyUSB1 # programmer connected to serial device 
    1010 
    1111# Set this such that the nano-RK directory is the base path 
  • nano-RK/src/platform/firefly2_2/include/hal_firefly2_2.h

    r184 r224  
    6969        PORTC = BM(CSN); \ 
    7070        DDRE  = BM(LED_0) | BM(LED_1) | BM(LED_2) | BM(LED_3); \ 
    71         DDRD  = BM(UART1_TXD); \ 
     71        DDRD  = BM(UART1_TXD) | BM(DEBUG_2) | BM(DEBUG_3); \ 
    7272        PORTE  = BM(UART0_TXD); \ 
    7373        DDRA  = BM(VREG_EN) | BM(RESET_N) | BM(DEBUG_0) | BM(DEBUG_1); \ 
  • nano-RK/src/platform/firefly2_2/include/nrk_pin_define.h

    r94 r224  
    3535//---------------------------------------------------------------------------------------------- 
    3636// Port D 
     37#define DEBUG_2         0 // PD.0 - Output: I2C_SCL  (USE as DEBUG_2)  
     38#define DEBUG_3         1 // PD.1 - Output: I2C_SDA  (USE as DEBUG_3)  
    3739#define UART1_RXD       2 // PD.2 - Input:  UART1 RXD 
    3840#define UART1_TXD       3 // PD.3 - Output: UART1 TXD 
     41#define CCA             4 // PD.6 - Input:  CCA from CC2420 
     42#define UART1_RTS       5 // PD.5 - Output: UART HW handshaking: RTS 
    3943#define SFD             6 // PD.4 - Input:  SFD from CC2420 
    40 #define UART1_RTS       5 // PD.5 - Output: UART HW handshaking: RTS 
    41 #define CCA             4 // PD.6 - Input:  CCA from CC2420 
    4244#define UART1_CTS       7 // PD.7 - Input:  UART HW handshaking: CTS 
    4345 
     
    138140DECLARE_NRK_PIN( DEBUG_0 )                      // declare pin named NRK_DEBUG_0 
    139141DECLARE_NRK_PIN( DEBUG_1 )                      // declare pin named NRK_DEBUG_1 
     142DECLARE_NRK_PIN( DEBUG_2 )                      // (I2C_SCL)  
     143DECLARE_NRK_PIN( DEBUG_3 )                      // (I2C_SDA)  
     144DECLARE_NRK_PIN( DEBUG_1 )                      // declare pin named NRK_DEBUG_1 
    140145DECLARE_NRK_PIN( BUTTON )                       // declare pin named NRK_BUTTON 
    141146 
  • nano-RK/src/platform/firefly2_2/source/ulib.c

    r223 r224  
    141141//------------------------------- 
    142142// Port D 
     143NRK_PIN( DEBUG_2,DEBUG_2, NRK_PORTD ) 
     144NRK_PIN( DEBUG_3,DEBUG_3, NRK_PORTD ) 
    143145NRK_PIN( UART1_RXD,UART1_RXD, NRK_PORTD ) 
    144146NRK_PIN( UART1_TXD,UART1_TXD, NRK_PORTD ) 
Note: See TracChangeset for help on using the changeset viewer.