# GX_SetDefaultDMA

## Syntax

      #include <nitro/gx/gx.h>

      u32 GX_SetDefaultDMA(u32 dma_no);

## Arguments

dma_no | The DMA number to use with GX.

## Return Values

Returns the settings before this function was called.
Returns `GX_DMA_NOT_USE` if NDMA had been configured to be used instead of DMA.

## Description

Changes the DMA number used by the GX function. Specify `GX_DMA_NOT_USE` in the argument to use neither DMA nor NDMA.
Note: Because this function causes DMA to be used instead of the NDMA configured by the `GX_SetDefaultNDMA` function, it deletes the values set by `GX_SetDefaultNDMA`.

## See Also

`GX_GetDefaultDMA`
`GX_SetDefaultNDMA`
`GX_InitEx`
`GX_InitNDMAEx`

## Revision History

2008/06/05 Added a description for NDMA settings.
2004/07/28 Initial version.

CONFIDENTIAL