Advanced: Creating Customized OSIs : Customizing API Definitions : Customizing Memory Management : Code—User Functions Definition Section

Code—User Functions Definition Section
 
Sample Definition
Functions Body Definition File [.c] Header
#if defined __HC12__ || defined __HC08__
#pragma CODE_SEG DEFAULT
#elif defined(COSMIC12)
This line will be added at the beginning of the file glob_func.c
This line will be added at the beginning of the file glob_func.c
#if defined __HC12__ || defined __HC08__
#pragma CODE_SEG DEFAULT
#elif defined(COSMIC12)
Functions Body Definition File [.c] Footer
#if defined __HC12__ || defined __HC08__
#pragma CODE_SEG DEFAULT
#elif defined(COSMIC12)
This line will be added at the end of the file glob_func.c
This line will be added at the end of the file glob_func.c
#if defined __HC12__ || defined __HC08__
#pragma CODE_SEG DEFAULT
#elif defined(COSMIC12)
Extern Declaration File [.h] Header
This line will be added at the beginning of the file type_def.h
This line will be added in the file type_def.h
Extern Declaration File [.h] Footer
This line will be added at the end of the file type_def.h
This line will be added at the end of the file type_def.h