Minor updates to help with speed, temporarily disabling uart
This commit is contained in:
parent
2d38c9614e
commit
bd71ca2a3c
@ -45,7 +45,6 @@ main(int argc, char **argv)
|
|||||||
volatile struct exception e;
|
volatile struct exception e;
|
||||||
TRY_CATCH(e, EXCEPTION_ALL) {
|
TRY_CATCH(e, EXCEPTION_ALL) {
|
||||||
gdb_main();
|
gdb_main();
|
||||||
uart_pop();
|
|
||||||
}
|
}
|
||||||
if (e.type) {
|
if (e.type) {
|
||||||
gdb_putpacketz("EFF");
|
gdb_putpacketz("EFF");
|
||||||
|
@ -52,9 +52,9 @@ void sys_tick_handler(void)
|
|||||||
if(running_status)
|
if(running_status)
|
||||||
gpio_toggle(LED_PORT, LED_IDLE_RUN);
|
gpio_toggle(LED_PORT, LED_IDLE_RUN);
|
||||||
|
|
||||||
time_ms += 1;
|
time_ms += 10;
|
||||||
|
|
||||||
uart_pop();
|
//uart_pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t platform_time_ms(void)
|
uint32_t platform_time_ms(void)
|
||||||
@ -81,7 +81,7 @@ static uint32_t timing_init(void)
|
|||||||
uint32_t cal = 0;
|
uint32_t cal = 0;
|
||||||
|
|
||||||
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB);
|
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB);
|
||||||
systick_set_reload(48000); /* Interrupt us at 10 Hz */
|
systick_set_reload(4800); /* Interrupt us at 10 Hz */
|
||||||
systick_interrupt_enable();
|
systick_interrupt_enable();
|
||||||
|
|
||||||
systick_counter_enable();
|
systick_counter_enable();
|
||||||
|
@ -44,29 +44,29 @@ extern uint8_t running_status;
|
|||||||
#define LED_ERROR GPIO10
|
#define LED_ERROR GPIO10
|
||||||
|
|
||||||
#define TMS_PORT PORTA
|
#define TMS_PORT PORTA
|
||||||
#define TMS_PIN GPIO7
|
#define TMS_PIN GPIO1
|
||||||
|
|
||||||
#define TCK_PORT PORTA
|
#define TCK_PORT PORTA
|
||||||
#define TCK_PIN GPIO5
|
#define TCK_PIN GPIO2
|
||||||
|
|
||||||
#define TDI_PORT PORTA
|
#define TDI_PORT PORTA
|
||||||
#define TDI_PIN GPIO3
|
#define TDI_PIN GPIO3
|
||||||
|
|
||||||
#define TDO_PORT PORTA
|
#define TDO_PORT PORTA
|
||||||
#define TDO_PIN GPIO2
|
#define TDO_PIN GPIO3
|
||||||
|
|
||||||
#define SWO_PORT PORTA
|
#define SWO_PORT PORTA
|
||||||
#define SWO_PIN GPIO6
|
#define SWO_PIN GPIO6
|
||||||
|
|
||||||
#define SWDIO_PORT PORTA
|
#define SWDIO_PORT PORTA
|
||||||
#define SWDIO_PIN TMS_PIN
|
#define SWDIO_PIN TMS_PIN
|
||||||
#define SWDIO_PIN_NUM 7
|
#define SWDIO_PIN_NUM 1
|
||||||
|
|
||||||
#define SWCLK_PORT PORTA
|
#define SWCLK_PORT PORTA
|
||||||
#define SWCLK_PIN TCK_PIN
|
#define SWCLK_PIN TCK_PIN
|
||||||
|
|
||||||
#define SRST_PORT PORTA
|
#define SRST_PORT PORTA
|
||||||
#define SRST_PIN GPIO6
|
#define SRST_PIN GPIO7
|
||||||
|
|
||||||
#define LED_PORT_UART PORTA
|
#define LED_PORT_UART PORTA
|
||||||
#define LED_UART GPIO12
|
#define LED_UART GPIO12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user