#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <fcntl.h>#include <time.h>#include <string.h>#include <sys/ioctl.h>#include <sys/mount.h>#include <mtd/mtd-user.h>Include dependency graph for flash_erase.c:

Go to the source code of this file.
Functions | |
| int | region_erase (int Fd, int start, int count, int unlock, int regcount) |
| int | non_region_erase (int Fd, int start, int count, int unlock) |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
*************************************************************************** ! FILE NAME : autoexposure.c ! DESCRIPTION: Daemon to adjust camera exposure and white balance ! Copyright (C) 2008 Elphel, Inc. ! -----------------------------------------------------------------------------** ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** ! !
now try to mmap
These are read from frame zero (they are not frame-related)
now open circbuf
read pointer was invalid - try the earliest frame available
Definition at line 137 of file flash_erase.c.
References MEMGETREGIONCOUNT, non_region_erase(), region_erase(), start, and stderr.
| int non_region_erase | ( | int | Fd, | |
| int | start, | |||
| int | count, | |||
| int | unlock | |||
| ) |
Definition at line 94 of file flash_erase.c.
References MEMERASE, MEMGETINFO, MEMUNLOCK, and stdout.
Referenced by main().
| int region_erase | ( | int | Fd, | |
| int | start, | |||
| int | count, | |||
| int | unlock, | |||
| int | regcount | |||
| ) |
Definition at line 15 of file flash_erase.c.
References MEMERASE, MEMGETREGIONINFO, MEMUNLOCK, and stdout.
Referenced by main().
1.5.1