# CARD_Init

## Syntax

  `#include <nitro/card.h>`
  `void CARD_Init( void );`

## Arguments

None.

## Return Values

None.

## Description

Initializes the CARD module.
This function must be called at least once before any CARD function is called. However, if you call it more than once, nothing happens. This function is called from inside the `OS_Init` function, so after that there is no need to call it from the application.
This function generates an asynchronous process thread during initialization processing. This thread is used internally when restrictions on arguments or the operating environment prevent `CARD_ReadRomAsync` and other asynchronous functions from running in an interrupt handler alone. The priority of this thread is set to `CARD_THREAD_PRIORITY_DEFAULT` by default. It can be changed with the `CARD_SetThreadPriority` function.

## See Also

`CARD_IsAvailable`
`OS_Init`

## Revision History

2009/05/19 Revised the text about `OS_Init`.
2005/04/11 Added an explanation about the automatic creation of an asynchronous thread.
2004/10/18 Added mention that this function is called by `OS_Init`.
2004/07/05 Initial version.

CONFIDENTIAL