mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-08-15 01:45:59 -04:00
Basic SD card functions
This commit is contained in:
parent
6258e1e62e
commit
23b6de25fb
16 changed files with 6133 additions and 155 deletions
|
@ -1,9 +1,9 @@
|
|||
#define PROTOCOL_KISS 0x01
|
||||
#define PROTOCOL_RAW 0x02
|
||||
|
||||
#define m328p 0x01
|
||||
#define m1284p 0x02
|
||||
#define m644p 0x03
|
||||
|
||||
#define REF_3V3 0x01
|
||||
#define REF_5V 0x02
|
||||
#define START_FROM_BOOTLOADER 0x01
|
||||
#define START_FROM_POWERON 0x02
|
||||
#define START_FROM_BROWNOUT 0x03
|
||||
#define START_FROM_JTAG 0x04
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <util/atomic.h>
|
||||
#include "hardware/AFSK.h"
|
||||
#include "hardware/LED.h"
|
||||
#include "hardware/sdcard/diskio.h"
|
||||
|
||||
#define DIV_ROUND(dividend, divisor) (((dividend) + (divisor) / 2) / (divisor))
|
||||
|
||||
|
@ -36,5 +38,4 @@ static inline void delay_ms(unsigned long ms) {
|
|||
cpu_relax();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue