Skip to content
Raphaël POGGI edited this page Nov 6, 2018 · 2 revisions

Drivers are accesses the same way as in Linux - using "/dev/xxx" entries and open/read/write API.

API

  • int open(const char *path, int flags)
  • int close(int fd)
  • int write(int fd, const void *buf, size_t size)
  • int read(int fd, void *buf, size_t size)
  • int lseek(int fd, int offset, int whence)

Common entries

  • Spi entries: /dev/spiX
  • Usart entries: /dev/usartX
  • Flash entries: /dev/mtdX
  • i2c entries: /dev/i2cX
Clone this wiki locally