Skip to content

Commit

Permalink
I2C constants added to mos_api.h
Browse files Browse the repository at this point in the history
  • Loading branch information
envenomator committed Nov 18, 2023
1 parent 7f83c95 commit 6f2b1e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/mos_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ typedef uint8_t BYTE;
#define FA_OPEN_ALWAYS 0x10
#define FA_OPEN_APPEND 0x30

// I2C frequency
#define I2C_SPEED_57600 0x01
#define I2C_SPEED_115200 0x02
#define I2C_SPEED_230400 0x03
// I2C return codes to caller
#define RET_OK 0x00
#define RET_NORESPONSE 0x01
#define RET_DATA_NACK 0x02
#define RET_ARB_LOST 0x04
#define RET_BUS_ERROR 0x08

/* FatFS File function return code (FRESULT) */

typedef enum {
Expand Down

0 comments on commit 6f2b1e6

Please sign in to comment.