expand  2.0.0.0
Functions
main.c File Reference

Expand Click example. More...

#include "board.h"
#include "log.h"
#include "expand.h"

Functions

void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

Expand Click example.

Description

This applicatioin use for expansion I/O lines.

The demo application is composed of two sections :

Application Init

Initialization driver enable's - GPIO, reset MCP23S17 chip, set PORTA to be output and PORTB to be input, set default configuration and start write log.

Application Task

This is a example which demonstrates the use of Expand Click board. Expand Click communicates with register via SPI protocol by write and read from register, set configuration and state and read configuration and state. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart for aproximetly every 500 ms.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )