Mercurial > flash_v2
changeset 1698:9a9ce858560e
* include/hal_io.h: Add cyg_hal_sys_mkdir() system call
* include/hal_intr.h: Add HAL_PLATFORM_RESET() macro
| author | asl |
|---|---|
| date | Wed, 04 Aug 2004 14:59:40 +0000 |
| parents | 4a515225541b |
| children | 1122a4ee1546 |
| files | packages/hal/synth/arch/current/ChangeLog packages/hal/synth/arch/current/include/hal_intr.h packages/hal/synth/arch/current/include/hal_io.h |
| diffstat | 3 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/synth/arch/current/ChangeLog +++ b/packages/hal/synth/arch/current/ChangeLog @@ -1,3 +1,8 @@ +2004-08-04 Alexander Neundorf <alexander.neundorf@jenoptik.com> + + * include/hal_io.h: Add cyg_hal_sys_mkdir() system call + * include/hal_intr.h: Add HAL_PLATFORM_RESET() macro + 2004-06-21 Alexander Neundorf <alexander.neundorf@jenoptik.com> * include/hal_io.h:
--- a/packages/hal/synth/arch/current/include/hal_intr.h +++ b/packages/hal/synth/arch/current/include/hal_intr.h @@ -240,13 +240,19 @@ externC cyg_uint32 hal_clock_read(v CYG_MACRO_END // ---------------------------------------------------------------------------- +// Resetting the Synth target is not possible, but existing the process is. +externC void cyg_hal_sys_exit(int); +#define HAL_PLATFORM_RESET() \ + CYG_MACRO_START \ + cyg_hal_sys_exit(0) \ + CYG_MACRO_END + +// ---------------------------------------------------------------------------- // Test case exit support. -externC void cyg_hal_sys_exit(int); #define CYGHWR_TEST_PROGRAM_EXIT() \ CYG_MACRO_START \ cyg_hal_sys_exit(0); \ CYG_MACRO_END - //--------------------------------------------------------------------------- #endif // ifndef CYGONCE_HAL_HAL_INTR_H // End of hal_intr.h
--- a/packages/hal/synth/arch/current/include/hal_io.h +++ b/packages/hal/synth/arch/current/include/hal_io.h @@ -492,6 +492,7 @@ externC int cyg_hal_sys_readdir(unsigned unsigned int count); externC int cyg_hal_sys_lstat(const char* name, struct cyg_hal_sys_stat *buf); externC int cyg_hal_sys_fstat(int fd, struct cyg_hal_sys_stat *buf); +externC int cyg_hal_sys_mkdir(const char* path, int mode); // Access to environmental data extern int cyg_hal_sys_argc;
