Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Minimal changes to main.c to enable compilation for VCVRack
- Loading branch information
Showing
with
12 additions
and
3 deletions.
-
+12
−3
src/main.c
|
|
@@ -152,8 +152,12 @@ re_t re; |
|
|
|
|
|
|
|
|
// NVRAM data structure located in the flash array. |
|
|
#ifdef TARGET |
|
|
__attribute__((__section__(".flash_nvram"))) |
|
|
static nvram_data_t flashy; |
|
|
#else |
|
|
nvram_data_t flashy; |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
@@ -171,7 +175,7 @@ extern void timers_set_monome(void); |
|
|
extern void timers_unset_monome(void); |
|
|
|
|
|
// check the event queue |
|
|
static void check_events(void); |
|
|
void check_events(void); |
|
|
|
|
|
// handler protos |
|
|
static void handler_None(s32 data) { ;; } |
|
|
@@ -2026,9 +2030,9 @@ void flash_read(void) { |
|
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
// main |
|
|
// initialize + main |
|
|
|
|
|
int main(void) |
|
|
void initialize_module() |
|
|
{ |
|
|
u8 i1,i2; |
|
|
|
|
|
@@ -2144,6 +2148,11 @@ int main(void) |
|
|
// spi_write(SPI,0xff); |
|
|
// spi_write(SPI,0xff); |
|
|
// spi_unselectChip(SPI,DAC_SPI); |
|
|
} |
|
|
|
|
|
int main(void) |
|
|
{ |
|
|
initialize_module(); |
|
|
|
|
|
while (true) { |
|
|
check_events(); |
|
|
|