This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
778 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
add_subdirectory(dhcp_dns) | ||
add_subdirectory(ftp) | ||
add_subdirectory(http) | ||
#add_subdirectory(dhcp_dns) | ||
#add_subdirectory(ftp) | ||
#add_subdirectory(http) | ||
add_subdirectory(loopback) | ||
add_subdirectory(mqtt) | ||
add_subdirectory(sntp) | ||
add_subdirectory(tcp_client_over_ssl) | ||
# add_subdirectory(lwip) | ||
#add_subdirectory(mqtt) | ||
#add_subdirectory(sntp) | ||
#add_subdirectory(tcp_client_over_ssl) | ||
#add_subdirectory(spi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,8 @@ int main() | |
|
||
stdio_init_all(); | ||
|
||
sleep_ms(3000); | ||
|
||
wizchip_spi_initialize(); | ||
wizchip_cris_initialize(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef _WIZNET_SPI_FUNCS_H_ | ||
#define _WIZNET_SPI_FUNCS_H_ | ||
|
||
#include <stdint.h> | ||
|
||
typedef struct wiznet_spi_config { | ||
uint8_t data_in_pin; | ||
uint8_t data_out_pin; | ||
uint8_t cs_pin; | ||
uint8_t clock_pin; | ||
uint8_t irq_pin; | ||
uint8_t reset_pin; | ||
uint16_t clock_div_major; | ||
uint8_t clock_div_minor; | ||
uint8_t spi_hw_instance; | ||
} wiznet_spi_config_t; | ||
|
||
typedef struct wiznet_spi_funcs** wiznet_spi_handle_t; | ||
|
||
typedef struct wiznet_spi_funcs { | ||
void (*close)(wiznet_spi_handle_t funcs); | ||
void (*set_active)(wiznet_spi_handle_t funcs); | ||
void (*set_inactive)(void); | ||
void (*frame_start)(void); | ||
void (*frame_end)(void); | ||
uint8_t (*read_byte)(void); | ||
void (*write_byte)(uint8_t tx_data); | ||
void (*read_buffer)(uint8_t *pBuf, uint16_t len); | ||
void (*write_buffer)(uint8_t *pBuf, uint16_t len); | ||
void (*reset)(wiznet_spi_handle_t funcs); | ||
} wiznet_spi_funcs_t; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef _WIZNET_SPI_PIO_H_ | ||
#define _WIZNET_SPI_PIO_H_ | ||
|
||
#include "wiznet_spi.h" | ||
|
||
|
||
wiznet_spi_handle_t wiznet_spi_pio_open(const wiznet_spi_config_t *spi_config); | ||
|
||
#endif |
Oops, something went wrong.