-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
100 additions
and
2 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
Submodule RP2040-HAT-C
added at
a23950
Submodule config
updated
3 files
+19 −0 | python/yambs/RP2040-HAT-C.yaml | |
+19 −0 | python/yambs/ioLibrary_Driver.yaml | |
+5 −0 | python/yambs/pico-sdk.yaml |
Submodule ioLibrary_Driver
added at
3847fb
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
Submodule pico-extras
added at
09c64d
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
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,45 @@ | ||
#include "wizchip.h" | ||
|
||
extern "C" | ||
{ | ||
#include "wizchip_conf.h" | ||
|
||
#include "w5x00_spi.h" | ||
|
||
#include "dhcp.h" | ||
#include "dns.h" | ||
#include "timer.h" | ||
} | ||
|
||
/* Timer */ | ||
static volatile uint16_t g_msec_cnt = 0; | ||
|
||
/* Timer */ | ||
static void repeating_timer_callback(void) | ||
{ | ||
auto val = g_msec_cnt; | ||
val++; | ||
|
||
if (val >= 1000 - 1) | ||
{ | ||
val = 0; | ||
|
||
DHCP_time_handler(); | ||
DNS_time_handler(); | ||
} | ||
|
||
g_msec_cnt = val; | ||
} | ||
|
||
extern "C" void pico_wizchip_init(void) | ||
{ | ||
wizchip_spi_initialize(); | ||
wizchip_cris_initialize(); | ||
|
||
wizchip_reset(); | ||
|
||
wizchip_initialize(); | ||
wizchip_check(); | ||
|
||
wizchip_1ms_timer_initialize(repeating_timer_callback); | ||
} |
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,3 @@ | ||
#pragma once | ||
|
||
extern "C" void pico_wizchip_init(void); |