This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Modifications in Z-Stack

Other Parts Discussed in Thread: Z-STACK, CC2430

Hi all,

I had successfully tested out Z-Stack sample applications with CC2430DK. 

Now we had designed our own board based on CC2430 chip. This custom board has 2 LEDs with two sensors on-board.

I would like to modify Z-stack HAL files so as to accommodate the above changes. 

This board doesn't need any of the below functions:

  • LCD
  • KEY
  • UART

I tried modifying the hal_board_cfg.h/hal_key.h/hal_key.h to change LED and avoid key interrupts, but this resulted in more number of errors.

How do I avoid/delete the hal_key.c/hal_key.c and other files without getting these errors.

I can understand that Z-stack is written keeping in mind their development kits, but Z-stack is useless unless it goes to real-deployment which will custom designed boards.

 

Thanks in advance

Regards

Adi

  • Hi Adi,

    Did you have a look at the Z-Stack HAL Porting Guide.pdf, which is part of the documents coming with the Z-Stack installer?

    It worked for me.

    -LL-

  • Look at hal_board_cfg.h under Components\hal\target in the Z-stack tree.  This file contains constant declarations used to compile in (or out) support for different hardware components; here's what the LCD section looks like (my target doesn't have one, either)...

    /* Set to TRUE enable LCD usage, FALSE disable it */
    #ifndef HAL_LCD
    #define HAL_LCD FALSE
    #endif
    
    Chris
  • Hi LL,

    The document is more helpful to port Z-stack to another platform rather customization of z-stack for my CC2430 board.

    Regards

    Adi

  • Hi Chrish,

    I am doing the same way as of now. But, then to have a complete control over the target platform in Z-stack, I wanted completely eliminate those files as well. Have you tried deleting the unnecessary files and disabling those functionalities in board configuration.

    If possible, can you share your hal board configuration.

     

    Regards

    Adi