ioLibrary for Cortex M series
|
Enumerations | |
enum | wizpf_spi { WIZ_SPI1 = 0, WIZ_SPI2 = 1, WIZ_SPI3 = 2 } |
Functions | |
int8_t | wizpf_spi_init (wizpf_spi spi) |
int8_t | wizpf_led_set (wizpf_led led, uint8_t action) |
int8_t | wizpf_led_get (wizpf_led led) |
void | wizpf_led_trap (uint8_t repeat) |
void | wizpf_wizchip_cris_enter () |
void | wizpf_wizchip_cris_exit () |
void | wizpf_wizchip_select () |
void | wizpf_wizchip_deselect () |
void | wizpf_wizchip_spi_writebyte (uint8_t wb) |
uint8_t | wizpf_wizchip_spi_readbyte () |
int32_t | wizpf_putchar (int32_t ch, wizpf_usart usart) |
int32_t | wizpf_getchar (wizpf_usart usart) |
int32_t | wizpf_getcharNB (wizpf_usart usart) |
enum wizpf_spi |
Indicate the SPI index number
Enumerator | |
---|---|
WIZ_SPI1 |
Indicate the 1st SPI. |
WIZ_SPI2 |
Indicate the 2nd SPI. |
WIZ_SPI3 |
Indicate the 3rd SPI. |
Definition at line 87 of file wizplatform.h.
int8_t wizpf_spi_init | ( | wizpf_spi | spi) |
Initialize SPI Peripheral Device.
spi | SPI index number (wizpf_spi) |
Definition at line 233 of file wizplatform.c.
References RET_NOK, RET_OK, SPI0_MISO_GPIO, SPI0_MOSI_GPIO, SPI0_SCLK_GPIO, SPI1_MISO_GPIO, SPI1_MOSI_GPIO, SPI1_SCLK_GPIO, WIZ_SPI1, and WIZ_SPI2.
Referenced by platform_init().
int8_t wizpf_led_set | ( | wizpf_led | led, |
uint8_t | action | ||
) |
Definition at line 275 of file wizplatform.c.
References LED1_PIN, LED1_PORT, LED2_PIN, LED2_PORT, RET_NOK, RET_OK, VAL_OFF, VAL_ON, VAL_TOG, WIZ_LED1, WIZ_LED2, and wizpf_led_get().
Referenced by platform_init(), and wizpf_led_trap().
int8_t wizpf_led_get | ( | wizpf_led | led) |
Definition at line 310 of file wizplatform.c.
References LED1_PIN, LED1_PORT, LED2_PIN, LED2_PORT, RET_NOK, WIZ_LED1, and WIZ_LED2.
Referenced by wizpf_led_set().
void wizpf_led_trap | ( | uint8_t | repeat) |
Definition at line 331 of file wizplatform.c.
References Delay_ms(), VAL_OFF, VAL_ON, WIZ_LED1, and wizpf_led_set().
void wizpf_wizchip_cris_enter | ( | ) |
Definition at line 349 of file wizplatform.c.
References ERR.
void wizpf_wizchip_cris_exit | ( | ) |
Definition at line 357 of file wizplatform.c.
References ERR.
void wizpf_wizchip_select | ( | ) |
Definition at line 366 of file wizplatform.c.
References SPI0_SCS_PIN, and SPI0_SCS_PORT.
Referenced by platform_init().
void wizpf_wizchip_deselect | ( | ) |
Definition at line 371 of file wizplatform.c.
References SPI0_SCS_PIN, and SPI0_SCS_PORT.
Referenced by platform_init().
void wizpf_wizchip_spi_writebyte | ( | uint8_t | wb) |
Definition at line 376 of file wizplatform.c.
Referenced by platform_init().
uint8_t wizpf_wizchip_spi_readbyte | ( | ) |
Definition at line 381 of file wizplatform.c.
Referenced by platform_init().
int32_t wizpf_putchar | ( | int32_t | ch, |
wizpf_usart | usart | ||
) |
Definition at line 387 of file wizplatform.c.
References RET_NOK, WIZ_USART1, and WIZ_USART2.
int32_t wizpf_getchar | ( | wizpf_usart | usart) |
Definition at line 399 of file wizplatform.c.
References RET_NOK, u0rx_buf, U0RX_BUF_SIZE, u0rx_rd, u0rx_wr, u1rx_buf, U1RX_BUF_SIZE, u1rx_rd, u1rx_wr, WIZ_USART1, and WIZ_USART2.
int32_t wizpf_getcharNB | ( | wizpf_usart | usart) |
Definition at line 441 of file wizplatform.c.
References RET_NOK, u0rx_buf, U0RX_BUF_SIZE, u0rx_rd, u0rx_wr, u1rx_buf, U1RX_BUF_SIZE, u1rx_rd, u1rx_wr, WIZ_USART1, and WIZ_USART2.