Commit Graph

335 Commits

Author SHA1 Message Date
Markus Fröschle
5e64c5a8d7 renamed functions to spi_...() and sd_card...() according to target 2012-12-04 08:49:21 +00:00
Markus Fröschle
b3246e5f0c renamed functions to spi_...() and sd_card...() according to target 2012-12-03 12:02:55 +00:00
Markus Fröschle
04c83e68c1 removed a few other volatile declarations 2012-11-28 04:25:09 +00:00
Markus Fröschle
e7e5347c70 removed stupid "volatile void" declaration 2012-11-28 04:18:13 +00:00
Markus Fröschle
1da2567df4 write diagnostic message if PIC initialization failed 2012-11-24 07:00:00 +00:00
Markus Fröschle
9ecb9177dd cosmetic changes 2012-11-20 22:27:47 +00:00
Markus Fröschle
89bd397cb7 added comment 2012-11-20 22:21:49 +00:00
Markus Fröschle
32ed4084a0 added comments 2012-11-19 16:48:17 +00:00
Markus Fröschle
31b6e02a23 use shorter sd_send_bytes() routines 2012-11-19 16:42:46 +00:00
Markus Fröschle
c3f7e0e76e use shorter sd_send_bytes() routines 2012-11-19 15:02:06 +00:00
Markus Fröschle
5ee9f19b2c modified as inline functions 2012-11-19 14:19:10 +00:00
Markus Fröschle
0aeaa46bf5 added optimized read and write routines 2012-11-19 14:00:00 +00:00
Markus Fröschle
574dfe21bd modified to accept new path (BaS_gcc) 2012-11-19 12:03:48 +00:00
Markus Fröschle
84c707d132 new include file sd_card.h 2012-11-19 06:38:02 +00:00
Markus Fröschle
ed9133bce6 new include file sd_card.h 2012-11-19 06:37:17 +00:00
Markus Fröschle
cb20f7ff30 fixed eclipse build settings (scanner did not work right on MacOSX) 2012-11-19 06:22:37 +00:00
Markus Fröschle
d7600c620a beefed up with Freescale's symbolic constants which hopefully makes the code more readable. 2012-11-18 20:57:16 +00:00
Markus Fröschle
b23337a303 updated comments 2012-11-18 10:28:21 +00:00
Markus Fröschle
0b5e4aca81 declared wait()-routines as inline void volatile since gcc decided to optimize out them sometimes. Do we need __attribute__(always_inline) ? 2012-11-18 10:10:38 +00:00
Markus Fröschle
3101237277 deleted cfg directory which is not needed for gcc 2012-11-18 09:29:36 +00:00
Markus Fröschle
b8fac29d99 loops to trick out DSPI FIFO 2012-11-18 09:25:28 +00:00
Markus Fröschle
03e6b13e0a started sd_card.c transcribe to C 2012-11-18 09:20:50 +00:00
Markus Fröschle
900c7a48af added NOP() macro 2012-11-18 07:42:02 +00:00
Markus Fröschle
fee5213b83 return from busy-waiting after a certain time 2012-11-18 07:39:33 +00:00
Markus Fröschle
fbb866e5c3 there was still an occasional hang in test_udp720101(). Commented offending statement until fully understood... 2012-11-17 22:31:01 +00:00
Markus Fröschle
f050f49e98 there was still an occasional hang in test_udp720101(). Commented offending statement until fully understood... 2012-11-17 21:12:54 +00:00
Markus Fröschle
4a4a907ce5 disabled FPGA early until its initialized freshly. 2012-11-17 21:05:12 +00:00
Markus Fröschle
c4c7046432 fixed __cplusplus preprocessor define 2012-11-17 14:24:18 +00:00
Markus Fröschle
845744778a modified busy waiting loops (new function: waitfor(us, condition) to only wait for a certain time until the expected condition comes true, otherwise just return without the job done 2012-11-17 14:22:34 +00:00
Markus Fröschle
d9d7b8b7bf reintegrated BaS_gcc from BaS_GNU branch into trunk 2012-11-16 21:22:35 +00:00
Markus Fröschle
1c8a4d0dcd new run of quartus 2012-11-16 19:32:30 +00:00
Markus Fröschle
b9c88021c6 renamed directory 2012-11-16 18:57:09 +00:00
Markus Fröschle
707cf601aa renamed directory 2012-11-16 18:39:58 +00:00
Markus Fröschle
b609a727d8 seems to hang in sdcard_idle. Commented that call again. 2012-11-15 21:06:50 +00:00
Markus Fröschle
75421c03f3 seems to hang in sdcard_idle. Commented that call again. 2012-11-15 21:05:24 +00:00
Markus Fröschle
ba6fe6a245 enabled SD card routines in bas again.
SD card detection seems to work.
2012-11-15 20:54:56 +00:00
Markus Fröschle
16d3e69492 replaced wait_xms()- and wait_xus()-routines by a generic one that takes the number of us to wait as a parameter 2012-11-15 06:25:15 +00:00
Vincent Rivière
6770bdc060 Fixed NVRAM initialization. 2012-11-13 00:10:01 +00:00
Vincent Rivière
2c9ef1e11b Reordered. 2012-11-12 15:57:09 +00:00
Vincent Rivière
6c8b9d1eb7 Set ___BOOT_FLASH to the real flash address even if the BaS is being run in RAM with GDB. 2012-11-12 15:53:23 +00:00
Vincent Rivière
fc449e53c5 Jump to _rom_entry instead of ___BOOT_FLASH. 2012-11-12 15:49:58 +00:00
Vincent Rivière
cfb4d43ec5 Clean up and comments. 2012-11-12 15:41:09 +00:00
Vincent Rivière
b71be8c5f5 Better definition of __BAS_IN_RAM. 2012-11-12 15:06:19 +00:00
Vincent Rivière
1c75bf612a Moved sections definition at the top. 2012-11-12 15:00:53 +00:00
Vincent Rivière
fabc2a1a82 Renamed memory regions. 2012-11-12 13:50:23 +00:00
Vincent Rivière
a4307fd6dd Moved all __BAS_* defines to the same place. 2012-11-12 13:47:02 +00:00
Vincent Rivière
1ec0489b2e Removed redundant sections VMA. 2012-11-12 13:41:21 +00:00
Vincent Rivière
69cd718dc7 Removed useless cast. 2012-11-10 17:10:46 +00:00
Vincent Rivière
49d0df7d03 Fixed warning about unused variable. 2012-11-10 16:41:11 +00:00
Vincent Rivière
46d00e1013 Removed useless jmp variable. 2012-11-07 22:20:13 +00:00