openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
lpc17_iap.h
Go to the documentation of this file.
1/****************************************************************************
2 * bootloader/src/lpc17_iap.h
3 *
4 * Copyright (C) 2020 Augusto Fraga Giachero. All rights reserved.
5 * Author: Augusto Fraga Giachero <afg@augustofg.net>
6 *
7 * This file is part of the RFFE firmware.
8 *
9 * RFFE is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * RFFE is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with RFFE. If not, see <https://www.gnu.org/licenses/>.
21 *
22 ****************************************************************************/
23
24#include <stdint.h>
25#include <stddef.h>
26
50
51enum iap_err lpc17_iap_prepare_sectors(uint8_t start_sector, uint8_t end_sector);
52enum iap_err lpc17_iap_copy_ram_flash(const uint32_t* src_ram, const uint32_t* dest_flash, size_t len, uint32_t cpu_clk_khz);
53enum iap_err lpc17_iap_erase_sectors(uint8_t start_sector, uint8_t end_sector, uint32_t cpu_clk_khz);
54enum iap_err lpc17_iap_blank_check(uint8_t start_sector, uint8_t end_sector);
enum iap_err lpc17_iap_prepare_sectors(uint8_t start_sector, uint8_t end_sector)
Definition lpc17_iap.c:42
enum iap_err lpc17_iap_copy_ram_flash(const uint32_t *src_ram, const uint32_t *dest_flash, size_t len, uint32_t cpu_clk_khz)
Definition lpc17_iap.c:55
iap_err
Definition lpc17_iap.h:28
@ iap_count_error
Definition lpc17_iap.h:35
@ iap_dst_addr_not_mapped
Definition lpc17_iap.h:34
@ iap_src_addr_error
Definition lpc17_iap.h:31
@ iap_invalid_stop_bit
Definition lpc17_iap.h:47
@ iap_invalid_code
Definition lpc17_iap.h:45
@ iap_dst_addr_error
Definition lpc17_iap.h:32
@ iap_invalid_command
Definition lpc17_iap.h:30
@ iap_invalid_baud_rate
Definition lpc17_iap.h:46
@ iap_sector_not_blank
Definition lpc17_iap.h:37
@ iap_sector_not_prepared_for_write
Definition lpc17_iap.h:38
@ iap_addr_error
Definition lpc17_iap.h:42
@ iap_addr_not_mapped
Definition lpc17_iap.h:43
@ iap_cmd_locked
Definition lpc17_iap.h:44
@ iap_code_read_protection_enabled
Definition lpc17_iap.h:48
@ iap_invalid_sector
Definition lpc17_iap.h:36
@ iap_busy
Definition lpc17_iap.h:40
@ iap_cmd_success
Definition lpc17_iap.h:29
@ iap_compare_error
Definition lpc17_iap.h:39
@ iap_param_error
Definition lpc17_iap.h:41
@ iap_src_addr_not_mapped
Definition lpc17_iap.h:33
enum iap_err lpc17_iap_blank_check(uint8_t start_sector, uint8_t end_sector)
Definition lpc17_iap.c:84
enum iap_err lpc17_iap_erase_sectors(uint8_t start_sector, uint8_t end_sector, uint32_t cpu_clk_khz)
Definition lpc17_iap.c:70