Atmel Software Framework

bsp.h File Reference

Macros

#define BSP_INT_FALLING_EDGE   2
 
#define BSP_INT_PIN_CHANGE   0
 
#define BSP_INT_RISING_EDGE   1
 
#define BSP_INTC_ERR_INVALID_IRQ   1 /* BSP_INTC_IntReg received an invalid IRQ # */
 
#define BSP_INTC_ERR_NONE   0 /* BSP_INTC_IntReg is successful */
 
#define BSP_INTC_INT_LEVELS   4 /* Interrupt priority levels */
 
#define CPU_CLK_FREQ()   BSP_CPU_ClkFreq()
 
#define CPU_CONST_FREQ   1 /* Enable automatic CPU operating frequency check */
 
#define PBA_CLK_FREQ()   BSP_PBA_ClkFreq()
 

Functions

CPU_INT32U BSP_CPU_ClkFreq (void)
 
void BSP_GPIO_IntFlagClr (CPU_INT16U pin)
 
CPU_BOOLEAN BSP_GPIO_IntFlagRd (CPU_INT16U pin)
 
void BSP_GPIO_PinClr (CPU_INT16U pin)
 
CPU_BOOLEAN BSP_GPIO_PinGet (CPU_INT16U pin)
 
void BSP_GPIO_PinSet (CPU_INT16U pin)
 
void BSP_GPIO_PinTgl (CPU_INT16U pin)
 
void BSP_GPIO_SetFnct (CPU_INT16U pin, CPU_INT08U function)
 
void BSP_GPIO_SetIntMode (CPU_INT16U pin, CPU_INT08U mode)
 
void BSP_Init (void)
 
CPU_INT32U BSP_INTC_FastIntReg (CPU_FNCT_VOID handler, CPU_INT32U irq, CPU_INT32U int_level)
 
CPU_INT32U BSP_INTC_IntReg (CPU_FNCT_VOID handler, CPU_INT32U irq, CPU_INT32U int_level)
 
CPU_INT32U BSP_PBA_ClkFreq (void)
 
CPU_INT32U BSP_PBB_ClkFreq (void)
 
CPU_INT08U BSP_USART_ByteRd (CPU_INT08U com)
 
void BSP_USART_ByteWr (CPU_INT08U com, CPU_INT08U b)
 
void BSP_USART_Init (CPU_INT08U com, CPU_INT32U baud_rate)
 
void BSP_USART_IntDis (CPU_INT08U com, CPU_INT32U mask)
 
void BSP_USART_IntEn (CPU_INT08U com, CPU_INT32U mask)
 
void BSP_USART_PrintDec (CPU_INT08U com, CPU_INT32U value, CPU_INT08U digits)
 
void BSP_USART_printf (CPU_INT08U com, CPU_CHAR *format,...)
 
void BSP_USART_PrintHex (CPU_INT08U com, CPU_INT32U value, CPU_INT08U digits)
 
void BSP_USART_StrWr (CPU_INT08U com, CPU_INT08U *s)
 

Variables

const CPU_INT32U OSIntPrioReg [BSP_INTC_INT_LEVELS]
 

#define BSP_INT_FALLING_EDGE   2

Referenced by BSP_GPIO_SetIntMode().

#define BSP_INT_PIN_CHANGE   0

Referenced by BSP_GPIO_SetIntMode().

#define BSP_INT_RISING_EDGE   1

Referenced by BSP_GPIO_SetIntMode().

#define BSP_INTC_ERR_INVALID_IRQ   1 /* BSP_INTC_IntReg received an invalid IRQ # */
#define BSP_INTC_ERR_NONE   0 /* BSP_INTC_IntReg is successful */
#define BSP_INTC_INT_LEVELS   4 /* Interrupt priority levels */
#define CPU_CLK_FREQ ( )    BSP_CPU_ClkFreq()
#define CPU_CONST_FREQ   1 /* Enable automatic CPU operating frequency check */
#define PBA_CLK_FREQ ( )    BSP_PBA_ClkFreq()

Referenced by app_engine().

CPU_INT32U BSP_CPU_ClkFreq ( void  )
void BSP_GPIO_IntFlagClr ( CPU_INT16U  pin)
CPU_BOOLEAN BSP_GPIO_IntFlagRd ( CPU_INT16U  pin)
void BSP_GPIO_PinClr ( CPU_INT16U  pin)
CPU_BOOLEAN BSP_GPIO_PinGet ( CPU_INT16U  pin)
void BSP_GPIO_PinSet ( CPU_INT16U  pin)
void BSP_GPIO_PinTgl ( CPU_INT16U  pin)
void BSP_GPIO_SetFnct ( CPU_INT16U  pin,
CPU_INT08U  function 
)

Referenced by BSP_PM_GClkSetup(), and BSP_USART_Init().

void BSP_GPIO_SetIntMode ( CPU_INT16U  pin,
CPU_INT08U  mode 
)
void BSP_Init ( void  )
CPU_INT32U BSP_INTC_FastIntReg ( CPU_FNCT_VOID  handler,
CPU_INT32U  irq,
CPU_INT32U  int_level 
)
CPU_INT32U BSP_INTC_IntReg ( CPU_FNCT_VOID  handler,
CPU_INT32U  irq,
CPU_INT32U  int_level 
)
CPU_INT32U BSP_PBA_ClkFreq ( void  )

Referenced by BSP_USART_Init().

CPU_INT32U BSP_PBB_ClkFreq ( void  )
CPU_INT08U BSP_USART_ByteRd ( CPU_INT08U  com)

References b, and OSTimeDly().

void BSP_USART_ByteWr ( CPU_INT08U  com,
CPU_INT08U  b 
)
void BSP_USART_IntDis ( CPU_INT08U  com,
CPU_INT32U  mask 
)
void BSP_USART_IntEn ( CPU_INT08U  com,
CPU_INT32U  mask 
)
void BSP_USART_PrintDec ( CPU_INT08U  com,
CPU_INT32U  value,
CPU_INT08U  digits 
)

References BSP_USART_ByteWr(), and i.

void BSP_USART_printf ( CPU_INT08U  com,
CPU_CHAR *  format,
  ... 
)

References BSP_USART_StrWr(), and buffer.

void BSP_USART_PrintHex ( CPU_INT08U  com,
CPU_INT32U  value,
CPU_INT08U  digits 
)

References BSP_USART_ByteWr(), i, and temp.

void BSP_USART_StrWr ( CPU_INT08U  com,
CPU_INT08U *  s 
)

References BSP_USART_ByteWr().

Referenced by BSP_USART_printf().

const CPU_INT32U OSIntPrioReg[BSP_INTC_INT_LEVELS]