Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Apr 18, 2020
1 parent 20b0f26 commit 6ba8054
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion rtl/top_templates/neo430_top_avm.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ begin
spi_mosi_o <= std_logic(spi_mosi_o_int);
spi_cs_o <= std_logic_vector(spi_cs_o_int);
ext_ack_o <= std_logic_vector(irq_ack_o_int);
timer_fg_o <= std_logic(freq_gen_o_int);
freq_gen_o <= std_logic(freq_gen_o_int);


-- Wishbone-to-Avalon Bridge ------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion rtl/top_templates/neo430_top_axi4lite.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ begin
spi_mosi_o <= std_logic(spi_mosi_o_int);
spi_cs_o <= std_logic_vector(spi_cs_o_int);
ext_ack_o <= std_logic_vector(irq_ack_o_int);
timer_fg_o <= std_logic(freq_gen_o_int);
freq_gen_o <= std_logic(freq_gen_o_int);


-- Wishbone-to-AXI4-Lite-compatible Bridge ----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion rtl/top_templates/neo430_top_std_logic.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ begin
wb_stb_o <= std_logic(wb_stb_o_int);
wb_cyc_o <= std_logic(wb_cyc_o_int);
ext_ack_o <= std_logic_vector(irq_ack_o_int);
timer_fg_o <= std_logic(freq_gen_o_int);
freq_gen_o <= std_logic(freq_gen_o_int);


end neo430_top_std_logic_rtl;
18 changes: 1 addition & 17 deletions sw/example/timer_simple/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,10 @@ int main(void) {
// enable global IRQs
neo430_eint();


// test frequency generator
neo430_timer_nco_enable();
uint32_t nco_target_frequency = 0, nco_real_frequency;

while(1) {
neo430_uart_br_print("Target freq.: 0x");
neo430_uart_print_hex_dword(nco_target_frequency);

nco_real_frequency = neo430_timer_nco_set(nco_target_frequency);

neo430_uart_br_print(", Real freq.: 0x");
neo430_uart_print_hex_dword(nco_real_frequency);
neo430_uart_br_print("\n");

nco_target_frequency++; // go through all possible frequencies
neo430_cpu_delay_ms(250); // wait 250ms
neo430_sleep();
}


return 0;
}

Expand Down

0 comments on commit 6ba8054

Please sign in to comment.