Skip to content

Commit

Permalink
tpl_tick type is now generated by goil. Default to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
mbriday committed Sep 20, 2019
1 parent ca257ba commit 48b5107
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
@@ -0,0 +1,11 @@
/**
* tpl_tick is used for relative and absolute dates.
* tpl_tick should be an unsigned datatype.
*
* On MSP430, tpl_ticks should be limited to 16 bits
* (on 32 bits, arguments for system call SetRelAlarm
* would be passed through the stack, which is not
* possible)
*/
typedef uint16 tpl_tick;

12 changes: 12 additions & 0 deletions goil/templates/code/tpl_app_custom_types_h.goilTemplate
Expand Up @@ -246,6 +246,18 @@ end if


#endif /* WITH_AUTOSAR */ #endif /* WITH_AUTOSAR */


/* target specific types */

% template if exists tpl_target_specific_types or %
/**
* tpl_tick is used for relative and absolute dates.
* tpl_tick should be an unsigned datatype.
*
* Default aliased type is "unsigned long int"
*/
typedef uint32 tpl_tick;
%end template%

#endif /* TPL_APP_CUSTOM_TYPES_H */ #endif /* TPL_APP_CUSTOM_TYPES_H */


/* End of file % !FILENAME % */ /* End of file % !FILENAME % */
Expand Down
8 changes: 0 additions & 8 deletions os/tpl_os_custom_types.h
Expand Up @@ -31,14 +31,6 @@
#include "tpl_os_application_def.h" #include "tpl_os_application_def.h"
#include "tpl_app_custom_types.h" #include "tpl_app_custom_types.h"


/**
* tpl_tick is used for relative and absolute dates.
* tpl_tick should be an unsigned datatype.
*
* Default aliased type is "unsigned long int"
*/
typedef uint32 tpl_tick;

/** /**
* tpl_buffer is a pointer to a chunk of data in memory * tpl_buffer is a pointer to a chunk of data in memory
*/ */
Expand Down

0 comments on commit 48b5107

Please sign in to comment.