Skip to content

Commit

Permalink
Merge pull request #3 from arnauldm/ami/dma
Browse files Browse the repository at this point in the history
[update] Removed useless #ifdef directives
  • Loading branch information
arnauldm authored Jun 27, 2019
2 parents 40f6bb7 + 4de74f6 commit 8c09dd6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions api/libc/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
#include "libc/types.h"
#include "kernel/src/C/exported/syscalls.h"
#include "kernel/src/C/exported/devices.h"
#ifdef CONFIG_KERNEL_DMA_ENABLE
#include "kernel/src/C/exported/dmas.h"
#endif
#include "kernel/src/C/exported/sleep.h"

// FIXME - nothing to do here!
Expand Down Expand Up @@ -75,11 +73,9 @@ e_syscall_ret sys_init_INIT_DONE(uint32_t inittype);
e_syscall_ret sys_cfg_CFG_GPIO_SET(uint32_t cfgtype, uint8_t gpioref, uint8_t value);
e_syscall_ret sys_cfg_CFG_GPIO_GET(uint32_t cfgtype, uint8_t gpioref, uint8_t *value);
e_syscall_ret sys_cfg_CFG_GPIO_UNLOCK_EXTI(uint32_t cfgtype, uint8_t gpioref);
#ifdef CONFIG_KERNEL_DMA_ENABLE
e_syscall_ret sys_cfg_CFG_DMA_RECONF(uint32_t cfgtype, dma_t*dma, dma_reconf_mask_t mask, int descriptor);
e_syscall_ret sys_cfg_CFG_DMA_RELOAD(uint32_t cfgtype, int descriptor);
e_syscall_ret sys_cfg_CFG_DMA_DISABLE(uint32_t cfgtype, int descriptor);
#endif
e_syscall_ret sys_cfg_CFG_DEV_MAP(uint32_t cfgtype, uint32_t devid);
e_syscall_ret sys_cfg_CFG_DEV_UNMAP(uint32_t cfgtype, uint32_t devid);
e_syscall_ret sys_cfg_CFG_DEV_RELEASE(uint32_t cfgtype, uint32_t devid);
Expand Down
3 changes: 0 additions & 3 deletions syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ e_syscall_ret sys_cfg_CFG_GPIO_UNLOCK_EXTI( __attribute__ ((unused)) uint32_t
return do_syscall(SVC_GPIO_UNLOCK_EXTI, &args);
}


#ifdef CONFIG_KERNEL_DMA_ENABLE
e_syscall_ret sys_cfg_CFG_DMA_RECONF( __attribute__ ((unused)) uint32_t cfgtype,
dma_t * dma, dma_reconf_mask_t mask,
int descriptor)
Expand All @@ -242,7 +240,6 @@ e_syscall_ret sys_cfg_CFG_DMA_DISABLE( __attribute__ ((unused)) uint32_t
struct gen_syscall_args args = { (uint32_t) descriptor, 0, 0, 0 };
return do_syscall(SVC_DMA_DISABLE, &args);
}
#endif

e_syscall_ret sys_cfg_CFG_DEV_MAP( __attribute__ ((unused)) uint32_t cfgtype,
uint32_t devid)
Expand Down

0 comments on commit 8c09dd6

Please sign in to comment.