Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c101 uint8_t erase_sector(handle_t *handle, uint16_t sector) in erase_sector() argument
111 if (sector >= 0xFFF0) { in erase_sector()
113 write_cnt(handle, sector); in erase_sector()
118 buffer[2] = (sector >> 8) & 0xFF; in erase_sector()
119 buffer[3] = (sector ) & 0xFF; in erase_sector()
127 write_cnt(handle, sector); in erase_sector()
Dflash.c83 int sector = -1; in main() local
119 sector = strtol(optarg, NULL, 0); in main()
199 if (sector >= 0) { in main()
200 printf("Erasing sector %d\n", sector); in main()
201 ret = erase_sector(handle, sector); in main()
Dstm32_bl.h45 uint8_t erase_sector(handle_t *handle, uint16_t sector);