b.liu | ced8dd0 | 2024-06-28 13:28:29 +0800 | [diff] [blame] | 1 | /** |
| 2 | * @file |
| 3 | * @author Jinhua Huang <jinhuahuang@asrmicro.com> |
| 4 | * @version 1.0 |
| 5 | * |
| 6 | * @section LICENSE |
| 7 | * Copyright (C) 2021, ASR microelectronics, All rights reserved. |
| 8 | * |
| 9 | * @section DESCRIPTION |
| 10 | * Aboot tiny downloader for Jacana with firmware and pvt |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __JACANA_DOWNLOAD_H__ |
| 14 | #define __JACANA_DOWNLOAD_H__ |
| 15 | |
| 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | /** |
| 21 | * Aboot tiny downloader for jacana |
| 22 | * |
| 23 | * @param dev uart device name |
| 24 | * @param baud uart baud rate |
| 25 | * |
| 26 | * @return 0 for success, otherwise failed |
| 27 | * |
| 28 | */ |
| 29 | int jacana_aboot_tiny_download(const char *dev, int baud); |
| 30 | |
| 31 | /** |
| 32 | * Aboot tiny force stop for jacana |
| 33 | * |
| 34 | * @return 0 for success, otherwise failed |
| 35 | */ |
| 36 | int jacana_aboot_tiny_force_stop(void); |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | } /* extern "C" */ |
| 40 | #endif |
| 41 | |
| 42 | #endif /* __JACANA_DOWNLOAD_H__ */ |