-
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
8 changed files
with
70 additions
and
56 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
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,3 +1,3 @@ | ||
|
||
|
||
void itcm_test(void); | ||
void itcm_demo(void); |
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,31 @@ | ||
|
||
|
||
#include <time/cron.h> | ||
#include <hal/uc.h> | ||
|
||
|
||
cron_job_t uart_bare_job; | ||
tm_system_t uart_bare_start; | ||
tm_sdelta_t uart_bare_period = 100; | ||
|
||
|
||
void uart_bare_send(void) { | ||
if (*(HAL_SFR_t *)(uart_if[DEBUG_TRANSPORT_INTFNUM]->hwif->base + OFS_UART_ISR) & USART_ISR_TXE_TXFNF) { | ||
uart_putc_bare(DEBUG_TRANSPORT_INTFNUM, 'a'); | ||
} | ||
} | ||
|
||
void uart_buffered_send(void) { | ||
if (uart_reqlock(DEBUG_TRANSPORT_INTFNUM, 1, 0x00)){ | ||
uart_putc(DEBUG_TRANSPORT_INTFNUM, 'a', 0x00, 0x00); | ||
} else { | ||
uart_send_trigger(DEBUG_TRANSPORT_INTFNUM); | ||
} | ||
} | ||
|
||
|
||
void start_uart_demo(void) { | ||
uart_vprintf(DEBUG_TRANSPORT_INTFNUM, "UART example %d\n", 12); | ||
tm_current_time(&uart_bare_start); | ||
tm_cron_create_job_abs(&uart_bare_job, &uart_buffered_send, &uart_bare_start, &uart_bare_period); | ||
} |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
#include <time/cron.h> | ||
#include <iomap.h> | ||
|
||
void start_uart_bare_task(void); | ||
void start_uart_demo(void); |
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 was deleted.
Oops, something went wrong.