added config flash stuff
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "adi_ad9081.h"
|
||||
#include "adi_hmc7044.h"
|
||||
#include "novatel.h"
|
||||
#include "config_flash.h"
|
||||
|
||||
XSysMon SysMonInst;
|
||||
//extern XScuGic xInterruptController;
|
||||
@@ -111,7 +112,9 @@ void main_task( void *pvParameters ) {
|
||||
xPortInstallInterruptHandler(XPAR_MICROBLAZE_0_AXI_INTC_SYSTEM_PPS_INTR, (XInterruptHandler) pps_irq_handler, (void *)0);
|
||||
vPortEnableInterrupt(XPAR_MICROBLAZE_0_AXI_INTC_SYSTEM_PPS_INTR);
|
||||
|
||||
setup_data_converter();
|
||||
// setup_data_converter();
|
||||
|
||||
// config_flash_sector_erase(CONFIG_BASE_ADDRESS);
|
||||
|
||||
while (1) {
|
||||
toggleBit(GPO_REG, 0); // Toggle LED
|
||||
@@ -124,6 +127,7 @@ int main(void) {
|
||||
xil_printf("\n\r\n\r================= Start ====================\n\r\n\r");
|
||||
|
||||
Xil_Out32(GPO_REG, 0x11);
|
||||
config_flash_init();
|
||||
|
||||
xTaskCreate( status_task,
|
||||
( const char * ) "status",
|
||||
|
||||
Reference in New Issue
Block a user