diff options
author | Paul Selkirk <paul@psgd.org> | 2016-07-06 15:10:14 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-07-06 15:10:14 -0400 |
commit | adb5eef77e646b7d063bdacccf883bb9ce6b2ade (patch) | |
tree | f6831d650c6779f7abd4d51891996b631f0e537e /projects | |
parent | 0bd9801146ae69f09d4ed980a0f4546da6a86150 (diff) |
Add uart_set_default() to make debugging output easier.
Diffstat (limited to 'projects')
-rw-r--r-- | projects/hsm/hsm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c index 9cc6e9a..f4683b3 100644 --- a/projects/hsm/hsm.c +++ b/projects/hsm/hsm.c @@ -129,7 +129,7 @@ void HAL_UART2_RxCpltCallback(UART_HandleTypeDef *huart) hal_error_t hal_serial_send_char(uint8_t c) { - return (uart_send_char(c) == 0) ? HAL_OK : HAL_ERROR_RPC_TRANSPORT; + return (uart_send_char2(STM_UART_USER, c) == 0) ? HAL_OK : HAL_ERROR_RPC_TRANSPORT; } hal_error_t hal_serial_recv_char(uint8_t *cp) @@ -203,6 +203,7 @@ static uint8_t *sdram_malloc(size_t size) int main() { stm_init(); + uart_set_default(STM_UART_MGMT); led_on(LED_GREEN); /* Prepare FMC interface. */ |