Skip to content
Permalink
Browse files

Minimal changes to main.c to enable compilation for VCVRack

  • Loading branch information
Dewb committed Dec 2, 2017
1 parent d1c1108 commit 1ee18f853efae43d696c0416af4749a6dfd599b4
Showing with 12 additions and 3 deletions.
  1. +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();

0 comments on commit 1ee18f8

Please sign in to comment.