Download firmware/drivers/nor_flash.h from Snapkitty/phaser-ags: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/Snapkitty/phaser-ags/resolve/main/firmware/drivers/nor_flash.h
- Command line
-
hf download hf://Snapkitty/phaser-ags/firmware/drivers/nor_flash.h
-
curl -L -o nor_flash.h https://huggingface.co/Snapkitty/phaser-ags/resolve/main/firmware/drivers/nor_flash.h
923 Bytes
| /* | |
| * Driver — OMAP3530 GPMC NOR Flash driver | |
| * Intel JS28F256M29EWH: 256Mbit (32MB), 16-bit bus, CFI-compatible | |
| * Mapped at CS0 → 0x08000000 (from memory-map.json) | |
| */ | |
| int nor_flash_init(int cs); | |
| void nor_flash_read_id(int cs, uint16_t *manufacturer, uint16_t *device); | |
| int nor_flash_erase_sector(int cs, uint32_t offset); | |
| int nor_flash_program_word(int cs, uint32_t offset, uint16_t data); | |
| int nor_flash_program_buf(int cs, uint32_t offset, const uint16_t *buf, uint32_t count); | |
| int nor_flash_read_buf(int cs, uint32_t offset, uint16_t *buf, uint32_t count); | |
| void nor_flash_reset(int cs); | |